Skip to content

Create a location

Request

Create new location

Security
BearerPartnerUser
Headers
Acceptstringrequired

Must be application/vnd.api.v2+json

Content-Typestringrequired

Must be application/json

Authorizationstringrequired

Bearer partner_token, User user_token

Bodyapplication/jsonrequired
titlestring

location name

Example:"James Smith LLC"
country_idnumber

ID of the country in which the location is located (method to get a list of countries)

Example:7
city_idnumber

Identifier of the city in which the location is located (method to get a list of cities)

Example:2
addressstring

location address

Example:"New York, 787 Jackson Drive"
sitestring

location website

Example:"james-smith-company.com"
coordinate_latnumber, (float)

Latitude

Example:40.73061
coordinate_lotnumber, (float)

Longitude

Example:-73.935242
business_type_idnumber

Business type

Example:1
short_descrstring

location category

Example:"Beauty studio"
curl -i -X POST \
  https://developer.alteg.io/_mock/en/b2b-v1/openapi/companies \
  -H 'Accept: string' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "title": "James Smith LLC",
    "country_id": 7,
    "city_id": 2,
    "address": "New York, 787 Jackson Drive",
    "site": "james-smith-company.com",
    "coordinate_lat": 40.73061,
    "coordinate_lot": -73.935242,
    "business_type_id": 1,
    "short_descr": "Beauty studio"
  }'

Responses

Created

Bodyapplication/json
successboolean

Success status (true)

Example:true
dataobject

data object

Example:
{ "id": 1050, "title": "James Smith LLC", "short_descr": "Beauty studio", "logo": "https://app.alteg.io/images/no-master.png", "active": 1, "phone": "+13155550175", "country_id": 7, "schedule": "", "country": "United States", "city_id": 181, "city": "New York", "timezone_name": "America/New_York", "address": "New York, 787 Jackson Drive", "coordinate_lat": 40.73061, "coordinate_lon": -73.935242, "phone_confirmation": true, "active_staff_count": 2, "app_ios": "", "app_android": "", "currency_short_title": "R" }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": { "id": 1050, "title": "James Smith LLC", "short_descr": "Beauty studio", "logo": "https://app.alteg.io/images/no-master.png", "active": 1, "phone": "+13155550175", "country_id": 7, "schedule": "", "country": "United States", "city_id": 181, "city": "New York", "timezone_name": "America/New_York", "address": "New York, 787 Jackson Drive", "coordinate_lat": 40.73061, "coordinate_lon": -73.935242, "phone_confirmation": true, "active_staff_count": 2, "app_ios": "", "app_android": "", "currency_short_title": "R" }, "meta": [] }