Skip to main content

Import Shipping Method Mappings

POST 

/api/trackstar/integration-instances/:integration_instance/shipping-methods/import

Applies mappings from a CSV keyed on the shipping method.

Each row identifies a shipping method by shipping_method_id (authoritative) or shipping_method_name, and a Trackstar shipping method by trackstar_shipping_method_id or trackstar_shipping_method_name. Leaving both provider columns blank clears that mapping.

A shipping_method_id appearing on two rows is reported as an error for the second row rather than silently taking the last value — one shipping method cannot have two shipping methods.

Upload as multipart/form-data with a file field (CSV, max 10MB). Returns counts of created, updated and removed mappings plus any per-row errors.

Authentication: requires a Bearer token.

Not yet available to API tokens

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

Request

Responses

OK

Response Headers
    Content-Type