v1

latestOpenAPI 3.1.02026-07-131991131.4 KB
Disputes

Approve disputes

Approve disputes (refund money to the customer). Only 20 disputes can be approved within a single request.

post/api/v1/disputes/approve

Request body

dispute_idsstring[] required

Array of dispute ids. Only 20 disputes can be approved within a single request.

Example request

{
  "dispute_ids": [
    "dispute id, uuid format"
  ]
}

Response

Success. Disputes were approved.

Example response

{
  "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",
      "items": [
        {
          "reference_id": "payment id",
          "title": "Order item title",
          "unit_price": "100.00"
        }
      ],
      "order_number": "#1234",
      "comment": "additional comments"
    }
  ]
}