{"openapi":"3.1.0","info":{"title":"Pallet Layer Pattern","version":"1.0.0","description":"Find the highest-count parallel-strip pattern for a single pallet layer, allowing mixed carton rotations and strips along either pallet axis.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/pallet-layer-pattern/v1/check":{"post":{"operationId":"pallet_layer_pattern","summary":"Find the highest-count parallel-strip pattern for a single pallet layer, allowing mixed carton rotations and strips along either pallet axis.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pallet_mm":{"type":"array","prefixItems":[{"type":"integer","minimum":1,"maximum":10000},{"type":"integer","minimum":1,"maximum":10000}],"items":false,"minItems":2,"maxItems":2},"carton_mm":{"type":"array","prefixItems":[{"type":"integer","minimum":1,"maximum":10000},{"type":"integer","minimum":1,"maximum":10000}],"items":false,"minItems":2,"maxItems":2},"edge_clearance_mm":{"type":"integer","minimum":0,"maximum":10000}},"required":["pallet_mm","carton_mm","edge_clearance_mm"],"additionalProperties":false},"example":{"pallet_mm":[10,10],"carton_mm":[6,4],"edge_clearance_mm":0}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"cartons":3,"strip_axis":0,"strips":[{"count":1,"depth_mm":6,"cartons_per_strip":2},{"count":1,"depth_mm":4,"cartons_per_strip":1}],"remaining_mm":0}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}