Sample - Stripe API
GET/v1/payment_attempt_records

List Payment Attempt Records

Lists Payment Attempt Records attached to a specified Payment Record. Supply payment_record to scope the results, use limit to control page size, and use starting_after to retrieve subsequent pages.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

4 parameters
expandarray<string>optional
Fields to expand in the response; each value can contain up to 5000 characters.
limitintegeroptional
Maximum number of Payment Attempt Records to return, from 1 to 100. Defaults to 10 when omitted.
payment_recordstringrequired
The Payment Record identifier whose attached payment attempts to retrieve.
starting_afterstringoptional
An object ID cursor that identifies the end of the current page when retrieving the next page.

2 status codes
200Returns a list object containing Payment Attempt Records in `data`, a `has_more` pagination flag, the list object type, and its access URL.
dataarray<PaymentAttemptRecord>required
has_morebooleanrequired
True if this list has another page of items after this one that can be fetched.
objectstringrequired
String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
Allowed:list
urlstringrequired
The URL where this list can be accessed.
defaultReturned when the API reports an error; the response contains an `error` object with a `type` field.
errorobjectrequired

Error handling

payment_record must be a string no longer than 5000 characters identifying the Payment Record whose attempts you want to list. limit must be between 1 and 100 and defaults to 10; each starting_after value must be an object ID cursor.