ReferenceAPI referenceBilling
The workspace's recent invoices (owners and admins)
The workspace's recent invoices (owners and admins): CustomDomain™ API reference. Covers request parameters, the request body, responses and error codes.
Read from Stripe, newest first. Requires billing:manage.
Authorization
apiKey AuthorizationBearer <token>
Long-lived tenant API key, cd_live_… (production) or cd_test_… (staging, development), stored hashed. Keys created before the switch to cd_ start with sk_live_… / sk_test_… and are still accepted. Scoped to the owning application's tenant.
In: header
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/billing/invoices"{ "invoices": [ { "id": "string", "number": "string", "status": "string", "amount_due_cents": 0, "amount_paid_cents": 0, "currency": "string", "created_at": "2019-08-24T14:15:22Z", "hosted_invoice_url": "string", "invoice_pdf": "string" } ]}{ "code": "account_not_verifiable", "title": "string", "details": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}