{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/billdog-io/json-schema/billdog-io-post-functions-v1-create-web-checkout-request-schema.json",
  "title": "PostFunctionsV1CreateWebCheckoutRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/billdog-io-openapi-generated.yml#/components/schemas/PostFunctionsV1CreateWebCheckoutRequest",
  "type": "object",
  "properties": {
    "source": {
      "type": "string",
      "description": "app_to_web | web_paywall"
    },
    "product_id": {
      "type": "string",
      "description": "products.id, or the product_identifier"
    },
    "success_url": {
      "type": "string",
      "description": "required for web_paywall; app_to_web defaults to the app's scheme"
    },
    "cancel_url": {
      "type": "string"
    },
    "app_user_id": {
      "type": "string",
      "description": "a secret key names its customer with this (or customer_id)"
    },
    "region": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2; required when the project gates web checkout by region"
    },
    "platform": {
      "type": "string"
    },
    "gateway": {
      "type": "string",
      "description": "optional; Stripe is the only merchant gateway"
    },
    "placement_id": {
      "type": "string",
      "description": "optional attribution"
    },
    "metadata": {
      "type": "object",
      "description": "optional, string values"
    }
  }
}