Skip to main content

Bulk Update Warehouse Location Mappings

POST 

/api/shopify/:integrationInstance/warehouse-location-mappings/bulk-update

Sets or clears the SKU.io warehouse assigned to one or more Shopify locations in a single call. Send warehouse_id as null to clear a mapping. Each mapping is applied independently - the response reports per-location success or failure plus an overall summary.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Side effect: when a location that had no warehouse is mapped to one, SKU.io re-syncs the orders whose Shopify shipments from that location could not be recorded while it was unmapped. The re-sync runs in the background in small, spaced batches; changing or clearing an existing mapping does not trigger it.

Authentication: Requires Bearer token.

Body fields:

  • mappings (array, required, min 1): objects with shopify_location_id (integer, required - the Shopify location's numeric ID) and warehouse_id (integer or null - must be an existing warehouse).

Request​

Responses​

OK

Response Headers
    Content-Type