A customer may dispute their payment with the card issuer/bank if they believe the charge is erroneous. When this happens, a dispute record is created and associated with their original payment.
List the disputes for your account. This endpoint supports pagination. The disputes for a specific payment are also included in the payments API response.
Authorization required | string the Example: Bearer {access_token} |
Sub-Account | string for platforms, the id of the sub account that this request applies to Example: acc_2IdMEOjIG6lJAncakgdBF2 |
Seller-Account | string Deprecated for platforms, the id of the seller account that this request applies to |
Successfully list disputes
{- "id": 1,
- "type": "array",
- "data": [
- {
- "id": "dp_xyz",
- "amount": 100,
- "currency": "usd",
- "payment_id": "py_xyz",
- "reason": "fraudulent",
- "status": "won",
- "metadata": { },
- "created_at": "2021-01-01T12:00:00Z",
- "updated_at": "2021-01-01T12:00:00Z"
}
], - "page_info": {
- "end_cursor": "WyIyMDIyLTAyLTA4IDE5OjUyOjM3LjEwNDE3MzAwMCIsIjY4MDliYTU5LTYxYjctNDg3MS05YWFiLWE2Y2MyNmY3M2M1ZCJd",
- "has_next": false,
- "has_previous": false,
- "start_cursor": "WyIyMDIyLTAyLTA4IDIwOjAxOjU4LjEyMDIzMjAwMCIsIjU5ZTFjNGI1LWFlOWQtNDIyZC04MTVkLWNjNzQ5NzdlYmFjYSJd"
}
}
{- "id": 1,
- "type": "dispute",
- "data": {
- "id": "dp_xyz",
- "amount": 100,
- "currency": "usd",
- "payment_id": "py_xyz",
- "reason": "fraudulent",
- "status": "won",
- "metadata": { },
- "created_at": "2021-01-01T12:00:00Z",
- "updated_at": "2021-01-01T12:00:00Z"
}, - "page_info": "string"
}
Change a dispute's metadata.
Idempotency-Key required | string <uuid> a string to identify your request (we recommend using a generated uuid, but you may use any unique string) see Idempotent Requests Example: my-request-123abc |
Authorization required | string the Example: Bearer {access_token} |
Dispute update was successful
{- "metadata": { }
}
{- "id": 1,
- "type": "dispute",
- "data": {
- "id": "dp_xyz",
- "amount": 100,
- "currency": "usd",
- "payment_id": "py_xyz",
- "reason": "fraudulent",
- "status": "won",
- "metadata": { },
- "created_at": "2021-01-01T12:00:00Z",
- "updated_at": "2021-01-01T12:00:00Z"
}, - "page_info": "string"
}