- Create a location
Get a list of locations
Get location
Change location
Delete location
Create a location
Create new location
Security
BearerPartnerUser
ID of the country in which the location is located (method to get a list of countries)
Example:7
Identifier of the city in which the location is located (method to get a list of cities)
Example:2
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/companies
- Productionhttps://api.alteg.io/api/v1/companies
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"
}'Created
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" }
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": [] }