{"openapi":"3.1.0","info":{"title":"Go2 — Payable Operations","version":"1.0.0","summary":"MPP-discoverable payment surface for Go2.","description":"This document exposes the payable operations of Go2 (Stripe Checkout sessions per subscription plan) so AI-agent payment clients can discover billing flows via the Machine Payment Protocol (https://mpp.dev). The full Go2 REST API is documented separately — see externalDocs below.","contact":{"name":"Go2","url":"https://go2.gg","email":"hello@go2.gg"},"license":{"name":"AGPL-3.0","url":"https://www.gnu.org/licenses/agpl-3.0.html"}},"servers":[{"url":"https://api.go2.gg","description":"Production"}],"externalDocs":{"description":"Full Go2 REST API specification","url":"https://api.go2.gg/api/openapi.json"},"tags":[{"name":"Billing","description":"Subscription checkout and customer portal."}],"paths":{"/api/v1/billing/checkout/pro/monthly":{"post":{"tags":["Billing"],"summary":"Start checkout for Pro (monthly)","description":"Creates a Stripe Checkout session for the Pro plan billed monthly. Calls POST https://api.go2.gg/api/v1/billing/checkout with priceId=price_1StPxBKhC7le8Qv5GZJLpbSE under the hood.","operationId":"checkout_pro_monthly","x-payment-info":{"intent":"session","method":"stripe","amount":900,"currency":"USD","description":"Go2 Pro plan, monthly billing"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}}}}}},"responses":{"200":{"description":"Stripe Checkout session created.","content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}}},"/api/v1/billing/checkout/pro/annual":{"post":{"tags":["Billing"],"summary":"Start checkout for Pro (annual)","description":"Creates a Stripe Checkout session for the Pro plan billed annual. Calls POST https://api.go2.gg/api/v1/billing/checkout with priceId=price_1StPxCKhC7le8Qv5tZmIkrfr under the hood.","operationId":"checkout_pro_annual","x-payment-info":{"intent":"session","method":"stripe","amount":8600,"currency":"USD","description":"Go2 Pro plan, annual billing"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}}}}}},"responses":{"200":{"description":"Stripe Checkout session created.","content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}}},"/api/v1/billing/checkout/business/monthly":{"post":{"tags":["Billing"],"summary":"Start checkout for Business (monthly)","description":"Creates a Stripe Checkout session for the Business plan billed monthly. Calls POST https://api.go2.gg/api/v1/billing/checkout with priceId=price_1SviefKhC7le8Qv5J0S9rtEG under the hood.","operationId":"checkout_business_monthly","x-payment-info":{"intent":"session","method":"stripe","amount":4900,"currency":"USD","description":"Go2 Business plan, monthly billing"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}}}}}},"responses":{"200":{"description":"Stripe Checkout session created.","content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}}},"/api/v1/billing/checkout/business/annual":{"post":{"tags":["Billing"],"summary":"Start checkout for Business (annual)","description":"Creates a Stripe Checkout session for the Business plan billed annual. Calls POST https://api.go2.gg/api/v1/billing/checkout with priceId=price_1SvielKhC7le8Qv59j7SgNkS under the hood.","operationId":"checkout_business_annual","x-payment-info":{"intent":"session","method":"stripe","amount":47000,"currency":"USD","description":"Go2 Business plan, annual billing"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}}}}}},"responses":{"200":{"description":"Stripe Checkout session created.","content":{"application/json":{"schema":{"type":"object","required":["url"],"properties":{"sessionId":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}}},"/api/v1/billing/checkout":{"post":{"tags":["Billing"],"summary":"Create a Stripe Checkout session for any plan","description":"Generic checkout creator. Pass `priceId` for the desired plan in the request body. Amount and currency are determined by the Stripe price.","operationId":"create_checkout_session","x-payment-info":{"intent":"session","method":"stripe","amount":900,"currency":"USD","description":"Go2 subscription plan via Stripe Checkout"},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["priceId"],"properties":{"priceId":{"type":"string"},"organizationId":{"type":"string","format":"uuid"},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"}}}}}},"responses":{"200":{"description":"Stripe Checkout session created.","content":{"application/json":{"schema":{"type":"object","properties":{"sessionId":{"type":"string"},"url":{"type":"string","format":"uri"}}}}}}}}}}}