Disputes

Approve disputes

Changed on

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

post/api/v1/disputes/approve

Request

  • Base URL
    https://api.tabby.ai
  • URL
    https://api.tabby.ai/api/v1/disputes/approve
  • Auth
    HTTP bearer

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-17",
      "expired_at": "2018-10-17",
      "status": "new",
      "reason": "unreceived_refund",
      "items": [
        {
          "reference_id": "payment id",
          "title": "Order item title",
          "unit_price": "100.00"
        }
      ],
      "order_number": "#1234",
      "comment": "additional comments"
    }
  ]
}

Changes

    • breaking

      the response's body type changed from string to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      removed the KWD enum value from the // response property for the response status