Dashboard API > Invoice
Retrieve all invoices
Warning: Experimental API
Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.
Returns
Returns an array of resource objects of type invoice.
Examples
GET https://site-api.datocms.com/per-owner-pricing-billing-profile/invoices HTTP/1.1Authorization: Bearer YOUR-API-TOKENAccept: application/jsonX-Api-Version: 3curl -g 'https://site-api.datocms.com/per-owner-pricing-billing-profile/invoices' \ \ -H "Authorization: Bearer YOUR-API-TOKEN" \ -H "Accept: application/json" \ -H "X-Api-Version: 3"await fetch( "https://site-api.datocms.com/per-owner-pricing-billing-profile/invoices", { headers: { Authorization: "Bearer YOUR-API-TOKEN", Accept: "application/json", "X-Api-Version": "3", }, },);HTTP/1.1 200 OKContent-Type: application/jsonCache-Control: cache-control: max-age=0, private, must-revalidateX-RateLimit-Limit: 30X-RateLimit-Remaining: 28
{ "data": [ { "type": "invoice", "id": "124", "attributes": { "date": "2020-04-21T07:57:11.124Z", "total": 20, "amount_due": 20, "status": "", "last_failed_transaction": {} }, "relationships": { "billing_profile": { "data": { "type": "per_site_pricing_billing_profile", "id": "124" } } } } ]}