Skip to main content

Bulk Map Shipping Methods

POST 

/api/shiprush/instances/:integration_instance/shipping-methods/bulk-map

Bulk-map a set of rows to one SKU shipping method, and/or auto-match every still-unmapped row by normalized name. Two paths share the endpoint and may be combined in one call.

Not yet available to API tokens

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

Body fields (all optional):

  • ids (array of integers): the mapping row ids to map. When present, each is set to shipping_method_id.
  • shipping_method_id (integer, nullable): the SKU shipping method to map the ids to. Must reference an existing shipping method; a null value clears the mapping on those rows.
  • auto_match (boolean): when true, runs a name-match sweep over every still-unmapped row and maps the ones it can resolve.

Returns the affected counts: mapped (rows set via ids), matched / unmatched (rows the auto-match sweep resolved / could not resolve). Returns 422 when shipping_method_id does not reference an existing shipping method.

Authentication: Requires a Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type