/api/p/v{version}/locations/search

The Locations endpoint provides detailed information about company-related sites such as Terminals, Shippers/Consignees, Cold Warehouses, and Dry Warehouses. The endpoint for searching locations requires specifying the API version in the path and providing filters in the request body. For details on API versioning, see Versioning.


Request Parameters

Path parameters

ParameterTypeRequiredDescription
versionStringYesThe API version to use.

Request body (filters + paging)

ParameterTypeRequiredDescription
PageIntegerNoPage index.
PageSizeIntegerYesPage size (must be > 0).
StatusesArray of StringYesFilter by one or more location statuses. Supported values: "Active", "Disabled", "Inactive".
LocationIdsArray of StringYesFilter by a set of Location IDs.
CreatedDateRangeObjectNoFilter by creation timestamp range (UTC).
CreatedDateRange.StartString (DateTime)NoStart of the date range.
CreatedDateRange.EndString (DateTime)NoEnd of the date range.

Example cURL request

curl --location 'https://integrations.alvys.com/api/p/v1/locations/search' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "Page": 0,
  "PageSize": 100,
  "Statuses": ["Active", "Disabled"],
  "LocationIds": [],
  "CreatedDateRange": {
    "Start": "2025-01-01T00:00:00Z",
    "End": "2025-09-08T23:59:59Z"
  }
}'

Response Parameters

ParameterTypeDescription
totalintegerThe total number of items matching the criteria.
pageSizeintegerThe number of items per page.
items[].idstringUnique identifier of the location.
items[].namestringLocation (company site) name.
items[].companyNumberstringCompany number for this location. This is also provided when uploading files for that company.
items[].typestringLocation type (e.g., Terminal, Shipper/Consignee, Cold Warehouse, Dry Warehouse).
items[].statusstringLocation status. Supported values: "Active", "Disabled", "Inactive".
items[].physicalAddress.streetstringThe street line of the location’s physical address.
items[].physicalAddress.citystringThe city of the location.
items[].physicalAddress.statestringThe state or province of the location.
items[].physicalAddress.zipCodestringThe postal/ZIP code of the location.
items[].email[]array of stringA list of email addresses for the location.
items[].phone[]array of stringA list of phone numbers for the location.
items[].faxstringThe fax number for the location.
items[].dateCreatedstring (datetime)Timestamp when the location was created (UTC).
items[].externalIdstringAn external reference identifier, if applicable.
items[].notes[]array of objectsA list of notes attached to the location.
items[].notes[].idstringUnique identifier of the note.
items[].notes[].descriptionstringThe text of the note.
items[].notes[].noteTypestringThe type/category of the note.
items[].notes[].timestring (datetime)The timestamp when the note was created (UTC).
items[].notes[].userstringThe user who created the note.

Rate Limit

All endpoints are subject to platform rate limits. See Rate Limits.

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!