What You’ll Achieve:
- Understand the specific quote requirements for fiat deposits.
- Generate a deposit quote that provisions a temporary bank account.
- Finalize the deposit transfer to obtain the temporary bank account details.
- Learn how to instruct your users to make the deposit.
- Monitor the status of fiat deposits.
Prerequisites
Before you begin, ensure you have:- A Busha Business Account and Secret API Key (from the Quick Start Tutorial).
- An understanding of API Environments (Sandbox vs. Production) and their base URLs (from the Make Your First Request Guide).
- A conceptual understanding of Quotes (from the Understanding Quotes Explainer).
- Familiarity with creating basic quotes (from the How to Create Your First Quote Guide).
For deposit requests involving a customer, the X-BU-PROFILE-ID field should be
included in the request header, and its value should be set to the customer ID
for whom the request is performed on their behalf.
How to Process Fiat Deposits
1
Get a Quote for the Fiat Deposit
Fiat deposits are initiated by creating a Quote, where the A successful response will return a standard Quote object, similar to what you’ve seen before. Note the
source_currency and target_currency are the same fiat currency (e.g., NGN to NGN). The key here is the pay_in object, which specifies that you intend to use a temporary_bank_account for the deposit. This informs Busha to prepare for generating such an account upon transfer finalization.To get a fiat deposit quote:- Open your terminal or command prompt.
- Construct a POST request to the /v1/quotes endpoint.
-
Specify the
source_currencyandtarget_currency(both being the fiat currency you expect to receive), thesource_amountthe user intends to deposit, and apay_inobject with type:"temporary_bank_account". -
Replace
YOUR_BASE_URLwith your chosen environment’s URL andYOUR_SECRET_TOKENwith your actual key.
id of the returned Quote (e.g., QUO_vxcF2svmjMbxDp4T5dcD8 ), as you will need this ID for the next step. The pay_in object in the quote response will mirror what you sent in the request.2
Finalize the Deposit Transfer (Generate Temporary Bank Account)
After obtaining a valid Quote for a fiat deposit, you finalize the transfer. This crucial step is where Busha generates the temporary bank account details that your user will transfer funds into. The transfer object is initiated using the Sample Response with Generated Temporary Account Number:A successful response will return a Transfer object. The generated temporary bank account number and other recipient details will be located within the
POST /v1/transfers endpoint.To finalize the deposit transfer:-
Use the POST request below to the
/v1/transfersendpoint. - Include the quote_id obtained from Step 1.
-
Replace
YOUR_BASE_URLandYOUR_SECRET_KEYwith your actual details.
data.pay_in.recipient_details object of this response.3
Instruct Your User and Monitor Deposit Status
Once you have the temporary bank account details, your application should display these to the end user, along with clear instructions to make the bank transfer. After the user initiates the transfer, you’ll need to monitor its status to confirm when the funds have been successfully deposited into your Busha balance.To monitor deposit status:
-
Webhooks (Recommended): Set up a webhook endpoint to receive real-time notifications from Busha when the transfer status changes. This is the most efficient method for real-time updates.
- Refer to the Setting Up Webhook Guide for detailed instructions.
-
Polling (Less Recommended): Periodically GET the transfer status using the transfer id (
TRF_LJB2GQb55Cs98LbpqgRMxin the example). While possible, this is less efficient and can lead to rate limiting if done too frequently.
-
pending: Transfer initiated, awaiting user bank transfer. -
processing: This means the funds has been received, and is being handled. -
funds_received: Funds have been successfully received and credited to your Busha balance. -
cancelled: the transfer has been cancelled, and will not continue.
Troubleshooting Common Fiat Deposit Issues
- “Quote expired” during transfer finalization: Always create a fresh quote immediately before attempting to finalize the transfer.
-
Deposit not reflecting: Check the transfer status via API/webhooks. If still pending after an extended period, contact Busha support with the
TRF_ID. - Temporary account expires: Ensure the user makes the transfer before the pay_in.expires_at time shown in the transfer response. If expired, you may need to initiate a new deposit flow.
What’s Next?
Now that you know how to process fiat deposits, consider:- Processing Crypto Deposits
- Processing Payouts
- Exploring all relevant API endpoints: Quotes API Reference, Transfers API Reference.