curl --request GET \
--url https://api.sandbox.busha.so/v1/payments/requests \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "message for success",
"pagination": {
"current_entries_size": 20,
"next_cursor": "MjAyNC0xMC0xNVQxMTowNTo1My45NTkxNDErMDE6MDA=",
"previous_cursor": "MjAyNC0xMC0xNVQxMDowNTo1My45NTIxQjE3MDE6MDA="
},
"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"
},
"type": "FIXED",
"converted_amount": {
"amount": "100",
"currency": "BTC"
}
}
],
"reference": "<string>",
"status": "pending",
"additional_info": {
"email": "[email protected]",
"phone_number": "+234 8012345678",
"name": "John",
"source": "web"
},
"merchant_info": {
"name": "busha",
"email": "[email protected]"
},
"created_at": "2023-10-15T12:15:30Z",
"updated_at": "2023-10-15T12:15:30Z",
"expires_at": "2023-10-15T12:15:30Z",
"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>",
"iban": "NG12345678901234567890",
"currency": "<string>",
"phone_number": "<string>",
"name": "<string>",
"email": "[email protected]",
"bank_code": "100020"
},
"blockchain_hash": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"blockchain_url": "https://explorer.com/tx/31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"session_id": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"from_address": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"expires_at": "2023-10-15T12:15:30Z"
},
"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"
}
]
}
}
]
}List payment requests
curl --request GET \
--url https://api.sandbox.busha.so/v1/payments/requests \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "message for success",
"pagination": {
"current_entries_size": 20,
"next_cursor": "MjAyNC0xMC0xNVQxMTowNTo1My45NTkxNDErMDE6MDA=",
"previous_cursor": "MjAyNC0xMC0xNVQxMDowNTo1My45NTIxQjE3MDE6MDA="
},
"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"
},
"type": "FIXED",
"converted_amount": {
"amount": "100",
"currency": "BTC"
}
}
],
"reference": "<string>",
"status": "pending",
"additional_info": {
"email": "[email protected]",
"phone_number": "+234 8012345678",
"name": "John",
"source": "web"
},
"merchant_info": {
"name": "busha",
"email": "[email protected]"
},
"created_at": "2023-10-15T12:15:30Z",
"updated_at": "2023-10-15T12:15:30Z",
"expires_at": "2023-10-15T12:15:30Z",
"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>",
"iban": "NG12345678901234567890",
"currency": "<string>",
"phone_number": "<string>",
"name": "<string>",
"email": "[email protected]",
"bank_code": "100020"
},
"blockchain_hash": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"blockchain_url": "https://explorer.com/tx/31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"session_id": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"from_address": "31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171",
"expires_at": "2023-10-15T12:15:30Z"
},
"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"
}
]
}
}
]
}Bearer Authentication
User profile header
"BUS_YOK8tp5Zga01qOKEsqp07"
The cursor
The order to sort the results
asc, desc "asc"
The number of items to return
10
Successful response
General response Values
success, error "success"
"message for success"
List of payment requests
Show child attributes
A valid id
"bus_123456789"
decimal value
"100"
A valid currency
1 - 10"BTC"
decimal value
"100"
A valid currency
1 - 10"BTC"
Show child attributes
"BTCUSDT"
"1 BTC = 1000 USDT"
A valid currency
1 - 10"BTC"
A valid currency
1 - 10"BTC"
decimal value
"100"
buy, sell "sell"
FIXED "FIXED"
Show child attributes
"processing_fee"
FIXED, PERCENTAGE, TIERED "FIXED"
pending, expired, cancelled, completed, failed, multiple_deposits, under_payment, over_payment Show child attributes
email address for the payment request
A valid phone number. format {{calling_code}} {{number}}
"+234 8012345678"
A valid name
"John"
The source of the payment request
"web"
Show child attributes
name of the business
"busha"
email of the business
"2023-10-15T12:15:30Z"
"2023-10-15T12:15:30Z"
"2023-10-15T12:15:30Z"
Show child attributes
address, bank_transfer, mobile_money, business_mobile_money, balance "address"
This represents the recipient ID, used for mobile_money and bank_transfer types.
"64ae8c26ea1033204c805a8a"
This could be the address, user email or username for type address.
"tb1qj4263506wyu8khrz2dwce0agk8lhyjgy269rxr"
This specifies the blockchain network associated with the address receiving the payment, typically used with address type payouts.
"BTC"
This refers to the memo required for blockchain networks that mandate a memo for cryptocurrency transactions.
"address memo"
"profile-id-1234"
Show child attributes
"NG"
"NG12345678901234567890"
"100020"
"31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171"
"https://explorer.com/tx/31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171"
"31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171"
"31b99c79e2fb7554d0a9421867a53a80e6810cdfd2b06826eec1b2a22974b171"
"2023-10-15T12:15:30Z"
The source of the payment request
The source id of the payment request
Show child attributes
Show child attributes
1
true
pending, processing, funds_converted, funds_received, outgoing_payment_sent, funds_delivered, failed, completed "Transfer started"
Waiting for payment
"Transfer started"
"2023-10-15T12:15:30Z"