Orders
Initiate offramp (native API)
Onboard Connect APIs
- Introduction
- Authentication
- User Endpoints
- Trading Endpoints
- Business Profile Endpoints
Orders
Initiate offramp (native API)
POST
/
transactions
/
v2
/
offramp
/
initiate
curl --request POST \
--url https://onboard-external-dev.api.nestcoin.io/transactions/v2/offramp/initiate \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '{
"offerId": "<string>",
"offerToken": "<string>",
"unitAmount": "<string>",
"rate": 123,
"fiatAmount": 123,
"tradeRequestBroadcastId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentMethodId": "<string>",
"buyerPaymentMethodId": "<string>",
"customerWallet": {
"walletAddress": 0,
"networkId": "bsc_testnet",
"walletName": "My Trust Wallet"
},
"apiKey": "<string>",
"thirdPartyOrderTradeId": "<string>",
"cexOrderId": 1
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "0165359005113074501885",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerName": "John Doe",
"offer": {
"offerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionType": "ONRAMP",
"rate": 0.32,
"networkId": "TRC20",
"fiatSymbol": "NGN",
"fiatAmount": 120.5,
"token": "USDT",
"tokenAmount": 120.5,
"partnerDisplayName": "John Doe",
"adNote": "Guaranteed fast payment",
"instantPayEnabled": true,
"instantPayPaymentAccountId": "<string>",
"tradeMode": "P2P"
},
"escrowAddress": 1.2869144918162796e+48,
"paymentChannelId": "BANK_TRANSFER_NIGERIA",
"paymentMethod": {},
"buyerPaymentMethod": {},
"customerWallet": {
"walletAddress": 0,
"networkId": "bsc_testnet",
"walletName": "My Trust Wallet"
},
"tokenAddress": 0,
"status": "INITIATED",
"createdAt": "2023-11-07T05:31:56Z",
"initiatedAt": "2023-11-07T05:31:56Z",
"depositedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"cancellationReason": "<string>",
"disputeId": "null",
"timeout": {
"name": "APPROVE_TRANSACTION",
"startTime": "2023-11-07T05:31:56Z",
"duration": 123,
"timeLeft": 123
},
"lockHash": "null",
"confirmationHash": "null",
"cancellationHash": "null",
"isPartnerAcknowledged": false,
"defaultingParty": "CUSTOMER",
"rating": 3,
"isCexOrder": false,
"fee": {
"asToken": "1000.0",
"asFiat": 123
},
"instantPayProcessingStatus": "PENDING_IP_REPORT",
"tradeValue": 123,
"merchantTokenValue": 123,
"customerTokenValue": 123,
"payableAmount": 123,
"thirdpartyOrderInfo": {
"businessId": "<string>",
"tradeId": "<string>",
"product": "<string>",
"blockchainOrderId": 123,
"externalOrderReference": "<string>"
},
"isNoKyc": true
}
Initiates a crypto sale (offramp) order on Onboard directly via the API.
Ideal for dApps integrating Onboard Connect natively, removing the need to redirect to a browser or webview.
Authorizations
Body
application/json
Response
201
application/json
Success
The response is of type object
.
curl --request POST \
--url https://onboard-external-dev.api.nestcoin.io/transactions/v2/offramp/initiate \
--header 'Content-Type: application/json' \
--header 'x-auth-token: <api-key>' \
--data '{
"offerId": "<string>",
"offerToken": "<string>",
"unitAmount": "<string>",
"rate": 123,
"fiatAmount": 123,
"tradeRequestBroadcastId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentMethodId": "<string>",
"buyerPaymentMethodId": "<string>",
"customerWallet": {
"walletAddress": 0,
"networkId": "bsc_testnet",
"walletName": "My Trust Wallet"
},
"apiKey": "<string>",
"thirdPartyOrderTradeId": "<string>",
"cexOrderId": 1
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "0165359005113074501885",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerName": "John Doe",
"offer": {
"offerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"transactionType": "ONRAMP",
"rate": 0.32,
"networkId": "TRC20",
"fiatSymbol": "NGN",
"fiatAmount": 120.5,
"token": "USDT",
"tokenAmount": 120.5,
"partnerDisplayName": "John Doe",
"adNote": "Guaranteed fast payment",
"instantPayEnabled": true,
"instantPayPaymentAccountId": "<string>",
"tradeMode": "P2P"
},
"escrowAddress": 1.2869144918162796e+48,
"paymentChannelId": "BANK_TRANSFER_NIGERIA",
"paymentMethod": {},
"buyerPaymentMethod": {},
"customerWallet": {
"walletAddress": 0,
"networkId": "bsc_testnet",
"walletName": "My Trust Wallet"
},
"tokenAddress": 0,
"status": "INITIATED",
"createdAt": "2023-11-07T05:31:56Z",
"initiatedAt": "2023-11-07T05:31:56Z",
"depositedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"cancellationReason": "<string>",
"disputeId": "null",
"timeout": {
"name": "APPROVE_TRANSACTION",
"startTime": "2023-11-07T05:31:56Z",
"duration": 123,
"timeLeft": 123
},
"lockHash": "null",
"confirmationHash": "null",
"cancellationHash": "null",
"isPartnerAcknowledged": false,
"defaultingParty": "CUSTOMER",
"rating": 3,
"isCexOrder": false,
"fee": {
"asToken": "1000.0",
"asFiat": 123
},
"instantPayProcessingStatus": "PENDING_IP_REPORT",
"tradeValue": 123,
"merchantTokenValue": 123,
"customerTokenValue": 123,
"payableAmount": 123,
"thirdpartyOrderInfo": {
"businessId": "<string>",
"tradeId": "<string>",
"product": "<string>",
"blockchainOrderId": 123,
"externalOrderReference": "<string>"
},
"isNoKyc": true
}