Skip to content

List payment attempts for an invoice

Request

Returns every attempt to collect payment for an invoice, newest first, with the reason for each failure. When a card payment fails, Acme retries it 1, 3, and 7 days after the first failed attempt. nextRetryAt on a failed attempt is the date of the next scheduled retry.

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

The ID of the invoice, for example INV-2041.

Query
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/invoices/{invoiceId}/payment-attempts?limit=25&cursor=string' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

A page of payment attempts.

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

Pagination details for a list.

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