Facility Lookup
v2 equivalent:
GET_FACILITY(identical request and response — flat body, without the envelope).
Augment POSTs this request to your configured facility-lookup endpoint while it 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 likeEXACT.NONE: no match. Still return200with onlymatchLevel, not a404.
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·
Sent flat, with no event envelope. At least one of facilityCode, address.name, address.street1, address.city, or address.postalCode is present.
- Type:addressrequiredProperties: 8
The stop's address as Augment extracted it. Every key is present, with
nullwhen Augment does not have the value. - Type: stringfacility
Code A facility code Augment already has for the stop. Omitted when there is none.
- Type: stringshipper
External Id 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
{
"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"
}
}