Skip to main content
PUT
/
refund
/
{id}
Update Refund
curl --request PUT \
  --url https://service-sandbox.tazapay.com/refund/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "Damaged Goods",
  "metadata": {
    "key1": "value1",
    "key2": "value2"
  }
}
'
{
  "status": "success",
  "message": "refund updated successfully",
  "data": {
    "id": "rfd_afiuabfia23wifaiofnioa12nfianf",
    "object": "refund",
    "payin": "chk_cirsp2sl4ar024j0akj0",
    "amount": 90000,
    "currency": "USD",
    "customer_receives": {
      "currency": "",
      "amount": null
    },
    "payment_attempt": "pat_ahbfiuahfiuaiofnioain",
    "reason": "Damaged Goods",
    "metadata": {
      "key1": "value1",
      "key2": "value2"
    },
    "status": "pending",
    "status_description": "",
    "webhook_url": "https://mystore.webhook.tazapay.refund/",
    "created_at": "2023-07-23 23:59:56"
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

ID of the existing refund object to be updated

Body

application/json
reason
string

Reason for the refund

metadata
string

Set of key-value pairs to attach to the refund object

Response

200 - application/json

200

status
string

Indicates whether the refund creation request was successful.

message
string

Describes the outcome of the refund operation.

data
object

Contains detailed information about the created refund.