POST api/Company/SaveCompany

Yeni firma ekleme.

Request Information

URI Parameters

None.

Body Parameters

gnl_company
NameDescriptionTypeAdditional information
company_id

integer

None.

company_code

string

None.

branch_code

string

None.

company_name

string

None.

company_trade_name

string

None.

tax_office_id

integer

None.

tax_office

gnl_tax_office

None.

tax_number

string

None.

identity_number

string

None.

parent_company_id

integer

None.

is_passive

boolean

None.

image_id

integer

None.

image_base_64

string

None.

company_group_id

integer

None.

master_company

boolean

None.

create_user_id

integer

None.

create_date

date

None.

update_date

date

None.

update_user_id

integer

None.

company_address

Collection of gnl_company_address

None.

Request Formats

application/json, text/json

Sample:
{
  "company_id": 1,
  "company_code": "sample string 2",
  "branch_code": "sample string 3",
  "company_name": "sample string 4",
  "company_trade_name": "sample string 5",
  "tax_office_id": 1,
  "tax_office": {
    "tax_office_id": 1,
    "tax_office_code": "sample string 2",
    "tax_office_name": "sample string 3"
  },
  "tax_number": "sample string 6",
  "identity_number": "sample string 7",
  "parent_company_id": 1,
  "is_passive": true,
  "image_id": 1,
  "image_base_64": "sample string 9",
  "company_group_id": 1,
  "master_company": true,
  "create_user_id": 1,
  "create_date": "2026-02-04T19:57:59.2177386+03:00",
  "update_date": "2026-02-04T19:57:59.2177386+03:00",
  "update_user_id": 1,
  "company_address": [
    {
      "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"
    },
    {
      "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>