API reference

InvoicesPreview

Invoices read from a customer's billing system, with what was paid and refunded, so partner commission can be worked out on revenue actually collected. Read only.

List invoices

GET/invoicesPreview

Lists invoices from the billing systems your customers have connected. Filter by status=paid and partner_external_id to pay commission on revenue actually collected.

Query parameters

connection_idstring
Only objects from this connection.
statusstring
One of open, paid, partially_refunded, refunded, void
subscription_idstring
Only invoices for this subscription.
partner_external_idstring
Only invoices attributed to this partner.
paid_afterstring (date-time)
Only invoices paid after this time.
updated_afterstring (date-time)
Only objects changed after this time. Use it for incremental sync.
include_remote_databoolean
Include remote_data, the raw values captured from the portal.
limitinteger
Page size.
cursorstring
The next_cursor from the previous page.

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
A page of invoices.
400
Invalid parameters, or a version we do not recognise.
401
Missing or invalid API key.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/invoices" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"

Get an invoice

GET/invoices/{invoice_id}Preview

Path parameters

invoice_idstringRequired

Query parameters

include_remote_databoolean
Include remote_data, the raw values captured from the portal.

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
The invoice.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/invoices/{invoice_id}" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"