{"openapi":"3.1.0","info":{"title":"Route Stop Load Replay","version":"1.0.0","description":"Replay vehicle pickups and drop-offs in stop order and report capacity breaches and unloads that exceed the onboard amount.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/route-stop-load-replay/v1/check":{"post":{"operationId":"route_stop_load_replay","summary":"Replay vehicle pickups and drop-offs in stop order and report capacity breaches and unloads that exceed the onboard amount.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"capacity":{"type":"integer","minimum":0,"maximum":100000000},"initial":{"type":"integer","minimum":0,"maximum":100000000},"stops":{"maxItems":250,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"pickup":{"type":"integer","minimum":0,"maximum":100000000},"drop":{"type":"integer","minimum":0,"maximum":100000000}},"required":["id","pickup","drop"],"additionalProperties":false}}},"required":["capacity","initial","stops"],"additionalProperties":false},"example":{"capacity":10,"initial":8,"stops":[{"id":"a","pickup":5,"drop":2},{"id":"b","pickup":0,"drop":13}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"load":[{"stop":"a","after":11},{"stop":"b","after":null}],"issues":[{"stop":"a","reason":"capacity_exceeded","units":1},{"stop":"b","reason":"drop_exceeds_load","units":2}],"final":11}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}