Skip to content

Payments

Payments that Acme captured for an invoice.

List payments

Request

Returns the payments that Acme captured, newest first. A failed attempt is not a payment, so see the payment attempts of the invoice for failures.

Security
ApiKey
Query
invoiceIdstring^INV-[0-9]+$

Return only the payments for this invoice.

Example:invoiceId=INV-2042
customerIdstring^cus_[A-Za-z0-9]+$

Return only the payments of this customer.

Example:customerId=cus_H5k9Rv3Mx
limitinteger, [ 1 .. 100 ]

The maximum number of items to return.

Default:25
cursorstring

The page.nextCursor value from the previous response. Omit it to get the first page.

curl -i -X GET \
  'https://acme-billing.redocly.app/_mock/apis/billing/payments?invoiceId=INV-2042&customerId=cus_H5k9Rv3Mx&limit=25&cursor=string' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

A page of payments.

Bodyapplication/json
objectstringrequired
Value:"list"
itemsarray of objects(Payment)required
pageobject(Page)required

Pagination details for a list.

Response
{ "object": "list", "items": [ { … }, { … }, { … } ], "page": { "limit": 25, "hasMore": false, "nextCursor": null } }