Skip to main content

Bulk Map Carrier/Services

PUT 

/api/starshipit/integration-instances/:integration_instance/shipping-methods/bulk-map

Maps many carrier/service codes to a single SKU shipping method in one call (used by the bulk-select "Apply to selected" action on the mappings page). Codes are de-duplicated and blank entries skipped.

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Request body:

  • codes (array of string, required, min 1; each max 255) — the carrier/service codes to map, format "{carrier}|{carrier_service_code}"
  • shipping_method_id (integer, required) — must exist in shipping_methods

Returns the number of mappings written.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type