Authorizations
Bearer Authentication
Headers
Example:
"pub_uibaidu930ani"
Path Parameters
Example:
"bus_123456789"
curl --request GET \
--url https://api.sandbox.busha.so/v1/payments/requests/{id} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "message for success",
"data": {
"id": "bus_123456789",
"source_amount": "100",
"source_currency": "BTC",
"target_amount": "100",
"target_currency": "BTC",
"rate": {
"product": "BTCUSDT",
"rate_explained": "1 BTC = 1000 USDT",
"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",
"address": "tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr",
"network": "BTC",
"memo": "address memo",
"profile_id": "profile-id-1234",
"recipient_details": {
"account_name": "<string>",
"bank_name": "<string>",
"account_number": "<string>",
"country_code": "NG",
"provider": "<string>",
"currency": "<string>",
"phone_number": "<string>",
"name": "<string>",
"email": "sbsbs@busha.co",
"bank_code": "100020"
},
"blockchain_hash": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"blockchain_url": "https://explorer.com/tx/31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"session_id": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"expires_at": "2023-10-15T12:15:30Z"
},
"reference": "<string>",
"status": "pending",
"additional_info": {
"email": "jsmith@example.com",
"phone_number": "+234 8012345678"
},
"merchant_info": {
"name": "busha",
"email": "busha@me.com"
},
"source": "<string>",
"source_id": "<string>",
"timeline": {
"total_steps": 123,
"current_step": 123,
"transfer_status": "<string>",
"events": [
{
"step": 1,
"done": true,
"status": "pending",
"title": "Transfer started",
"description": "Transfer started",
"timestamp": "2023-10-15T12:15:30Z"
}
]
},
"created_at": "2023-10-15T12:15:30Z",
"updated_at": "2023-10-15T12:15:30Z",
"expires_at": "2023-10-15T12:15:30Z"
}
}Retrieve a payment request
curl --request GET \
--url https://api.sandbox.busha.so/v1/payments/requests/{id} \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "message for success",
"data": {
"id": "bus_123456789",
"source_amount": "100",
"source_currency": "BTC",
"target_amount": "100",
"target_currency": "BTC",
"rate": {
"product": "BTCUSDT",
"rate_explained": "1 BTC = 1000 USDT",
"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",
"address": "tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr",
"network": "BTC",
"memo": "address memo",
"profile_id": "profile-id-1234",
"recipient_details": {
"account_name": "<string>",
"bank_name": "<string>",
"account_number": "<string>",
"country_code": "NG",
"provider": "<string>",
"currency": "<string>",
"phone_number": "<string>",
"name": "<string>",
"email": "sbsbs@busha.co",
"bank_code": "100020"
},
"blockchain_hash": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"blockchain_url": "https://explorer.com/tx/31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"session_id": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"expires_at": "2023-10-15T12:15:30Z"
},
"reference": "<string>",
"status": "pending",
"additional_info": {
"email": "jsmith@example.com",
"phone_number": "+234 8012345678"
},
"merchant_info": {
"name": "busha",
"email": "busha@me.com"
},
"source": "<string>",
"source_id": "<string>",
"timeline": {
"total_steps": 123,
"current_step": 123,
"transfer_status": "<string>",
"events": [
{
"step": 1,
"done": true,
"status": "pending",
"title": "Transfer started",
"description": "Transfer started",
"timestamp": "2023-10-15T12:15:30Z"
}
]
},
"created_at": "2023-10-15T12:15:30Z",
"updated_at": "2023-10-15T12:15:30Z",
"expires_at": "2023-10-15T12:15:30Z"
}
}Bearer Authentication
"pub_uibaidu930ani"
"bus_123456789"