-
- abort-payment-on-terminal
- capture-payment
- filter-payments
- find-payment
- initiate-payment-flow
- list-activity-logs
- list-payment-activities
- list-payments
- list-payments-by-contact
- list-payments-by-terminal
- refund-payment
- request-payment
- resume-payment-on-terminal
- retrieve-refund-performance
- retrieve-sales-performance
- reverse-payment
- start-payment-on-terminal
- void-payment
List disputes by payment
Returns a paginated list of disputes for a specific payment.
The payment_id is the payment UID (for example pay_...).
The response uses cursor-based pagination with previous and next cursors.
payment_id
string
Required. The payment ID to list disputes for.
per_page
number
Optional. Number of disputes to return per page (default: 25)
after
string
Optional. Cursor for pagination - return disputes created before this dispute ID
before
string
Optional. Cursor for pagination - return disputes created after this dispute ID
| Attribute | Description |
|---|---|
dispute_idstring
|
Always present. The unique identifier of the dispute. |
payment_idstring
|
Always present. The ID of the payment being disputed. |
contact_idstring
|
Nullable. The ID of the contact who made the payment. |
messagestring
|
Nullable. Additional context about the dispute, if any, provided by Reservepay. |
statusstring
|
Always present. The overall status of the dispute. Possible values:
|
challenge_received_atnumber
|
Nullable. The (unix) timestamp when the merchant submitted the challenge. |
escalation_received_atnumber
|
Nullable. The (unix) timestamp when the merchant submitted the escalation. |
won_atnumber
|
Nullable. The (unix) timestamp when the dispute was won. |
lost_atnumber
|
Nullable. The (unix) timestamp when the dispute was lost. |
amountnumber
|
Always present. The disputed amount in subunits. |
currencystring
|
Always present. The 3-letter ISO currency code. |
reasonstring
|
Always present. The reason code for the dispute. |
suggested_evidencearray
|
Always present. A list of suggested evidence types for this dispute based on its reason. Possible values:
|
deadline_atnumber
|
Nullable. The timestamp (Unix) by which a challenge or escalation is required. Failure to escalate or challenge will cause the dispute to be automatically closed in favor of the customer. |
created_atnumber
|
Always present. The timestamp when the dispute was created. |
feesarray
|
Always present. The fees associated with the dispute. |
evidencesarray
|
Always present. The evidence submitted for this dispute. |
NOT_FOUND
No payment found with the provided payment_id for this merchant.
UNHANDLED_ERROR
This error occurs when the server encounters an unexpected internal error that it cannot handle gracefully. This typically happens due to bugs, infrastructure issues, or edge cases that weren't anticipated during development.
INVALID_ARGUMENTS
This error occurs when the request contains invalid or missing parameters. Common cases include missing required fields, or values that don't match the expected format or type.
BAD_VERSION
This error occurs when making requests to an API version that does not exist. This commonly happens when using an outdated SDK or when the API version specified in the request URL is incorrect.
curl "https://api.reservepay.com/merchants/list-disputes-by-payment" \
-X POST
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer $(RESERVEPAY_API_KEY)" \
-d '{
"payment_id": "pay_01kwbby4c702mbq2htbbwnywhd"
}'
