Create Order

Introduction

Merchant can get checkout url for user to pay by this api.

Checkout url would be available for an hour.

This api is for create order and required merchant signature.

API Description

Request Method:POST

Request Path:/api/v3/purchase/orders

Request Body Parameter:

Parameter

Mandatory

Description

marketplace

Y

Market place code:
4MEME_BNB
4MEME_Pancake_BNB

merchantOrderNo

Y

Merchant order number

toAddress

Y

Address of user to receive token

token

Y

Contract address of purchase token

symbol

Y

Symbol

decimals

Y

Token purchase decimal places

icon

Y

Token purchase icon url

─amount

N

Amount of purchase token(MEME)
Only type in one parameter offunds and amount

─funds

N

The quantity of purchase token(MEME) valued in terms of payment token
Only type in one parameter offunds and amount

buyGas

N

/

└─gasToken

N

Token for payment

└─amount

N

Amount of purchase token, count as gasToken

checkoutSettings

Y

Setting of checkout

└─redirectURL

Y

Redirect url, redirect user to after user payment success

Request Example:

{
    "marketplace": "4MEME_BNB", //marketplace code,contact us for it
    "merchantOrderNo": "12345", 
    "toAddress": "0x111...111", 
    "token": "0x123...456", 
    "symbol": "PEPE",      
    "decimals": "18",      
    "icon": "...",          
//only pass one parameter between amount and funds
    "amount": "2000000000" 
    "funds": "2345000000", 
    "buyGas": {                //Optional
        "gasToken": "BNB", 
        "amount": "0.05"
    }
    "checkoutSettings": { 
        "redirectURL":"http://demo.xyz/product/", 
    }
}

Response Example:

{
    "data": {
        "id": "188164692*******969",
        "checkoutId": "188164********3968",
        "checkoutUrl": "https://testcheckout.aeon.xyz/checkoutPay?checkoutId=1881********23968"
    }
}