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"
  }'
FieldRule
payment_type"refund"
sidRequired. The original successful debit (601).
gatewaySame method as the original payment
amountUsually 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.


Did this page help you?