Skip to main content

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_id are upserted.
  • Rows present with a null sku_shipping_method_id are removed (the user cleared the row-level select).
  • Rows whose magento_method_code is absent from the payload are removed (delete-by-omission).

Authenticated. Requires a Bearer token.

Request body (mappings[]):

  • magento_carrier_code (string, optional, max 64) — informational; the canonical key is magento_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 in shipping_methods. null removes the mapping.
  • sku_shipping_method_name (string, optional, max 255) — informational label used by the UI / activity log; not authoritative.

Request

Responses

OK

Response Headers
    Content-Type