Bulk Replace Shipping Method Mappings
PUT/api/magento2/integration-instances/:magento2IntegrationInstance/shipping-method-mappings
Bulk-replaces the shipping method mappings for the instance in a single transaction. Uses replace semantics:
- Rows present in the payload with a non-null
sku_shipping_method_idare upserted. - Rows present with a null
sku_shipping_method_idare removed (the user cleared the row-level select). - Rows whose
magento_method_codeis absent from the payload are removed (delete-by-omission).
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
A mapping is applied when SKU.io creates the sales order for a Magento order: the order's shipping method is set to the mapped SKU.io method. An unmapped method leaves the shipping method empty and keeps the Magento method as the order's requested shipping method. Changing a mapping affects orders imported afterwards, not orders already created.
Authenticated. Requires a Bearer token.
Request body (mappings[]):
magento_carrier_code(string, optional, max 64) — informational; the canonical key ismagento_method_code.magento_method_code(string, required, max 128) — the Magento{carrier}_{method}identifier (e.g.flatrate_flatrate,ups_GND,fedex_FEDEX_2_DAY).sku_shipping_method_id(integer or null, optional) — must exist inshipping_methods.nullremoves the mapping.sku_shipping_method_name(string, optional, max 255) — informational label used by the UI / activity log; not authoritative.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Unauthorized
Response Headers
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 — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
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.