curl --request GET \
--url http://localhost:3000/billing/organizations/{orgId}/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"invoice": {
"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 a single invoice by ID, scoped to the organization.
curl --request GET \
--url http://localhost:3000/billing/organizations/{orgId}/invoices/{invoiceId} \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"invoice": {
"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": {}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.