{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/coinbase/main/json-schema/coinbase-create-checkout-request-schema.json",
  "title": "CreateCheckoutRequest",
  "description": "Request body for creating a new checkout",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinbase-checkouts-api-openapi.yml#/components/schemas/CreateCheckoutRequest",
  "type": "object",
  "required": [
    "name",
    "pricing_type"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name for the checkout"
    },
    "description": {
      "type": "string",
      "description": "Description"
    },
    "pricing_type": {
      "type": "string",
      "description": "Pricing model",
      "enum": [
        "no_price",
        "fixed_price"
      ]
    },
    "local_price": {
      "type": "object",
      "description": "Price in local currency",
      "properties": {
        "amount": {
          "type": "string",
          "description": "Amount"
        },
        "currency": {
          "type": "string",
          "description": "Currency code"
        }
      }
    },
    "requested_info": {
      "type": "array",
      "description": "Information to request from customers",
      "items": {
        "type": "string",
        "enum": [
          "name",
          "email"
        ]
      }
    }
  }
}