Create Locations

Learn about creating locations.

Create locations

EndpointMethodKey valueRequired fields
/config/v2/locationsPOSTlocationCodetaxAreaId, locationCode, name, owningPartyId, postalAddress, registrationCode, startDate

This request creates one or more locations.

Sample request - Create locations

[
  {
    "taxAreaId": "string",
    "locationCode": "string",
    "name": "string",
    "owningPartyId": "123e4567-e89b-12d3-a456-426614174000",
    "postalAddress": {
      "city": "string",
      "country": "string",
      "mainDivision": "string",
      "postalCode": "string",
      "streetAddress1": "string",
      "streetAddress2": "string",
      "subDivision": "string"
    },
    "registrationCode": "string",
    "startDate": "2022-01-01",
    "endDate": "2022-12-01"
  }
]

Sample response - Create locations

[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "taxAreaId": "string",
    "locationCode": "string",
    "name": "string",
    "owningPartyId": "123e4567-e89b-12d3-a456-426614174000",
    "postalAddress": {
      "city": "string",
      "country": "string",
      "mainDivision": "string",
      "postalCode": "string",
      "streetAddress1": "string",
      "streetAddress2": "string",
      "subDivision": "string"
    },
    "registrationCode": "string",
    "startDate": "2022-01-01",
    "endDate": "2022-12-01"
  }
]