Skip to main content

Map Warehouse

POST 

/api/shippit/instances/:integration_instance/warehouses/link

Links one of your warehouses to Shippit sender (pickup origin) details so despatches from that warehouse originate from the correct address. Idempotent upsert on the (instance, warehouse) pair: calling it again for an already-linked warehouse updates its sender details in place rather than creating a duplicate.

Request fields:

  • sku_warehouse_id (required, integer) — the id of the warehouse to link; must reference an existing warehouse.
  • enabled (optional, boolean) — whether the mapping is active; defaults to true.
  • sender_name (optional, string, max 255) — display name for the sender/pickup origin.
  • sender_address (optional, object) — free-form address object stored verbatim as the pickup origin override.

Returns 201 Created with the resulting mapping. Returns 422 when validation fails (e.g. missing or unknown warehouse).

Authentication: Requires Bearer token.

Request

Responses

Created

Response Headers
    Content-Type