Required

Facility Lookup

​

v1 equivalent: getFacility (identical request and response — flat body, without the envelope).

Sent while Augment builds a load draft, to find the facility for a stop in your system. Augment puts the facility you return on the load draft.

Clients must configure a GET_FACILITY webhook subscription to receive these requests. Ask your Augment contact to set one up.

Respond with 200 and a matchLevel:

  • EXACT: one facility matches.
  • PARTIAL: a likely match. Augment treats it like EXACT.
  • NONE: no match. Still return 200 with only matchLevel, not a 404.

Augment never creates a facility from a lookup. An unmatched stop stays unresolved, and Augment asks the rep to confirm it.

A non-2xx response, or a body that does not match the schema, counts as a failed lookup, not as no match.

Body·

required
application/json

Sent flat, with no event envelope. At least one of facilityCode, address.name, address.street1, address.city, or address.postalCode is present.

  • The stop's address as Augment extracted it. Every key is present, with null when Augment does not have the value.

    Properties: 8
  • A facility code Augment already has for the stop. Omitted when there is none.

  • The shipper's identifier in your system, to limit the match to that shipper's facilities. Omitted when there is none.

Responses

  • application/json
  • application/json
Request Example for post/GET_FACILITY
curl /GET_FACILITY \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "address": {
    "name": "Acme Distribution Center",
    "company": null,
    "street1": "123 Main St",
    "street2": null,
    "city": "Chicago",
    "stateOrProvince": "IL",
    "postalCode": "60601",
    "country": "US"
  },
  "facilityCode": "FAC-0042",
  "shipperExternalId": "SHIP-4821"
}'
{
  "matchLevel": "EXACT",
  "facilityCode": "FAC-0042",
  "facilityName": "Acme Distribution Center",
  "address": {
    "name": "Acme Distribution Center",
    "company": "Acme Corp",
    "street1": "123 Main St",
    "street2": null,
    "city": "Chicago",
    "stateOrProvince": "IL",
    "postalCode": "60601",
    "country": "US"
  }
}