Get A Quote
After creating a quote, a quote id
is always returned in the response. This quote ID is important to the initialization of a transfer, and the finalization afterwards. Retrieve a quote information by making a request to the Get Quote API:
curl https://api.busha.co/v1/quotes/{id}
The same Quote response as when it was created will be returned with its expiration time:
{
"status": "success",
"message": "message for success",
"data": {
"id": "bus_123456789",
"source_currency": "BTC",
"target_currency": "BTC",
"source_amount": "100",
"target_amount": "100",
"profile_id": "bus_123456789",
"rate": {
"product": "BTCUSDT",
"source_currency": "BTC",
"target_currency": "BTC",
"rate": "100",
"side": "sell",
"type": "FIXED"
},
"fees": [
{
"name": "processing_fee",
"amount": {
"amount": "100",
"currency": "BTC"
},
"converted_amount": {
"amount": "100",
"currency": "BTC"
},
"type": "FIXED"
}
],
"pay_in": {
"type": "address",
"recipient_id": "64ae8c26ea1033204c805a8a",
"profile_id": "profile-id-1234",
"address": "tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr",
"network": "BTC",
"memo": "address memo",
"recipient_details": {
"account_name": "…",
"bank_name": "…",
"account_number": "…",
"country": "…",
"phone_number": "…",
"name": "…",
"email": "sbsbs@busha.co"
},
"expires_at": "2023-10-15T12:15:30Z"
},
"pay_out": {
"type": "address",
"recipient_id": "64ae8c26ea1033204c805a8a",
"profile_id": "profile-id-1234",
"address": "tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr",
"network": "BTC",
"memo": "address memo",
"recipient_details": {
"account_name": "…",
"bank_name": "…",
"account_number": "…",
"country": "…",
"phone_number": "…",
"name": "…",
"email": "sbsbs@busha.co"
},
"expires_at": "2023-10-15T12:15:30Z"
},
"reference": "QUO_123456abc",
"status": "pending",
"expires_at": "2023-12-01T15:04:05Z",
"created_at": "2023-10-15T12:15:30Z",
"updated_at": "2023-10-15T12:20:45Z",
"two_step": {
"type": "authenticator",
"message": "Enter your 2FA code to continue",
"resend_allowed": false
}
}
}