This will allow merchants to create a payment link and share it with the end-user via email, SMS, e-commerce or any channel he wants.
Invoice amount is always sent in KWD regardless of invoice currency.
API endpoint
The endpoint for creating Sadad payment invoice is the invoice insert API .
Simple Invoice
Sample Request
{
"Invoices": [
{
"ref_Number": "order_id",
"amount": "10",
"customer_Name": "test test",
"customer_Mobile": "813712",
"customer_Email": "[email protected]",
"lang": "en",
"currency_Code": "KWD"
}
]
}
Response
{
"isValid": true,
"errorKey": null,
"response": {
"invoiceId": "created_sadad_invoice_id"
}
}
Invoice with items
Sample Request
{
"Invoices": [
{
"ref_Number": "order_id",
"amount": "10",
"customer_Name": "test test",
"customer_Mobile": "813712",
"customer_Email": "[email protected]",
"lang": "en",
"currency_Code": "KWD",
"items": [
{
"name": "Item 1",
"quantity": 2,
"amount": 2
},
{
"name": "Item 2",
"quantity": 6,
"amount": 1
}
]
}
]
}
Response
{
"isValid": true,
"errorKey": null,
"response": {
"invoiceId": "created_sadad_invoice_id"
}
}
Invoice URL
In the response of Insert invoice, you will receive the Sadad invoice ID. Use this id to call the API endpoint GetById
In response of the call GetById, you will find a key value. Use this KEY value to redirect the customer to pay using below URL:
For sandbox: https://sandbox.sadadpay.net/pay/{KEY}
For production: https://sadadpay.net/pay/{KEY}