Refunds

Return all or part of a payment to your customer, from the portal or the API.

You can refund a paid invoice in full or in part, as many times as you need, up to the amount the customer paid. Refunds can be made from the portal or with the API.

🚧

Refund amounts are always in KWD

Whatever currency the invoice was created in, the refund amount is in KWD. For example, to refund a 10 USD invoice in full, refund its KWD amount, not 10.

How the money is returned

Every refund uses one of two methods. Both return the money to the customer's card or account.

Methodrefund_TypeWhere the money comes fromWhen it completes
Deduct from BalanceDeductFromBalanceYour pending SADAD Pay balance (money collected but not yet deposited to your bank)Straight away
Pay AmountPayAmountYou pay the refund amount yourself, through a SADAD Pay payment pageWhen you pay the refund invoice

📘

Not enough balance?

If you choose Deduct from Balance but your balance is lower than the refund, SADAD Pay switches to Pay Amount: it creates a refund invoice for you to pay. The API tells you which one happened (see Response).

Refund from the portal

  1. Go to Invoices and find the paid invoice.
  2. Click Refund in its row.
  3. Choose Deduct from Balance or Pay Amount. Your current balance is shown at the top.
  4. Enter the Amount To Refund in KWD. It starts at the full amount; change it for a partial refund.
  5. Add a Refund Reason and click Refund.
1568

The Refund window in the portal

All your refunds are listed under Refunds, with their reference (REF-…), invoice, amount, method and status.

Refund with the API

POST /api/Refund/insert · API Reference

Request fields

FieldTypeRequiredDescriptionExample
invoice_IdintegerYesThe ID of the paid invoice92947
amountnumberYesThe amount to refund, in KWD. Greater than 0, and no more than the amount not yet refunded.0.500
refund_TypestringYesDeductFromBalance or PayAmount"DeductFromBalance"
currency_CodestringYesAlways KWD"KWD"
notestringNoThe reason for the refund, for your records"Item returned"
curl -X POST "https://apisandbox.sadadpay.net/api/Refund/insert" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "invoice_Id": 92947,
    "amount": 0.500,
    "refund_Type": "DeductFromBalance",
    "currency_Code": "KWD",
    "note": "Item returned"
  }'

Response

There are two kinds of successful response. Check which field is in response:

{
  "isValid": true,
  "errorKey": null,
  "response": {
    "refund_Id": 1084
  }
}
{
  "isValid": true,
  "errorKey": null,
  "response": {
    "invoice_Key": 2058589392950
  }
}
{
  "isValid": false,
  "errorKey": "InvalidRefundAmount",
  "response": null
}
Response containsWhat happenedWhat to do
refund_IdThe refund was taken from your balance and is completeNothing. Save the refund_Id.
invoice_KeyA refund invoice was created for you to pay. The refund completes once it is paid.Pay it at https://sadadpay.net/pay/{invoice_Key} (Sandbox: https://sandbox.sadadpay.net/pay/{invoice_Key}). You can also find it in the portal under Invoices, with type Refund.

Check a refund

GET /api/Refund/getbyid?id={refund_Id} returns one refund. GET /api/Refund/getallbypage lists your refunds, with filters such as code, status, date_From and date_To.

{
  "isValid": true,
  "errorKey": null,
  "response": {
    "id": 1084,
    "code": "REF-01084",
    "invoice_Id": 92947,
    "invoice_Code": "INV-92947",
    "amount": 0.5,
    "currency_Code": "KWD",
    "refund_Type": "DeductFromBalance",
    "customerCredit_Amount": 0.5,
    "vendorDebit_Amount": 0.5,
    "fees_Amount": 0,
    "status": "Completed",
    "createDate": "11/16/2026 15:42:02"
  }
}
Refund statusMeaning
StartedA refund invoice was created and is waiting for you to pay it
CompletedThe refund is done
FieldDescription
customerCredit_AmountThe amount returned to the customer
vendorDebit_AmountThe amount taken from you
fees_AmountAny fee charged for the refund
1254

Refunds in the portal: refund reference, invoice, amount, type (Deduct from Balance or Pay Amount) and status

How a refund shows on the invoice

When you get the invoice with GET /api/Invoice/getbyid:

  • refunded_Amount is the total refunded so far, in KWD.
  • Each refund is added to transactions with "request_Type": "Refund".
  • The invoice status changes to Refunded when the full amount has been refunded. After a partial refund it stays Paid (or Deposited).
"status": "Paid",
"amount": 1.25,
"refunded_Amount": 0.5,
"transactions": [
  { "request_Type": "Refund",  "status": "Success", "amount": 0.5 },
  { "request_Type": "Capture", "status": "Success", "amount": 1.25 }
]

📘

Work out what is left to refund

The most you can still refund is amount - refunded_Amount. An invoice is fully refunded when refunded_Amount equals amount, and its status is then Refunded.

Supplier invoices

If you use Multi-Supplier payments, refund a supplier's part of an invoice with POST /api/Refund/InsertFoSupplier. It takes the same fields as Refund/insert, plus supplierId.

Common errors

errorKeyCauseHow to fix
InvalidRefundAmountThe amount is 0, or more than what is left to refundRefund no more than amount - refunded_Amount
null, with "refund_Id": 0 and "isValid": falseThe invoice is not paid, or refund_Type is not validRefund only paid invoices, and use DeductFromBalance or PayAmount
UnauthorizedAccess (HTTP 401)The Access Token is missing, wrong or expiredGenerate a new Access Token

Next steps