---
title: "Get Associated Locations"
method: GET
path: "/v4/shippingAccounts/dpduk/{shippingAccountId}/shippingLocations"
tags: ["Shipping Accounts"]
---

# Get Associated Locations

`GET /v4/shippingAccounts/dpduk/{shippingAccountId}/shippingLocations`

## Request

- Base URL: `https://api.intersoftsapient.net`
- URL: `https://api.intersoftsapient.net/v4/shippingAccounts/dpduk/{shippingAccountId}/shippingLocations`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://authentication.intersoftsapient.net/connect/token`

Provides a list of all shipping locations associated with a DPD UK shipping account.

## Path parameters

- `shippingAccountId` string, required

## Query parameters

- `searchTerm` string
- `pageSize` integer
- `pageNumber` integer
- `sortBy` 'Name': Sort By
- `sortDir` 'Ascending' | 'Descending': Order Direction

## Response `200`

Returns a paged list of associated shipping locations.

- ShippingLocationsForAccountPagedResponse: The paged response containing the entities for the requested page only, and the total number available.
  - `ShippingLocations` ShippingLocationForAccount[], required: An array containing all the shipping locations associated with the shipping account ID provided in the path parameter.
    - `ShippingLocationId` string, uuid, required: A unique identifier assigned to the shipping location by the system (**shippingLocationId**). This ID is used to distinguish between different shipping locations within the system, facilitating, referencing and operations, such as updates, deletions, or specific queries related to that location.
    - `LocationAlias` string, required: A unique user-defined identifier for the shipping location, providing a convenient way to identify it, for example, Home or Warehouse.
    - `Timezone` string, required: The timezone in which the shipping location is located, important for scheduling and logistical considerations.
    - `LastUpdatedDateUtc` string, date-time, required: A timestamp indicating the last time the shipping location details were updated, formatted in Coordinated Universal Time (UTC).
    - `LastUpdatedBy` string, required: The identifier (such as a username or system account) of the individual or system that last modified the shipping location information, ensuring accountability.
    - `Address` ShippingLocationAddress, required: The complete address of the shipping location, consisting of multiple components including street information, locality, and so on.
      - `Line1` string, nullable: The first line of the address, typically containing the primary address information such as house number and street name. <br/> <br/> ***Note:** Characters like +, /, -, or space are supported.*
      - `Line2` string, nullable: An optional second line for the address, often used for additional details like apartment numbers or suite designations.
      - `Line3` string, nullable: A third optional line in the address to include any further address specifications, allowing for more detailed address information if necessary.
      - `Town` string, nullable: The town or city, indicating the specific locality where the shipping location is situated. <br/> <br/> ***Note:** This information is required if the address is not used from the stored addresses in the **Address Book**.*
      - `Postcode` string, nullable: The postal or ZIP code corresponding to the shipping location, used for mail sorting and to identify specific geographic areas.<br/> <br/> ***Note:** This information is only required for the addresses in the UK and for some outside it. To check for the postcode requirements, refer to the **Countries** API.*
      - `County` string, nullable: The county, state, or province in which the shipping location resides, providing additional geographical context for the address.
      - `CountryCode` string, nullable: An abbreviation representing the country of the shipping location, following the ISO 3166-1 alpha-2 standard, for example, "GB" for the United Kingdom.
      - `What3Words` string, nullable: A three-word location identifier provided by the What3words service, offering a precise way to define locations using a unique combination of three words, for example, the front door of 10 Downing Street in London is identified by slurs.this.shark.
      - `ContactPhone` string, tel, nullable: The contact phone number associated with the shipping location, facilitating communication regarding shipments or deliveries.
  - `TotalCount` integer, required: An integer representing the total number of shipping locations associated with the specified shipping account that matches the search criteria, giving users a quick overview of how many locations are linked to their accounts.

## Other responses

- `400`: Invalid request response.
- `401`: Unauthorized
- `403`: Forbidden
- `404`: The shipping account was not found.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/intersoftsapient/apis/dpd-uk.md) - [All operations](https://skmtc.dev/intersoftsapient/apis/dpd-uk/llms.txt) - [OpenAPI document](https://skmtc.dev/intersoftsapient/apis/dpd-uk/revisions/fb60cfa270be?raw)
