Customers
Update Business
API reference for updating business customer information
PUT
/
business-customers
/
{customerId}
Copy
curl --request PUT \
--url https://api-staging.stablestack.xyz/api/business-customers/{customerId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"customer_type": "business",
"business_name": "Example Enterprises",
"business_type": "Retail",
"business_website": "https://example.com",
"email": "contact@example.com",
"phone": "+2347918945668",
"account_purpose": "business operations",
"source_of_funds": "business revenue",
"expected_monthly_income": 5000000,
"address": {
"line_1": "123 Main St",
"line_2": "Suite 456",
"city": "Lagos",
"state": "Lagos",
"postal_code": "214578",
"country": "Nigeria"
}
}'
Copy
{
"status": "success",
"data": {
"id": "e927caad-9576-40d8-b87d-ace687afa82a",
"customer_type": "business",
"email": "contact@example.com",
"phone": "+2347918945668",
"created_at": "2025-05-09T16:33:21.902Z",
"updated_at": "2025-05-09T16:33:21.902Z",
"status": "active",
"address": {
"line_1": "123 Main St",
"line_2": "Suite 456",
"city": "Lagos",
"state": "Lagos",
"postal_code": "214578",
"country": "Nigeria"
},
"financial_info": {
"account_purpose": "business operations",
"expected_monthly_income": "5000000.00",
"source_of_funds": "business revenue"
},
"business_info": {
"business_name": "Example Enterprises",
"business_type": "Retail",
"business_website": "https://example.com"
}
}
}
Updates the information of an existing business customer.
Request Parameters:
customerId
(path, required): The ID of the business customer to update
Request Body:
Copy
{
"customer_type": "business",
"business_name": "Updated Enterprises",
"business_type": "Wholesale",
"business_website": "https://updated.example.com",
"email": "updated@example.com",
"phone": "+2347918945668",
"account_purpose": "business expansion",
"source_of_funds": "business revenue",
"expected_monthly_income": 7000000,
"address": {
"line_1": "456 Business Ave",
"line_2": "Suite 789",
"city": "Lagos",
"state": "Lagos",
"postal_code": "100001",
"country": "Nigeria"
}
}
Headers
Path Parameters
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Copy
curl --request PUT \
--url https://api-staging.stablestack.xyz/api/business-customers/{customerId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"customer_type": "business",
"business_name": "Example Enterprises",
"business_type": "Retail",
"business_website": "https://example.com",
"email": "contact@example.com",
"phone": "+2347918945668",
"account_purpose": "business operations",
"source_of_funds": "business revenue",
"expected_monthly_income": 5000000,
"address": {
"line_1": "123 Main St",
"line_2": "Suite 456",
"city": "Lagos",
"state": "Lagos",
"postal_code": "214578",
"country": "Nigeria"
}
}'
Copy
{
"status": "success",
"data": {
"id": "e927caad-9576-40d8-b87d-ace687afa82a",
"customer_type": "business",
"email": "contact@example.com",
"phone": "+2347918945668",
"created_at": "2025-05-09T16:33:21.902Z",
"updated_at": "2025-05-09T16:33:21.902Z",
"status": "active",
"address": {
"line_1": "123 Main St",
"line_2": "Suite 456",
"city": "Lagos",
"state": "Lagos",
"postal_code": "214578",
"country": "Nigeria"
},
"financial_info": {
"account_purpose": "business operations",
"expected_monthly_income": "5000000.00",
"source_of_funds": "business revenue"
},
"business_info": {
"business_name": "Example Enterprises",
"business_type": "Retail",
"business_website": "https://example.com"
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.