Create an invoice from a product link

Create the invoice for a product link cart. Each item's amount must be the product's current unit price, and totalAmount the sum of quantity × amount. Redirect the customer to https://sadadpay.net/pay/{invoice_Key}.

Errors

errorKeyCause
CustomerMobileRequiredcustomer_Mobile is missing
InvalidProductAmountAn item's amount is not the product's price
InvoiceAmountMustEqualsToTotalItemsAmounttotalAmount is not the sum of the items
YouExceededAvailableQuantityMore than the stock left
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The customer's name.

string
required

The customer's mobile number, digits only.

string

The customer's email address.

string

Payment page language: en or ar.

number
required

Total in KWD. Must equal the sum of the items, where items are sent.

string
required

Currency code. Use KWD.

products
array of objects
required

Products and quantities.

products*
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