# location resource type
Represents a location in Business Central.
> NOTE
> For information about enabling APIs for Business Central see Enabling the APIs for Dynamics 365 Business Central<../enabling-apis-for-dynamics-nav>.
## Methods
Method|Return Type|Description
../api/dynamics_location_get|location|Gets a location object.
../api/dynamics_location_delete|none|Deletes a location object.
POST location<../api/dynamics_location_create>|location|Creates a location object.
PATCH location<../api/dynamics_location_update>|location|Updates a location object.
## Properties
|Property|Type|Description|
|id|GUID|The unique ID of the location. Non-editable.|
|code|string|The code of the location.|
|displayName|string|Specifies the location's name. This name will appear on all sales documents for the location.|
|contact|string||
|addressLine1|string|Specifies the location's address. This address will appear on all sales documents for the location.|
|addressLine2|string|Specifies the location's address. This address will appear on all sales documents for the location.|
|city|string|Specifies the location's city.|
|state|string|Specifies the location's state.|
|country|string|Specifies the location's country.|
|postalCode|string|Specifies the location's postal code.|
|phoneNumber|string|Specifies the location's telephone number.|
|email|string|Specifies the location's email address.|
|website|string|Specifies the location's home page address.|
|lastModifiedDateTime|datetime|The last datetime the location was modified. Read-Only.|
## JSON representation
Here's a JSON representation of the location resource.
```json
{
    "id": "GUID",
    "code": "string",
    "displayName": "string",
    "contact": "string",
    "addressLine1": "string",
    "addressLine2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "postalCode": "string",
    "phoneNumber": "string",
    "email": "string",
    "website": "string",
    "lastModifiedDateTime": "datetime"
}
```
## Related information
../api/dynamics_location_get
../api/dynamics_location_delete
POST location<../api/dynamics_location_create>
PATCH location<../api/dynamics_location_update>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_location, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/api-reference/v2.0/resources/dynamics_location/
