跳转到内容

Zone Lookup

此内容尚不支持你的语言。

You can use “Zones” API to lookup US domestic zone information. The information is provided and defined by USPS. Teapplix subscribes from USPS zone information and updates our database periodically.

You can do zone lookups in bulk, providing many pair of “From” “To” zip codes (5 digits). Notice currently, zone lookup is limited to domestic US only.

The zone lookup api “Zones” is provided at the below endpoint:

POST
https://api.teapplix.com/api2/Zones Explorer

POST Request

Zones

Request to obtain shipping zone

PropertyTypeDescriptionConstraints
Routes Route[] The packages routes Required

Route

Shipment route

PropertyTypeDescriptionConstraints
FromZip string Sender's zip code RequiredPattern: [0-9]{5}
ToZip string Recipient zip code RequiredPattern: [0-9]{5}

POST Response - 200

ShippingZone

PropertyTypeDescriptionConstraints
Routes Shipping Zone Route[]

Shipping Zone Route

PropertyTypeDescriptionConstraints
FromZip string From zip code Required
ToZip string To zip code Required
Zone string Delivery zone (if available)
Error Error

Error

PropertyTypeDescriptionConstraints
Level string
Code string
Message string

POST Response - 400

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

POST Response - 500

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description
Test Request