{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-checkout-create-request-schema.json",
  "title": "CheckoutCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-checkouts-api-openapi.yml#/components/schemas/CheckoutCreateRequest",
  "type": "object",
  "properties": {
    "email": {
      "type": [
        "string",
        "null"
      ]
    },
    "customer": {
      "type": [
        "string",
        "null"
      ],
      "description": "Customer ID"
    },
    "discount_code": {
      "type": [
        "string",
        "null"
      ]
    },
    "line_items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "price_variant": {
            "type": "string"
          },
          "quantity": {
            "type": "integer"
          },
          "amount": {
            "type": "integer",
            "description": "Unit price in the smallest currency unit the buyer chose, for a pay-what-you-want price variant only. Must fall within the variant's minimum_amount and maximum_amount; defaults to its preset_amount, then minimum_amount."
          }
        },
        "required": [
          "price_variant"
        ]
      }
    }
  }
}