/api/p/v{version}/locations

The endpoint for retrieving a single location requires specifying the API version in the path and one identifier in the query: either id or companyNumber. For details on how versioning works, see the Versioning page.

Request Parameters

Path parameters

ParameterTypeRequiredDescription
versionStringYesThe API version to use.
idStringConditionally requiredThe unique Location ID. Required if companyNumber is not provided.
companyNumberStringConditionally requiredThe company number. Required if id is not provided.

Exactly one of id or companyNumber must be provided.

Example cURL requests

Lookup by id:

curl --location 'https://integrations.alvys.com/api/p/v1/locations?id=120f97b9-1aa2-4201-b1aa-24...' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Lookup by companyNumber:

curl --location 'https://integrations.alvys.com/api/p/v1/locations?companyNumber=MGD0012312345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Response Parameters

ParameterTypeDescription
IdStringUnique location identifier.
NameStringLocation name.
CompanyNumberStringCompany number for this location. This is provided when uploading files for that company.
TypeStringLocation type (e.g., Terminal, Shipper/Consignee, Cold Warehouse, Dry Warehouse).
StatusStringLocation status (e.g., Active, Disabled, Inactive).
PhysicalAddressObjectAddress block.
PhysicalAddress.StreetStringStreet line.
PhysicalAddress.CityStringCity.
PhysicalAddress.StateStringState/Province.
PhysicalAddress.ZipCodeStringZIP/Postal code.
EmailArray of StringEmail addresses.
PhoneArray of StringPhone numbers.
FaxStringFax number.
DateCreatedString (DateTime)Creation timestamp (UTC).
ExternalIdStringExternal reference ID (if any).
NotesArray of ObjectNotes attached to the location.
Notes[].IdStringNote identifier.
Notes[].DescriptionStringNote text.
Notes[].NoteTypeStringType/category of the note.
Notes[].TimeString (DateTime)Timestamp of the note (UTC).
Notes[].UserStringAuthor/user who added the note.

Example Response

{
  "Id": "loc-45678",
  "Name": "Alvys Teminal Group LLC",
  "CompanyNumber": "LP-12345",
  "Type": "Terminal",
  "Status": "Active",
  "PhysicalAddress": {
    "Street": "001 Main St",
    "City": "Dallas",
    "State": "TX",
    "ZipCode": "70000"
  },
  "Email": ["[email protected]"],
  "Phone": ["+1-123-456-4567"],
  "Fax": null,
  "DateCreated": "2025-09-08T16:01:26.908Z",
  "ExternalId": "EXT-001",
  "Notes": [
    {
      "Id": "n-001",
      "Description": "24/7 gate access",
      "NoteType": "General",
      "Time": "2025-09-08T18:10:00Z",
      "User": "[email protected]"
    }
  ]
}

Rate Limits

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!