Retrieves all the locations

Request Information

URI Parameters :

None.

Body Parameters :

None.

Response Information

Resource Description :

IHttpActionResult

location
NameDescriptionTypeAdditional information
id

globally unique identifier

Required

_parent_id

Reference to a parent location

globally unique identifier
_parent_reference_back_office

Embedded entity "location" for parent location using ERP PK when adding/updating location

string
_parent_location

Embedded entity "location" for parent location when adding/updating location

location
project_status_id

Foreign key to project_status_id

globally unique identifier
company_id

The company owner of this location

globally unique identifier

Optionally required : company_id, company_code or company must be provided

company_code

Embedded entity "company" using ERP PK when adding/updating location

string

Optionally required : company_id, company_code or company must be provided

company

Embedded entity "company" when adding/updating location

company

Optionally required : company_id, company_code or company must be provided

name

Name of the location

string

Required

Max length: 50

extra_information

extra_information

string

Max length: 255

reference_back_office

The Id/Ref of the back office for this location. Used by Embedded entity

string

Max length: 255

street

Street

string

Max length: 100

street_number

Street number.

string

Max length: 50

zip

Zip code

string

Max length: 50

city

City

string

Max length: 50

phone

Phone number

string

Max length: 50

email

Email address

string

Max length: 250

db_country_id

Foreign key to table Country

globally unique identifier
db_country_code

CountryCode entity using international code when adding/updating company

string
street2

Additional information on the address not part of the postal address

string

Max length: 50

latitude_decimal

Decimal coordonate for the latitude. (-1;-1) means invalid and (0;0) means not already geo-encoded

decimal number
longitude_decimal

Decimal coordonate for the longitude. (-1;-1) means invalid and (0;0) means not already geo-encoded

decimal number
contact_id

Foreign key of contact for this location

globally unique identifier
contact_reference_back_office

Foreign key of contact for this location. If you don't know the GUID, use contact_reference_back_office

string
contact

Embedded entity "contact" when adding/updating location

contact
modified_dateutc

Readonly system field managed by database, filled with GetUtcDate when adding,updating

date
id2

Internal ID (numeric). Will be used if reference_back_office is empty

integer

Response Formats

application/json, text/json

