curl --request POST \
--url https://api.tabby.ai/api/v1/disputes/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dispute_ids": [
"dispute id, uuid format"
]
}
'{
"disputes": [
{
"id": "dispute id, uuid format",
"attachments": [
"attachment_1"
],
"payment_id": "payment id, uuid format",
"amount": "100.00",
"currency": "AED",
"created_at": "2018-10-17T00:00:00.000Z",
"expired_at": "2018-10-17T00:00:00.000Z",
"status": "new",
"reason": "unreceived_refund",
"days_left": 123,
"items": [
{
"reference_id": "payment id",
"title": "Order item title",
"unit_price": "100.00"
}
],
"order_number": "#1234",
"comment": "additional comments"
}
]
}Approve disputes (refund money to the customer). Only 20 disputes can be approved within a single request.
curl --request POST \
--url https://api.tabby.ai/api/v1/disputes/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dispute_ids": [
"dispute id, uuid format"
]
}
'{
"disputes": [
{
"id": "dispute id, uuid format",
"attachments": [
"attachment_1"
],
"payment_id": "payment id, uuid format",
"amount": "100.00",
"currency": "AED",
"created_at": "2018-10-17T00:00:00.000Z",
"expired_at": "2018-10-17T00:00:00.000Z",
"status": "new",
"reason": "unreceived_refund",
"days_left": 123,
"items": [
{
"reference_id": "payment id",
"title": "Order item title",
"unit_price": "100.00"
}
],
"order_number": "#1234",
"comment": "additional comments"
}
]
}Bearer authentication header of the form Bearer <secret_key>, where <secret_key> is your secret_key.
Array of dispute ids. Only 20 disputes can be approved within a single request.
Success. Disputes were approved.
Show child attributes
ID of the dispute.
"dispute id, uuid format"
Array of links to images which were uploaded by customer.
ID of the payment.
"payment id, uuid format"
Total disputed amount.
"100.00"
The currency of the dispute. It's always equal to the currency of the payment.
AED, SAR, KWD "AED"
Date and time the Dispute was created, in UTC, and displayed in ISO 8601 datetime format.
"2018-10-17T00:00:00.000Z"
Date and time of the expiration of the Dispute, in UTC, and displayed in ISO 8601 datetime format.
"2018-10-17T00:00:00.000Z"
The current status of the dispute:
new - dispute pending merchant approval for refund or initiate a challengedeclined - dispute was declined by Tabby supportcancelled - dispute was canceled by customerrefunded - dispute was approved or the order was refunded via Payments APIin_progress - merchant challenged dispute and need a response from Tabby supportnew, declined, cancelled, refunded, in_progress "new"
Cause of the dispute was created (selected by customer). There are only four reasons:
unreceived_refund - a refund not receivedidentity_theft - I did not place this order (also known as identity theft)product_issue - there was a problem with the productnot_delivered - the order was not deliveredunreceived_refund, identity_theft, product_issue, not_delivered "unreceived_refund"
How many days left before dispute will be automatically approved.
Merchant-assigned order number.
"#1234"
The customer additional comments on the causes of the dispute.
"additional comments"
Was this page helpful?