Refunds
Refund a successful payment with the original sid.
Same /gateway/ endpoint as a charge. Auth: HTTP Basic.
curl -X POST "https://api.sifalopay.com/gateway/" \
-u "$SIFALO_API_USER:$SIFALO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": "5.00",
"gateway": "waafi",
"currency": "USD",
"payment_type": "refund",
"sid": "SIFALO123",
"order_id": "ORD-1001-R"
}'| Field | Rule |
|---|---|
payment_type | "refund" |
sid | Required. The original successful debit (601). |
gateway | Same method as the original payment |
amount | Usually the original full amount |
Success is code 601 and a new sid for the refund. Store that too.
Missing sid: { "code": "404", "response": "sid is required for refund." }
You can also refund from the Business portal.
Updated 3 months ago
Did this page help you?
