POST
/
refund
curl --request POST \
  --url https://api-v2.ziina.com/api/refund \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "payment_intent_id": "<string>",
  "amount": 123,
  "currency_code": "<string>",
  "test": true
}'
{
  "id": "<string>",
  "payment_intent_id": "<string>",
  "amount": 123,
  "currency_code": "<string>",
  "status": "pending",
  "created_at": "<string>",
  "error": {
    "message": "<string>",
    "code": "<string>"
  }
}

In order to call this endpoint your token must have write_refunds scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

default - application/json

The response is of type object.