Order

post
Order

https://seerbitapi.com/api/api/v2/payments/order
Order objects are created to handle purchases of previously defined products. You can create and pay for bulk orders
Request
Response
Request
Path Parameters
publicKey
required
string
This is the merchant public key
amount
optional
string
This is the amount to be paid
currency
required
string
This is the currency the transaction is to be carried out in
paymentReference
required
string
This is the unique identifier for a transaction, to be generated by merchant
email
required
string
This is the email of the customer
productId
optional
string
This is the productId entered by the merchant
productDescription
optional
string
This is the product description supplied by the merchant
callbackUrl
required
string
This is the callback url supplied by the merchant so that Seerbit can redirect to it
redirectLink
optional
string
This is returned when the payment link service is called
mobileNumber
optional
string
This is the customer's phone number
orderType
required
string
This is to specify the type of order payment
fullName
optional
string
This is the name of the customer
orders
required
string
This is an array of different orders to be payed for, to be provided by the merchant
orderId
required
string
This is to uniquely identify each order in the list of orders.
Response
200: OK
Response
{
"status": "SUCCESS",
"data": {
"code": "00",
"payments": {
"amount": "1400.00",
"paymentReference": "150647375452",
"paymentStatus": "08",
"redirectLink": "https://checkout.seerbitapi.com?mid=SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF&paymentReference=150647375452"
},
"message": "Successful"
Request
curl -X POST \
https://seerbitapi.com/api/v2/payments/order \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {token}' \
# token == encrypted private key
-d {
"email":"test@mvaa.com",
"publicKey":"SBTESTPUBK_PjQ5dFOi522L383MlsQYUMAe6cZYviTF",
"paymentReference": "3PP1133AS9874YE2393RTQAQ",
"fullName":"John Doe",
"orderType":"BULK_BULK",
"mobileNumber":"00000000000",
"callbackUrl":"https://yourdomain.com",
"country":"NG",
"currency":"NGN",
"amount":"1400",
"orders":[
{
"orderId":"22S789420214623",
"currency":"NGN",
"amount":"500.00",
"productId":"fruits",
"productDescription":"mango"
},
{
"orderId":"1a3sa82748272556947",
"currency":"NGN",
"amount":"900.00",
"productId":"fruits",
"productDescription":"orange"
}
]
}