Logo
Peach Payments Public API Documentation

Refund transaction

POST {{baseUrl}}/payments/:transactionId

Refund a successful debit transaction.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "id": "994cbaf816dc4a36b42250878b9e042c", "paymentType": "RF", "result": { "code": "700.400.200", "description": "cannot refund (refund volume exceeded or tx reversed or invalid workflow?)" }, "timestamp": "2022-09-29T10:12:25.742862Z", "amount": "20.00", "currency": "ZAR" }



Curl
curl -X POST 'baseUrl/payments/:transactionId' -d '{"authentication":{"userId":"apiUsername","password":"apiPassword","entityId":"entityId"},"amount":"20.00","currency":"ZAR","paymentType":"RF"}'

ENDPOINTS