Appearance
Create business
Xash appAdds business details, a home address and a business address to the account. It can be done once. After that, changes go through Xash support.
Business details are not needed to buy products. They are needed for link codes, and the business name is what other users see when they send you a transfer.
POST /api/v1/auth/create-business
Body
| Field | Type | Required | Description |
|---|---|---|---|
business_name | string | Yes | 2 to 50 characters. |
business_category | string | Yes | One of the categories. |
bp_number | string | No | Your ZIMRA business partner number. |
business_address_line_1 | string | Yes | 3 to 256 characters. |
business_address_line_2 | string | No | 3 to 256 characters. |
business_city | string | Yes | 3 to 256 characters. |
address_line_1 | string | Yes | Home address. 3 to 256 characters. |
address_line_2 | string | No | 3 to 256 characters. |
city | string | Yes | Home city. 3 to 256 characters. |
Example
bash
curl -X POST https://app.xash.co.zw/api/v1/auth/create-business \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"business_name": "Example Trading",
"business_category": "Retail",
"business_address_line_1": "1 Example Road",
"business_city": "Harare",
"address_line_1": "2 Sample Close",
"city": "Harare"
}'Response 201
json
{
"success": true,
"message": "Business created successfully.",
"data": {
"id": 7,
"business_name": "Example Trading",
"business_category": "Retail",
"bp_number": null,
"home_address": {
"address_line_1": "2 Sample Close",
"address_line_2": null,
"city": "Harare"
},
"business_address": {
"business_address_line_1": "1 Example Road",
"business_address_line_2": null,
"business_city": "Harare"
}
}
}The country of both addresses is recorded as Zimbabwe.
Errors
| Status | When | Body |
|---|---|---|
400 | The account already has an address or a business. | {"success": false, "message": "Profile already created. Please contact support for assistance."} |
422 | A field is missing or invalid. | Validation error |
Business categories
GET /api/v1/auth/business/categories
json
{
"success": true,
"data": [
"Arts and Entertainment",
"Food and Beverage",
"Retail",
"Hospitality",
"Technology",
"Agriculture",
"Health and Wellness",
"Education",
"Transportation",
"Construction",
"Real Estate",
"Finance",
"Consulting",
"Manufacturing",
"Other"
]
}