Request Refund
POST
https://api.zid.sa/v1{ProviderUrl}/refund
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.paymentprovider.com/refund' \
--header 'Authorization: Authorization: Basic secret_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 5000,
"paymentId": "pay_abc123xyz"
}'
Response Response Example
{
"refundId": "9f4b5fa0-bd22-40e4-b3ad-e6742f37a102",
"refundReference": "f781d5fa-9e8d-49b5-92a2-37321d5c8c4f",
"status": "Refunded"
}
Request
Path Params
ProviderUrl
stringÂ
required
Example:
https://api.paymentprovider.com
Header Params
Authorization
stringÂ
optional
Example:
Authorization: Basic secret_key
Body Params application/json