Skip to main content

List Customer Case Pack Rules

GET 

/api/customers/:customer/case-pack-rules

List a customer's case pack rules for individual products, paginated. The customer's default rule is not in this list: read it with Get Customer Default Case Pack Rule.

Required scope: customers:read

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

Authentication: a Personal Access Token with the customers:read scope. Requires permission to view customers.

Filters: filter[search] (partial match on product SKU or name), filter[ship_unit] (one or more units, comma-separated). Sorts: sku, name, ship_unit, updated_at; prefix with - for descending. Default: sku ascending. Pagination: page, per_page (default 10, max 200).

Rule fields:

  • ship_unit: case | case_then_inner | inner | each | custom, with ship_unit_label and ship_unit_description saying what packing does with it.
  • ship_pack_quantity: the pack size of a custom rule; null for every other unit.
  • product: id, sku, name, case_quantity and inner_pack_quantity of the product the rule is for; null on the default rule.
  • carton_quantity: units in one full carton under the rule (product rules only; null for eaches, the default rule, or when the product lacks the case or inner pack the unit needs).
  • order_multiple: order quantities should be multiples of this; quantities that are not are flagged on the customer's orders and shipments.
  • reason: plain-English explanation of how the product ships under the rule.
  • inner_missing_reason: set when the rule uses inner packs but the product has none (or its inner pack no longer divides the case), so packing falls back to full cases.

Request​

Responses​

OK

Response Headers
    Content-Type