Added

Organisation-level access for multi-entity customers (experimental)

Customers with several companies (wallets) under one organisation can now be served with a single connection instead of one per company. An organisation-level token reaches every company of the organisation:

  • list the companies with Get Companies (scope experimental:company:read);
  • name the company on each v1 call with the X-Company-Id header;
  • call the company-scoped v2 endpoints with the company in the path, e.g. /v2/companies/{companyId}/invoices.
curl --request GET \
     --url https://public-api.spendesk.com/v1/wallet-summary \
     --header 'accept: application/json' \
     --header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.masked' \
     --header 'X-Company-Id: 7j6mvn11rqf7j5'

Read Organisation-level access for how to get an organisation-level token, the errors to expect and the rate limits that apply.