New Order

Create an order in EzeebitPay and redirect to the payment interface (payment_url).

Live:

POST https://api.ezeebit.com/open/api/v1/newOrderarrow-up-right

UAT:

POST https://uat-api.ezeebit.com/open/api/v1/newOrderarrow-up-right

Headers

Name
Type
Required
Value

Content-Type

string

Y

application/json

Ezeebit-Timestamp

long

Y

UnixTimestamp in milliseconds

Ezeebit-Nonce

string

Y

must be 32 digits

Ezeebit-Certificate-SN

string

Y

API key issued by Ezeebit Pay system

Ezeebit-Signature

string

Y

this should use SHA512, and be in upper case

Request Body

{
  "amount": 20.00,
  "tradeOrderNo": "595333",
  "storeNumber": "635428229",
  "webHookUrl": "https://webhook.site/0f629443-e268-4de2-a3c1-5a132240f69e",
  "externalUser" :{
    "userId" : "543241225346453",
    "notify" : true,
    "profile" : {
        "firstName": "John",
        "lastName": "Doe",
        "email": "[email protected]"
    }
  }
}

Form data

Parameter
Type
Required
Description

amount

double

Y

The amount of the order

tradeOrderNo

string

Y

The order number of the calling system. Note: This can be randomly generated. Having a timestamp in front of the random number generated might keep the order number more accurate

storeNumber

string

Y

The Store Number of the Merchant, It can be obtained from the Store List of Merchant Portal or through the Get Merchant interface

webHookUrl

string

N

Send an automated message to Merchant WebHook URL when order status is changed

externalUser

Json

N

This object should have userId of platform user. notify is optional but, if enabled then email is required. profile should have firstName and lastName of the user.

Response

Status
Description

200

Order created successfully

Example Response

Last updated