PT EN

Pagamentos

URL base: $CONSUMER_API

Operações

Listar pagamentos

Registos

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.

Parâmetros

limitinteger · consulta · opcional

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

afterstring · consulta · opcional

Opaque cursor returned by the previous page.

account_idstring · consulta · opcional

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

invoice_idstring · consulta · opcional

Returns only payments allocated to this invoice.

Devolve

200 Payments restricted to the authenticated consumer's linked accounts

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

Payments restricted to the authenticated consumer's linked accounts