curl --request GET \
--url http://localhost:3000/billing/organizations/{orgId}/invoices \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"invoices": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stripe_invoice_id": "<string>",
"stripe_subscription_id": "<string>",
"amount_due": 123,
"amount_paid": 123,
"currency": "<string>",
"status": "<string>",
"invoice_pdf": "<string>",
"hosted_invoice_url": "<string>",
"period_start": "2023-11-07T05:31:56Z",
"period_end": "2023-11-07T05:31:56Z",
"due_date": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
]
}
}Returns all invoices for the given organization, ordered by date descending.
curl --request GET \
--url http://localhost:3000/billing/organizations/{orgId}/invoices \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"invoices": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stripe_invoice_id": "<string>",
"stripe_subscription_id": "<string>",
"amount_due": 123,
"amount_paid": 123,
"currency": "<string>",
"status": "<string>",
"invoice_pdf": "<string>",
"hosted_invoice_url": "<string>",
"period_start": "2023-11-07T05:31:56Z",
"period_end": "2023-11-07T05:31:56Z",
"due_date": "2023-11-07T05:31:56Z",
"paid_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"metadata": {}
}
]
}
}