Supplier Case Pack Order

Round reorder demand to case packs, honor supplier minimums, and show units above the reorder target.

Custom requests cost 0.04 USDC on Base.

Download example JSON · OpenAPI · Source and usage

Pay with a browser wallet · Open example in checkout

POST a JSON request to /supplier-case-pack-order/v1/check with an x402 V2 client.

Worked example

Request

{
  "items": [
    {
      "sku": "a",
      "on_hand": 15,
      "on_order": 5,
      "target": 31,
      "pack": 6,
      "minimum_cases": 3
    },
    {
      "sku": "b",
      "on_hand": 5,
      "on_order": 4,
      "target": 8,
      "pack": 5,
      "minimum_cases": 2
    }
  ]
}

Result

{
  "orders": [
    {
      "sku": "a",
      "cases": 3,
      "units": 18,
      "above_target": 7
    }
  ],
  "already_covered": [
    "b"
  ]
}

Support catalog maintenance through GitHub Sponsors. Sponsor gptenv · Sponsor Jeremy Carter