Sell Order
Initiate Sell Order
The sell order POST
api takes your secretKey
as a required parameter which should be in your environment variables as it verifies the integrity of your third-party application.
You will send a POST
request containing properties like the customer's email, phone number, customer deposit and receipt methods etc. See example below;
Initiates a sell order
POST
https://canary.xendbridge.com/api/peertopeerorder/sell/initiate
Headers
secretKey*
string
{your_secretKey}
Request Body
email*
string
annadoe@gmail.com
phoneNumber
string
07012345678
userName
string
annadoe
payInCurrencyCode*
string
BUSD
payInCurrencyNetwork*
string
BEP-20
receieveInCurrencyCode*
string
NGN
receieveInCurrencyNetwork*
string
LOCAL
orderAmount*
decimal
50
consumerDepositMethod
object
paymentMethod*
string
Bank
paymentData
object
accountName*
string
John Doe
accountNumber*
string
0000187454
bankName*
string
Access Bank
consumerReceiptMethod
object
paymentMethod*
string
Crypto
paymentData
object
walletAddress*
String
0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd
network*
string
BEP-20
emailAddress
string
Required
This is the consumer's email address.
phoneNumber
string
Required
This is the consumer's phone number.
userName
string
Required
This is the consumer's username
payInCurrencyCode
enum
Required
This is the currency code to pay with. Must be BUSD
for sell order.
receiveInCurrencyCode
enum
Required
This is the currency code to receive the currency in. Must be NGN
for buy order.
orderAmount
decimal
Required
The order amount by the consumer.
consumerDepositMethod
object
Required
This holds the properties of the deposit method of the consumer.
paymentMethod
enum
Required
The payment method by which transactions are made. It should be CRYPTO
for sell order.
paymentData
object
Required
This holds the properties of the wallet details of the consumer.
walletAddress
string
Required
The crypto wallet address of the consumer.
network
enum
Required
This is the network on which the address is on. It could be BEP20
, ERC20
or POLYGON
.
consumerReceiptMethod
object
Required
This holds the properties of the consumer receiving method. The paymentMethod
prop must be Bank
.
paymentData
object
Required
This holds the properties of the consumer receiving bank account details.
accountName
string
Required
This is the account name of the consumer.
accountNumber
string
Required
The local bank account number of the consumer
bankName
string
Required
This is the bank name of the consumer.
Last updated