cURL
curl --request GET \ --url https://api.bunship.com/api/v1/organizations/{orgId}/billing/invoices \ --header 'Authorization: Bearer <token>'
{ "success": true, "data": [ { "id": "in_1abc123", "number": "INV-0001", "status": "paid", "amount": 2900, "currency": "usd", "created": "2024-01-15T10:00:00Z", "dueDate": "2024-02-14T10:00:00Z", "paidAt": "2024-01-15T10:05:00Z", "hostedInvoiceUrl": "https://invoice.stripe.com/i/acct_abc/inv_123", "invoicePdf": "https://pay.stripe.com/invoice/acct_abc/inv_123/pdf" } ] }
Get the organization’s invoice history
true
Show invoice properties
"draft"
"open"
"paid"
"void"
"uncollectible"
"usd"
curl "https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/billing/invoices?limit=20" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."