Create a package

Sell a package to a customer. The response id is the package key. Send the customer to https://sadadpay.net/package/consumption/{key} to pay; sendType (Email or SMS) also sends them the link.

The package starts as New and becomes Active once paid.

🚧

The template's details are not copied. Send packageType, itemCount, startDate, endDate and the prices from the template, or the package is saved without them.

Errors

errorKeyCause
VendorIdRequiredvendor_Id is missing
CustomerNameRequiredcustomer_Name is missing
PriceRequiredprice is missing or 0
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required

Your SADAD Pay vendor ID.

integer

The package template ID.

string

The template name, shown to the customer.

string
required

The customer's name.

string

The customer's mobile number, digits only.

string

The customer's email address.

string

Payment page language: en or ar.

string

How to send the link: SMS or Email.

string

Currency code. Use KWD.

number
required

Price of one unit, in KWD.

number

Price before the discount, in KWD.

integer

Discount, in KWD.

string

CountBased or CostBased.

integer

Number of uses, for a CountBased package.

string

First due date (yyyy-MM-dd).

string

Last day of the package (yyyy-MM-dd).

boolean

Renew the package automatically.

boolean

Internal use only.

integer

Fee charged if the customer cancels.

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