{
  "info": {
    "name": "Paxon MultiBoxPacker API",
    "description": "Deterministic 3D bin-packing / cartonization. Set the collection variables baseUrl and apiKey, then send 'Pack a shipment'.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "http://localhost:5180" },
    { "key": "apiKey", "value": "dev-local-key-change-me" }
  ],
  "item": [
    {
      "name": "Pack a shipment",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json" },
          { "key": "X-Api-Key", "value": "{{apiKey}}" }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/pack",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "pack"]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"maxParcels\": 6,\n  \"rotationMode\": \"Free\",\n  \"products\": [\n    { \"id\": \"SKU-1\", \"length\": 220, \"width\": 150, \"height\": 98, \"weight\": 500, \"quantity\": 1, \"breakable\": false, \"dg\": false }\n  ],\n  \"boxTypes\": [\n    { \"id\": \"A1\", \"length\": 225, \"width\": 150, \"height\": 100, \"maxWeight\": 15000, \"breakableAllowed\": true, \"dgAllowed\": true, \"priority\": 20, \"minCutHeight\": 20 }\n  ]\n}"
        }
      }
    }
  ]
}
