Refund Endpoint
Testing
POST
https://ws2-payments.datmanpay.com/api2.php
Refund API
Overview
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://ws2-payments.datmanpay.com/api2.php?action=refund' \
--header 'api_token: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": "12345678",
"amount": "213.39",
"merchant_id": "63123098",
"reason": "store close",
"destination": "CARD",
"requested_by": "Client-01"
}'
Response Response Example
Success
{
"outcome": "success"
}
Request
Query Params
action
stringÂ
required
Example:
refund
Header Params
api_token
stringÂ
required
Example:
{{API_KEY}}
Content-Type
stringÂ
required
Example:
application/json
Body Params application/json