{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/createprints-ai/json-schema/createprints-ai-checkout-response-schema.json",
  "title": "CheckoutResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/createprints-ai-openapi.yml#/components/schemas/CheckoutResponse",
  "type": "object",
  "required": [
    "code",
    "checkoutUrl",
    "checkoutSessionId",
    "currency"
  ],
  "properties": {
    "code": {
      "type": "string",
      "const": "ok"
    },
    "checkoutUrl": {
      "type": "string",
      "format": "uri",
      "description": "Create Prints website URL for human review and payment."
    },
    "checkoutSessionId": {
      "type": "string",
      "pattern": "^cs_"
    },
    "basketId": {
      "type": "string",
      "format": "uuid"
    },
    "jobId": {
      "type": "string",
      "format": "uuid"
    },
    "productVariantId": {
      "type": "string",
      "format": "uuid"
    },
    "productAmountCents": {
      "type": "integer",
      "minimum": 0
    },
    "shippingAmountCents": {
      "type": "integer",
      "minimum": 0
    },
    "totalAmountCents": {
      "type": "integer",
      "minimum": 0
    },
    "currency": {
      "type": "string",
      "enum": [
        "GBP",
        "USD"
      ]
    },
    "productAmountFormatted": {
      "type": "string"
    },
    "shippingAmountFormatted": {
      "type": "string"
    },
    "totalAmountFormatted": {
      "type": "string"
    }
  }
}