Swap Order
Initiate Swap Order
This endpoint is called when a customer wants to make either a fiat-fiat or crypto-crypto swap for currencies.
It is an POST
endpoint that takes your secretKey
as a required parameter in the Header which verifies the integrity of your third-party application.
Your request should contain properties like the customer's email, phone number, customer deposit, and receipt methods, etc. See the example below;
Initates a swap order
POST
https://canary.xendbridge.com/api/peertopeerorder/swap/initiate
Headers
Name | Type | Description |
---|---|---|
secretKey* | string | {your_secretKey} |
Request Body
Name | Type | Description |
---|---|---|
email* | string | annadoe@gmail.com |
phoneNumber | string | 07012345678 |
userName | string | annadoe |
payInCurrencyCode* | string | BUSD |
payInCurrencyNetwork* | string | BEP20 |
receieveInCurrencyCode* | string | USDT |
receieveInCurrencyNetwork* | string | POLYGON |
orderAmount* | decimal | 50 |
consumerDepositMethod | object | |
paymentMethod* | string | Crypto |
paymentData | object | |
consumerReceiptMethod | object | |
paymentMethod* | string | Crypto |
paymentData | object | |
walletAddress* | String | 0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd |
network* | string | POLYGON |
walletAddress | string | 0x52434Ac4BE04393e020c9b16C327d04d4367Cbcd |
network | string | BEP-20 |
Parameter | Type | Definitions |
---|---|---|
emailAddress | string |
|
phoneNumber | string |
|
userName | string |
|
payInCurrencyCode | enum |
|
receiveInCurrencyCode | enum |
|
orderAmount | decimal |
|
consumerDepositMethod | object |
|
paymentMethod | enum |
|
paymentData | object |
|
walletAddress | string |
|
network | enum |
|
consumerReceiptMethod | object |
|
paymentData | object |
|
accountName | string |
|
accountNumber | string |
|
bankName | string |
|
Last updated