{"openapi":"3.1.0","info":{"title":"Shapermint Commerce API","version":"1.0.0","description":"Machine-readable Shapermint API surface with Machine Payment Protocol discovery for agentic checkout."},"servers":[{"url":"https://shapermint.com","description":"Storefront origin"}],"x-service-info":{"categories":["commerce","retail"],"docs":{"homepage":"https://shapermint.com","apiReference":"https://shapermint.com/.well-known/api-catalog","llms":"https://shapermint.com/.well-known/agent-skills"}},"paths":{"/api/mpp/checkout":{"post":{"summary":"Request an agentic checkout payment","description":"MPP discovery checkout endpoint. Returns HTTP 402 Payment Required with Stripe payment offers; cart totals are priced dynamically at request time. Settlement is not completed by this storefront route.","operationId":"createMppCheckout","x-payment-info":{"offers":[{"intent":"charge","method":"stripe","amount":null,"currency":"usd","description":"Dynamic checkout total in USD minor units (determined at request time)."}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","description":"Line items to purchase","items":{"type":"object","properties":{"product_id":{"type":"string"},"variant_id":{"type":"string"},"quantity":{"type":"integer","minimum":1}},"required":["product_id","quantity"]}},"currency":{"type":"string","description":"ISO 4217 currency code","default":"usd"},"locale":{"type":"string","description":"BCP 47 locale tag","default":"en-US"}},"required":["items"]}}}},"responses":{"200":{"description":"Checkout payment accepted"},"402":{"description":"Payment Required"}}}}}}