Skip to content

Create business ​

Xash app

Adds 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 ​

FieldTypeRequiredDescription
business_namestringYes2 to 50 characters.
business_categorystringYesOne of the categories.
bp_numberstringNoYour ZIMRA business partner number.
business_address_line_1stringYes3 to 256 characters.
business_address_line_2stringNo3 to 256 characters.
business_citystringYes3 to 256 characters.
address_line_1stringYesHome address. 3 to 256 characters.
address_line_2stringNo3 to 256 characters.
citystringYesHome 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 ​

StatusWhenBody
400The account already has an address or a business.{"success": false, "message": "Profile already created. Please contact support for assistance."}
422A 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"
  ]
}