Skip to content

Create Refund

Request

Create a Refund

Bodyapplication/jsonrequired
charge_idstringrequired

Unique identifier for the charge

Example:"ch_01j8emz8chfxbb2bqmtref8ch7"
merchant_idstring, non-emptyrequired

Unique identifier for the merchant

Example:"merchant_02c7h71rf3eg396idngupsr66t"
amountinteger, (int32)required

Amount of the refund

Example:100
curl -i -X POST \
  https://docs.taluspay.com/_mock/openapi/v1/refunds \
  -H 'Content-Type: application/json' \
  -d '{
    "charge_id": "ch_01j8emz8chfxbb2bqmtref8ch7",
    "merchant_id": "merchant_02c7h71rf3eg396idngupsr66t",
    "amount": 100
  }'

Responses

Refund created successfully

Bodyapplication/json
idstringrequired

Unique identifier for the refund

Example:"re_01j8emz8chfxbb2bqmtref8ch7"
charge_idstringrequired

Unique identifier for the charge

Example:"ch_01j8emz8chfxbb2bqmtref8ch7"
merchant_idstringrequired

Unique identifier for the merchant

Example:"merchant_02c7h71rf3eg396idngupsr66t"
amountinteger, (int32)required

Amount of the refund

Example:100
created_atinteger, (int32)required

Timestamp in milliseconds when the refund was created

Example:1727875117482
Response
{ "id": "re_01j8emz8chfxbb2bqmtref8ch7", "charge_id": "ch_01j8emz8chfxbb2bqmtref8ch7", "merchant_id": "merchant_02c7h71rf3eg396idngupsr66t", "amount": 100, "created_at": 1727875117482 }