Create an invoice

Create one or more invoices. Send the invoices in an invoices array.

The response returns the invoiceId. Call Get an invoice with it to get the payment page url (https://sadadpay.net/pay/{key}), then redirect your customer there.

  • amount is in KWD, with up to 3 decimal places. If you send items, amount must equal the sum of quantity × amount.
  • ref_Number is your order number. Use it to match the invoice to your order.
  • To split one invoice between suppliers, set "type": "MultiVendorInvoice" and a supplierId on every item. See Multi-Supplier Payments.

Guide: Hosted Payment Page.

Errors

errorKeyCause
AmountRequiredamount is missing or 0
CustomerNameRequiredcustomer_Name is missing
InvalidCurrencyCodecurrency_Code is missing or not supported
InvoiceAmountMustEqualsToTotalItemsAmountamount is not the total of the items
SuppliersItemsRequiredMulti-supplier invoice with an item that has no supplierId
SupplierNotExistForThisVendorA supplierId is not one of your Approved suppliers
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
invoices
array of objects
required

One or more invoices.

invoices*
Responses

isValid: validation errors also return HTTP 200 with isValid: false.

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json