Refund Transaction
INFO
1.
accepted
status.2.
3.
4.
CAUTION
Create a POST request
CAUTION
Authorization
parameter is obliged for all requests sent to ZEN.COM API. Authorization
value is the Terminal API key
parameter you can find in your my.zen.com Merchant portal.CAUTION
Field | Type | Description |
---|---|---|
request-id | string | A unique identifier generated by requesting Merchant. |
Field | Type | Description |
---|---|---|
amount | String | Amount of the Transaction. |
transactionId | String | Transaction Id generated during create purchase Transaction process. |
currency | String | Currency code in ISO 4217 alphabetic code. Currency code should be the same as in purchase Transaction. |
merchantTransactionId | String | Origin Id of the transaction provided by Merchant. |
source.channel | String | Default to PTS_ZEN_API |
{
"comment":"Product failure",
"amount":"123.45",
"transactionId":"43d435a2-1abc-4321-8fd1-432148712345",
"currency":"USD",
"merchantTransactionId":"99beb187-f8a3-99b8-9ef8-b31180358dd3",
"originMerchantTransactionId":"99beb187-f8a3-99b8-9ef8-b31180358dd3",
"source":{
"channel":"PTS_ZEN_API"
}
}
Send the request
Send the POST request to:test environment: https://api.zen-test.com/v1/transactions/refund production environment: https://api.zen.com/v1/transactions/refund
1.
2.
Receive the ZEN.COM response
Receive the ZEN.COM response.💡 Example of JSON response
{
"id":"497f6eca-6276-4993-bfeb-53cbbbba6f08",
"parentTransactionId":"43d435a2-1abc-4321-8fd1-432148712345",
"merchantTransactionId":"99beb187-f8a3-99b8-9ef8-b31180358dd3",
"originMerchantTransactionId":"99beb187-f8a3-99b8-9ef8-b31180358dd3",
"amount":"123.45",
"currency":"USD",
"authorization":{
"amount":"123.45",
"currency":"USD"
},
"createdAt":"2024-12-30T20:48:22.123Z",
"modifiedAt":"2024-12-30T20:48:22.123Z",
"type":"TRT_REFUND",
"status":"ACCEPTED",
"paymentChannel":"PCL_CARD"
}
Modified at 2025-01-21 14:14:41