Payments

Base URL: $CONSUMER_API

Endpoints

List consumer payments

Logs

GET /payments

List payments for accounts linked to the authenticated consumer

Pages payments the caller made on accounts linked to them, across tenants unless X-Tenant-ID selects one. Pagination uses limit and after.

Parameters

limitinteger · query · optional

Maximum resources to return (default 20, maximum 100).

afterstring · query · optional

Opaque cursor returned by the previous page.

account_idstring · query · optional

Returns only payments on this account; it must be one of the caller's linked accounts.

invoice_idstring · query · optional

Returns only payments allocated to this invoice.

Returns

200 Payments restricted to the authenticated consumer's linked accounts

curl -X GET "$CONSUMER_API/payments" \
  -H "Authorization: Bearer sk_test_..."
Response 200

Payments restricted to the authenticated consumer's linked accounts