POST v1/admin/companies/service-station/add

WEB - Service Station Insert.

Request Information

URI Parameters

None.

Body Parameters

AdminAddServiceStationRequestModel
NameDescriptionTypeAdditional information
service_company_uid

string

Required

service_name

string

None.

service_city_id

integer

None.

service_district

string

None.

service_neighborhood

string

None.

service_street

string

None.

service_building_number

string

None.

service_zip_code

string

None.

service_latitude

string

None.

service_longitude

string

None.

service_country_id

integer

None.

service_is_active

boolean

None.

service_all_company

boolean

None.

user_company_id

Company UID of the active user

string

Required

Data type: Text

user_id

User ID (GUID)

string

Required

Data type: Text

user_signature

MD5 hash signature for the active user to validate the request

string

Required

Data type: Text

Request Format

application/json, text/json

Sample:
{
  "service_company_uid": "sample string 1",
  "service_name": "sample string 2",
  "service_city_id": 3,
  "service_district": "sample string 4",
  "service_neighborhood": "sample string 5",
  "service_street": "sample string 6",
  "service_building_number": "sample string 7",
  "service_zip_code": "sample string 8",
  "service_latitude": "sample string 9",
  "service_longitude": "sample string 10",
  "service_country_id": 11,
  "service_is_active": true,
  "service_all_company": true,
  "user_company_id": "sample string 14",
  "user_id": "sample string 15",
  "user_signature": "sample string 16"
}

Response Information

Resource Description

WEB - Service Station Insert.

BaseMetaResultModelOfServiceStationModel
NameDescriptionTypeAdditional information
response

ServiceStationModel

None.

meta

Basic meta information for the operation result

MetaModel

None.

Response Format

application/json, text/json

Sample:
{
  "response": {
    "id": 1,
    "company_uid": "sample string 2",
    "name": "sample string 3",
    "city_id": 4,
    "district": "sample string 5",
    "neighborhood": "sample string 6",
    "street": "sample string 7",
    "building_number": "sample string 8",
    "zip_code": "sample string 9",
    "latitude": "sample string 10",
    "longitude": "sample string 11",
    "country_id": 12,
    "is_active": true,
    "all_company": true,
    "create_date": "2018-11-21T08:51:09.2558786+03:00",
    "create_user_uid": "sample string 16"
  },
  "meta": {
    "status_code": 1,
    "status_message": "sample string 2"
  }
}