Save Warehouse Mapping
PUT/api/shippo/instances/:integration_instance/warehouses/:warehouseId
Creates or replaces the Shippo sender (ship-from) address for a warehouse. The address is registered at Shippo and reused for rate quotes and label purchases. US addresses are validated by Shippo; its messages come back as warnings and never block saving.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Body fields:
- sender_name (string, required): sender (contact) name printed on labels. Max 255.
- sender_company (string, nullable): company name. Max 255.
- street1 (string, required): street address. Max 255.
- street2 (string, nullable): address line 2. Max 255.
- city (string, required). Max 255.
- state (string, nullable): state/province code. Required when country is US. Max 100.
- zip (string, required): ZIP/postal code. Max 20.
- country (string, required): two-letter ISO country code (upper-cased automatically).
- phone (string, nullable). Max 50.
- email (string, nullable): valid email. Max 255.
- enabled (boolean, optional): whether the mapping can be used for labels. Defaults to true.
Returns 200 with the mapping plus a warnings array (Shippo validation message texts). Returns 422 with field errors when validation fails or with a Shippo error code when Shippo rejects the request (invalid_token, rate_limited, api_error, unreachable). Returns 404 when the warehouse does not exist.
Authentication: Requires a Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.