Submit Order Refund
POSThttps://open.paycloud.africa/api/entry/refund
If there's a need to issue a refund after a payment has been completed, you can request it through this API. Once the payment gateway confirms the legitimacy of the refund request, the amount will be returned to the payer in accordance with the established refund guidelines.
- It's possible to issue multiple partial refunds using the original order number. However, the combined amount of all refunds shouldn't surpass the original payment amount. Typically, you shouldn't have more than 10 partial refunds for a single order.
- After issuing a refund, you should utilize the [Query Refund] API to check on its status. Remember, refunds might not be instantaneous and can be influenced by the policies of the specific payment channel.
Note: In-store card-present (CP) transactions cannot initiate a refund request through this API.
Here is a Java code example
Request
Responses
- 200
success
Response Headers
- curl
- java
- php
- csharp
- python
- nodejs
- go
- ruby
- CURL
curl -L 'https://open.paycloud.africa/api/entry/refund' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"app_id": "string",
"format": "string",
"charset": "string",
"sign_type": "RSA2",
"sign": "string",
"version": "string",
"timestamp": 0,
"method": "string",
"merchant_no": "string",
"orig_merchant_order_no": "string",
"orig_trans_no": "string",
"merchant_order_no": "string",
"price_currency": "string",
"order_amount": 0,
"description": "string",
"notify_url": "string"
}'
ResponseClear