Skip to main content

Map Shiptheory Delivery Service

PUT 

/api/shiptheory/:integration_instance/delivery-services/:service/mapping

Sets (or clears) a single delivery service's SKU shipping-method mapping. Clearing returns the service to the rules-engine default.

Required scope: integrations:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Path parameter:

  • integration_instance: the numeric id of the Shiptheory integration instance.
  • service: the internal delivery-service row id.

Body fields:

  • sku_shipping_method_id (integer, optional, nullable): the SKU shipping method to map, or null (or omitted) to clear the mapping back to the rules engine. When non-null it must be an existing shipping method.

Returns 200 with the updated delivery service. Returns 404 when the service / instance mismatch, or 422 with field errors when validation fails.

Authentication: requires a Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type