Skip to content
Endless Documentation
Billing

List billing history

GET
/organizations/{organization_id}/billing/history

List billing history. Scoped to the organization named by organization_id.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: billing:read

Path Parameters

organization_id*string
Match^org_

Query Parameters

kinds?string
outcomes?string
search?string
since?string
limit?integer
Range1 <= value <= 100
cursor?string

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
items*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.endless.app/organizations/org_abc123/billing/history'
Example Response
{  "items": [    {      "id": "string",      "kind": "invoice",      "outcome": "succeeded",      "status": "string",      "occurred_at": "string",      "amount": -9007199254740991,      "currency": "string",      "number": "string",      "reason": "string",      "products": [        "string"      ],      "card_brand": "string",      "card_last4": "string",      "failure_code": "string",      "url": "string",      "pdf_url": "string"    }  ],  "next_cursor": "string"}