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).
Creating a Business Customer Account
Understand Customer Creation Parameters
The essential parameters for creating a business customer are:
For Know Your Business (KYB)For full verification, business customers require additional sections:Business Owners:Business Transaction:Business Registration:Documents:For a full list of acceptable documents, please refer to the Compliance Guide.
| Parameter | Type | Example Value | Description |
|---|---|---|---|
email | string | business@gmail.com | The primary email address for the business contact. |
has_accepted_terms | boolean | true | Indicates if the terms and conditions have been accepted. |
type | string | business | The type of customer being created. |
country_id | string | NG | The ISO 3166-1 alpha-2 country code of the business’s operation. |
phone | string | +234 8012345678 | The business’s primary contact phone number, including country code. |
birth_date | string | 01-01-2015 | The incorporation date or a key date associated with the business. |
address | object | See details below | The business’s physical address details. |
business_name | string | ABC Corporation | The legal registered name of the business. |
business_industry | string | BIN_C4UvTYR5V8jsOx5LmwQ | A unique identifier representing the business’s industry. |
business_incorporation_date | string | 2015-06-15 | The date on which the business was officially incorporated. |
business_industry, the list of supported sectors and their unique identifier can be retrieved from Supported Business Industries.Address Object:The address field requires:- Documents - Business registration documents
- Business Owners - Information about directors and beneficial owners
- Business Transaction - Expected transaction patterns
- Business Registration - Legal and regulatory information
Files uploaded for KYB must be in Base64 format and have a file size less than
4MB.
Create a Business Customer (Without KYB)
Business customers represent legal entities that utilize your offerings. Start with basic information and add KYB details later.To create a business customer without KYB documents:Expected Response:A successful response will return a Customer object with
- Open your terminal or command prompt.
- Use the
POSTrequest below to the/v1/customersendpoint. - Replace
YOUR_BASE_URLwith your chosen environment’s URL and{YOUR_SECRET_KEY}with your actual key.
status: "inactive" until KYB is completed.The default status of a customer is
inactive until they complete their Know-Your-Business (KYB) process.Create a Business Customer (With Complete KYB)
Create a fully verified business customer by including all required KYB sections at creation.To create a business customer with complete KYB:Expected Response:
- Open your terminal or command prompt.
- Use the
POSTrequest below to the/v1/customersendpoint. - Replace
YOUR_BASE_URLwith your chosen environment’s URL and{YOUR_SECRET_KEY}with your actual key.
Verify the Business Customer
After creating a customer with complete KYB information, verify them to activate their account.To verify a business customer:Expected Response:A successful verification will return:Common Errors:
- Open your terminal or command prompt.
- Use the
POSTrequest below to the/v1/customers/{customer_id}/verifyendpoint. - Replace
{customer_id}with the customer ID from the previous response. - Replace
YOUR_BASE_URLwith your chosen environment’s URL and{YOUR_SECRET_KEY}with your actual key.
After verification, check the customer status by retrieving their details. The status will change from
inactive to in_review or active.- missing_section (Owners): Business owners section is incomplete
- missing_section (Transaction): Transaction information is missing
- missing_documents: Required KYB documents are not uploaded
missing_section error, update the customer with the required information using the PUT /v1/customers/{customer_id} endpoint, then retry verification.Complete Example: Create and Verify Business Customer
Here’s a complete workflow to create and verify a business customer in one go: Step 1: Create customer with complete KYB"status": "in_review" or "status": "active"
Troubleshooting
- 400 Bad Request / 422 Unprocessable Entity: Review your request body to ensure all required fields are present and correctly formatted for the specified type (individual or business).
- 401 Unauthorized: Verify that your Secret API Key is correct and included in the header.
- Email validation error: Use real email domains like
@gmail.cominstead of generic domains like@example.com. - missing_section errors during verification: Ensure all required sections (owners, transaction, registration) are included before calling verify.
What’s Next?
Now that you can programmatically create and verify business customers, you can proceed to manage them and perform transactions on their behalf:- How to Create an Individual Customer: Learn how to create an individual customer in your Busha business account.
- How to Verify Customer’s Identity (KYC/KYB): Learn more about the verification process and required documents.
- How to Initiate Transactions on Behalf of a Customer: Understand how to use the
customer_idto perform operations for your customers.