API referenceAddress Book
Create an address book entry
This endpoint saves a location to your organization's address book. Mothership looks the address up to fill in its coordinates and timezone. If that fails, the entry is still saved and the response carries a warning.
/ address-bookhttps:/ / sandbox.api.mothership.com/ beta$MOTHERSHIP_API_TOKENHover a key to see what it means. Click it to jump to the field.
Only address is required. Mothership looks the address up to fill in its coordinates and timezone. If the lookup fails, the entry is still saved and the response has a warnings array.
An organization can save an address once. Saving one that is already in the address book returns 409 with the INVALID_REQUEST type; change the saved entry with Update an address book entry instead.
openTime, closeTime and phoneNumber take the same formats as a location on Create a quote, so a saved entry can fill a quote's pickup or delivery. accessorials use the quote's names but take only the services the address book saves at each stop: hazmat isn't one, and delivery also takes fbaAppointment, which Create a quote doesn't.
Request body
application/json · requiredClose time of this location, in 4-digit 24-hour time format (HHmm) of this location's timezone. Must be later than openTime.
For example: 1700 to represent 5:00pm in local time
On update, leave it out to keep the saved value or send null to clear it.
4 characterspattern ^([01]\d|2[0-3])[0-5]\d$nullable