{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/laboratory-love/json-schema/laboratory-love-checkout-status-schema.json",
  "title": "CheckoutStatus",
  "description": "Checkout outcome. Contains no payer details.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/laboratory-love-openapi.json#/components/schemas/CheckoutStatus",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "checkout_id",
    "kind",
    "status",
    "amount",
    "currency",
    "created_at",
    "expires_at",
    "checkout_url",
    "receipt",
    "support_url"
  ],
  "properties": {
    "checkout_id": {
      "type": "string",
      "description": "Checkout id."
    },
    "kind": {
      "type": "string",
      "description": "What is being bought.",
      "enum": [
        "crowdfund_contribution",
        "testing_order"
      ]
    },
    "status": {
      "type": "string",
      "description": "awaiting_user_payment, paid, payment_processing, or expired. Only `paid` means payment succeeded.",
      "enum": [
        "awaiting_user_payment",
        "paid",
        "payment_processing",
        "expired"
      ]
    },
    "amount": {
      "type": "number",
      "description": "USD."
    },
    "currency": {
      "type": "string",
      "description": "Currency."
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Created.",
      "format": "date-time"
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "Expires.",
      "format": "date-time"
    },
    "checkout_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Still-usable payment page (only while awaiting payment).",
      "format": "uri"
    },
    "product_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Crowdfunding product id (contributions)."
    },
    "tier_id": {
      "type": "string",
      "description": "Tier id (testing orders)."
    },
    "receipt": {
      "type": [
        "string",
        "null"
      ],
      "description": "Where the receipt goes once paid."
    },
    "support_url": {
      "type": "string",
      "description": "Support for payment questions, disputes, and refunds.",
      "format": "uri"
    }
  }
}