Create a shipping rule
Creates a new shipping rule for the entity. Supports
migration provenance: when external_source is supplied, the
calling api-key id is auto-stamped as imported_via_api_key_id
and a partial UNIQUE index enforces idempotent re-runs (re-POST
returns 409). Requires the settings:write scope. Idempotent
via Idempotency-Key.
Authorizations
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_
Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Headers
Client-generated unique key for idempotent POST/PATCH/DELETE operations. Alias for the Idempotency parameter. Max 255 chars. On retry with the same key, the original response is returned without re-executing the operation. Keys expire after 24 hours.
255Body
Lower runs first.
Layer 4 per-location scope. NULL = entity-wide.
Source-channel condition. NULL = applies to all channels.
Category condition. When set, the rule wins over a non-category rule even at higher priority (TUF-TITE pattern).
Inclusive weight band lower bound (lb).
Inclusive weight band upper bound (lb).
Inclusive item-count band lower bound. NULL = no filter.
Inclusive item-count band upper bound. NULL = no filter.
Allowed Shippo carrier service tokens. First = primary suggestion when preferred_service_token is unset.
Primary suggested Shippo service token (e.g. usps_ground_advantage).
Primary suggested carrier (USPS/UPS/FedEx/DHL Express).
When true and the rule resolves to one unambiguous service, Pack-with-Arcus auto-purchases the label.
Per-rule cost-absorption override. NULL = use entity default; true = absorb (Freight Out GL); false = charge customer.
Freight-rule outcome (force_freight/force_parcel/etc). Presence marks a freight rule rather than a carrier-routing rule.
Freight-rule condition JSONB (validated).
Freight-rule actions (block_message / accessorials).
Migration provenance tag.
Response
Shipping rule created
The response is of type object.

