Checkout Product

Creates a Stripe-hosted checkout URL for one product: pro (dxpert Pro, monthly subscription) or roadmap (DX Roadmap, one-time). Both require an account (a Bearer session or an X-Api-Key), because the purchase attaches to it; without one the answer is 401 account_required. Other errors: 404 unknown_product; 409 already_subscribed (dxpert Pro already active) or roadmap_already_owned; 410 product_retired for a retired product id (agents are never sold separately; use pro); 422 invalid body; 503 stripe_unconfigured / 502 stripe_error. It does not charge immediately, consume quota, send email, or change entitlement state.

post/api/checkout/{product}

Request

  • Base URL: https://opwhcervi3.execute-api.ca-central-1.amazonaws.com
  • URL: https://opwhcervi3.execute-api.ca-central-1.amazonaws.com/api/checkout/{product}
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key

Path parameters

product'pro' | 'roadmap' required

The product to buy: pro (dxpert Pro) or roadmap (DX Roadmap).

Headers

Authorizationstring nullable
X-Api-Keystring nullable

Request body

client_refstring required

Response

Successful Response

checkout_urlstring required

Changes

No recorded changes to this operation across all 1 revision of this API.