Sample:
{
  "id": "b1df08f5-0f8a-4403-ab14-df9efc79be67",
  "_parent_id": "a65d99e1-5bf5-4a8a-947e-36c6de9370ec",
  "_parent_reference_back_office": "sample string 3",
  "project_status_id": "ad119c0e-478a-4d81-a12b-31187bcc6a46",
  "company_id": "0f639966-78d6-4145-a641-b6a2784aeac2",
  "company_code": "sample string 6",
  "name": "sample string 7",
  "extra_information": "sample string 8",
  "reference_back_office": "sample string 9",
  "street": "sample string 10",
  "street_number": "sample string 11",
  "zip": "sample string 12",
  "city": "sample string 13",
  "phone": "sample string 14",
  "email": "sample string 15",
  "db_country_id": "75ebb9e4-ce1f-4484-9049-fcfa11cf490f",
  "db_country_code": "sample string 17",
  "street2": "sample string 18",
  "latitude_decimal": 1.0,
  "longitude_decimal": 1.0,
  "contact_id": "4862bafd-646d-42bd-a3ba-04ed3d82d647",
  "contact_reference_back_office": "sample string 20",
  "contact": {
    "id": "c5dfdbe9-2f4a-4e6d-86af-765231915f2c",
    "firstname": "sample string 2",
    "lastname": "sample string 3",
    "company_id": "97c431aa-04ea-4c29-9762-a50430ab3af1",
    "company_code": "sample string 5",
    "company": {
      "id": "2e0e64a2-cd9c-49dc-abcf-b3c5badc6e01",
      "is_client": true,
      "is_supplier": true,
      "archived": true,
      "name": "sample string 5",
      "notes": "sample string 6",
      "create_date": "2026-12-02T04:49:33.0643532+00:00",
      "sales_territory_id": "dcad61cd-8322-4d92-aeeb-af16d6d3cc81",
      "sales_territory_code": "sample string 9",
      "sales_territory": {
        "id": "5d36a074-8f90-4c5a-8270-6a419a61809f",
        "code": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "ccd5946a-61be-41e0-9247-136393dbfcc4",
        "sales_organization_code": "sample string 5",
        "sales_organization": {
          "id": "7f15dcab-7ed5-4849-8416-cd6ecbb6b6e7",
          "code": "sample string 2",
          "name": "sample string 3",
          "description": "sample string 4",
          "db_country_id": "4da6c0bc-1a71-420e-8e4e-0b2d05439f07",
          "db_currency_id": "0c2eecfc-2fa6-4b14-b16b-4a4924ed4cf9",
          "db_language_id": "e89abb4b-f6e9-44ac-924a-c62d7fdfb71a",
          "accountancy_code": "sample string 8",
          "archived": true,
          "default_unit_of_measure_system_type": "sample string 10",
          "street": "sample string 11",
          "street2": "sample string 12",
          "street_number": "sample string 13",
          "zip": "sample string 14",
          "city": "sample string 15",
          "email": "sample string 16",
          "phone": "sample string 17",
          "fax": "sample string 18",
          "url": "sample string 19",
          "vat_reg_code": "sample string 20",
          "modified_dateutc": "2026-12-02T04:49:33.0643532+00:00"
        },
        "modified_dateutc": "2026-12-02T04:49:33.0643532+00:00"
      },
      "marketing_segment_id": "683d8ac3-8303-4dd2-a6d6-25008f6a7708",
      "marketing_segment_code": "sample string 11",
      "sales_organization_id": "85b56a73-f0ef-4dc3-956b-58a04bfda587",
      "sales_organization_code": "sample string 13",
      "company_sales_status_code": "sample string 14",
      "vat_reg_code": "sample string 15",
      "is_working_address": true,
      "parent_id": "8fa5f681-8186-4306-b378-bed2448d8a9d",
      "parent_company_code": "sample string 18",
      "phone": "sample string 19",
      "fax": "sample string 20",
      "url": "sample string 21",
      "email": "sample string 22",
      "street": "sample string 23",
      "street_number": "sample string 24",
      "city": "sample string 25",
      "zip": "sample string 26",
      "db_country_id": "509f67df-b323-4b65-9f6c-1404cf0e2d8c",
      "db_country_code": "sample string 28",
      "feelist_id": "17dc5d78-15e6-44c6-9d2b-9578ba4f9674",
      "feelist_reference_back_office": "sample string 30",
      "feelist": {
        "id": "7236ca04-a930-48a1-a7af-e71dc9be4405",
        "name": "sample string 2",
        "description": "sample string 3",
        "is_default": true,
        "default_price": 1.0,
        "sales_organization_id": "86e52d84-8dd2-4f36-bbb8-d1c9f561fdc6",
        "sales_organization_code": "sample string 6",
        "reference_back_office": "sample string 7",
        "modified_dateutc": "2026-12-02T04:49:33.0643532+00:00",
        "db_currency_id": "ff6c4b27-4ead-45be-a902-7d7a84425299",
        "db_currency_code": "sample string 10"
      },
      "company_type_id": "5070394b-6bfb-41f7-b6b2-3ca9a3351cba",
      "company_type_name": "sample string 32",
      "company_type": {
        "id": "88cd70c3-0aba-4f8c-814e-4fc701f31666",
        "name": "sample string 2",
        "description": "sample string 3",
        "sales_organization_id": "b136344d-307c-4e5f-8874-4c0c26bfb5b5",
        "sales_organization_code": "sample string 5"
      },
      "db_language_id": "cb779830-a2a7-4efa-b69b-db8c6944dd62",
      "db_language_code": "sample string 34",
      "code": "sample string 35",
      "article_price_label_id": "d2c96024-08ff-4d64-a3aa-766d61af8f5a",
      "article_price_label_code": "sample string 37",
      "db_payment_method_id": "710ee5d1-3f89-459f-80c6-e40905ef746f",
      "db_payment_method_reference_back_office": "sample string 39",
      "db_payment_methods": {
        "id": "77ef2f64-4a54-420b-b9d3-0232d194ff82",
        "name": "sample string 2",
        "description": "sample string 3",
        "reference_back_office": "sample string 4",
        "activated": true,
        "modified_dateutc": "2026-12-02T04:49:33.0643532+00:00"
      },
      "company_sector_id": "019bfe30-e5b7-42b8-a794-ace0b897a884",
      "company_sector_code": "sample string 41",
      "is_lead": true,
      "is_subcontractor": true,
      "latitude": 1.0,
      "longitude": 1.0,
      "street2": "sample string 44",
      "bic_code": "sample string 45",
      "specialities": "sample string 46",
      "register_number": "sample string 47",
      "register_city": "sample string 48",
      "bankaccount": "sample string 49",
      "mobile": "sample string 50",
      "service_manager_user_id": "b0422ed1-dcac-4a35-9b81-6f5f7fbbf095",
      "service_manager_user_code": "sample string 52",
      "finance_manager_user_id": "22034da5-9c9d-4886-a4f6-a4c990fac296",
      "finance_manager_user_code": "sample string 54",
      "account_manager_user_id": "df9a6fd1-f167-43cb-8ed2-85f8aa3b08e5",
      "account_manager_user_code": "sample string 56",
      "company_status_id": "cda85efb-84bc-48b4-ad07-fc327e97b16e",
      "invoice_email_to": "sample string 58",
      "modified_dateutc": "2026-12-02T04:49:33.0643532+00:00",
      "id2": 60
    },
    "db_language_id": "aadd75e9-7236-4040-a7a6-088e5022458b",
    "db_language_code": "sample string 7",
    "db_title_id": "9c25ba93-0bdc-4139-aeeb-5bcbd865eda0",
    "archived": true,
    "functions": "sample string 10",
    "e_login": "sample string 11",
    "e_password": "sample string 12",
    "notes": "sample string 13",
    "birthdate": "2026-12-02T04:49:33.0643532+00:00",
    "create_date": "2026-12-02T04:49:33.0643532+00:00",
    "phone": "sample string 16",
    "mobile": "sample string 17",
    "email": "sample string 18",
    "skype": "sample string 19",
    "private_phone": "sample string 20",
    "private_mobile": "sample string 21",
    "private_email": "sample string 22",
    "reference_back_office": "sample string 23",
    "modified_dateutc": "2026-12-02T04:49:33.0643532+00:00"
  },
  "modified_dateutc": "2026-12-02T04:49:33.0643532+00:00",
  "id2": 22
}