Skip to main content

Business Create

Request can be use to create Businesses for logged in Mechrant

Request​

POST - {{url}}/api/public/merchant/business

Headers
{
"Accept": "application/json",
"Authorization": "Bearer {{ token }}",
"Content-Type": "application/json",
"X-tenant": "{{ tenant }}",
}

Response​

Status - 201 - CREATED

Sample Response Object
{
{
"data": {
"business_name": "McCullough LLC",
"business_bank_detail_id": 22,
"merchant_id": 1,
"updated_at": "2022-07-20T19:41:00.000000Z",
"created_at": "2022-07-20T19:41:00.000000Z",
"id": 22,
"ref_no": "MB-0018",
"business_address": {
"address_line_1": "North Vena",
"address_line_2": "West Audie",
"address_line_3": "Port Eloise",
"city_id": 1,
"state_id": null,
"phone": "456-536-6392",
"country_id": 1,
"postal_code": "MW",
"type": "general",
"is_default": true,
"merchant_business_id": 22,
"updated_at": "2022-07-20T19:41:00.000000Z",
"created_at": "2022-07-20T19:41:00.000000Z",
"id": 18,
"ref_no": "MA-0017"
},
"business_bank_details": {
"id": 22,
"account_name": "Home Loan Account",
"account_number": "13283840",
"bank_name": "sampath",
"branch_name": "colombo",
"created_at": "2022-07-20T19:40:59.000000Z",
"updated_at": "2022-07-20T19:40:59.000000Z"
},
"default_address": {
"id": 18,
"ref_no": "MA-0017",
"merchant_business_id": 22,
"address_line_1": "North Vena",
"address_line_2": "West Audie",
"address_line_3": "Port Eloise",
"city_id": 1,
"state_id": null,
"country_id": 1,
"postal_code": "MW",
"phone": "456-536-6392",
"type": "general",
"is_default": true,
"created_at": "2022-07-20T19:41:00.000000Z",
"updated_at": "2022-07-20T19:41:00.000000Z",
"city": {
"id": 1,
"ref_no": "CT-0001",
"name": "Colombo 01",
"postal_code": "",
"state_id": 1,
"country_id": 1,
"zone_id": 1,
"default_warehouse_id": 1,
"is_active": true,
"created_at": "2022-06-26T08:21:36.000000Z",
"updated_at": "2022-07-12T04:00:50.000000Z"
}
}
}
}
}

ERRORS​

Invalid Bearer Token
{
"message": "Unauthenticated."
}