POST api/Address/AddCompanyAddress

Firma adres ekleme.

Request Information

URI Parameters

None.

Body Parameters

gnl_company_address
NameDescriptionTypeAdditional information
company_address_id

integer

None.

company_id

integer

None.

address_type_id

integer

None.

address_type

gnl_address_type

None.

address_alias

string

None.

country_id

integer

None.

country

gnl_country

None.

city_id

integer

None.

city

gnl_city

None.

town_id

integer

None.

town

gnl_town

None.

address_line1

string

None.

address_line2

string

None.

address_line3

string

None.

post_code

string

None.

phone

string

None.

fax

string

None.

e_mail

string

None.

Request Formats

application/json, text/json

Sample:
{
  "company_address_id": 1,
  "company_id": 2,
  "address_type_id": 3,
  "address_type": {
    "address_type_id": 1,
    "address_type": "sample string 2"
  },
  "address_alias": "sample string 4",
  "country_id": 5,
  "country": {
    "country_id": 1,
    "country_name": "sample string 2",
    "iso3": "sample string 3",
    "iso2": "sample string 4",
    "phone_code": "sample string 5",
    "capital": "sample string 6",
    "region": "sample string 7",
    "subregion": "sample string 8",
    "country_code": "sample string 9",
    "traffic_code": "sample string 10"
  },
  "city_id": 6,
  "city": {
    "city_id": 1,
    "city_name": "sample string 2",
    "city_code": "sample string 3",
    "plate_code": "sample string 4",
    "country_id": 5
  },
  "town_id": 7,
  "town": {
    "town_id": 1,
    "town_name": "sample string 2",
    "town_code": "sample string 3",
    "city_id": 4
  },
  "address_line1": "sample string 8",
  "address_line2": "sample string 9",
  "address_line3": "sample string 10",
  "post_code": "sample string 11",
  "phone": "sample string 12",
  "fax": "sample string 13",
  "e_mail": "sample string 14"
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

entity_result
NameDescriptionTypeAdditional information
status_code

string

None.

status

boolean

None.

title

string

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status_code": "sample string 1",
  "status": true,
  "title": "sample string 3",
  "message": "sample string 4",
  "data": {}
}

application/xml, text/xml

Sample:
<entity_result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ENTITY.RESULT_MODELS">
  <data />
  <message>sample string 4</message>
  <status>true</status>
  <status_code>sample string 1</status_code>
  <title>sample string 3</title>
</entity_result>