Map Odoo 3PL Location to Warehouse
PUT/api/odoo-3pl/:integration_instance/locations/:locationId/mapping
Maps an Odoo 3PL location to a SKU.io warehouse, or clears the mapping. Stock in the location (and the bins inside it) rolls up to the mapped warehouse, and orders from that warehouse ship from this location.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Body:
warehouse_id— integer, nullable, an existing warehouse ID. Sendnullto unmap.
The warehouse must either already belong to this Odoo 3PL instance, or be a Direct warehouse set to Manual fulfillment — in which case it is converted to an Odoo 3PL warehouse for this instance. A warehouse linked to another 3PL, or one that ships through another shipping provider, is rejected with 422.
Requires the integrations.update permission.
Authentication: Bearer token (Personal Access 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
Response Headers
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.