{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orboni-com/json-schema/orboni-com-create-checkout-session-request-schema.json",
  "title": "CreateCheckoutSessionRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orboni-com-openapi.yml#/components/schemas/CreateCheckoutSessionRequest",
  "type": "object",
  "required": [
    "amount"
  ],
  "properties": {
    "amount": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000000000000,
      "description": "In the currency’s smallest unit, as Stripe takes it: cents, pence — and whole yen, won and krónur, which have none. Worth $1 to $100,000 at the day’s rate: in usd, 100 to 10000000."
    },
    "currency": {
      "type": "string",
      "enum": [
        "usd",
        "eur",
        "gbp",
        "chf",
        "pln",
        "czk",
        "huf",
        "ron",
        "dkk",
        "sek",
        "nok",
        "isk",
        "try",
        "jpy",
        "krw",
        "cny",
        "hkd",
        "sgd",
        "inr",
        "idr",
        "myr",
        "php",
        "thb",
        "ils",
        "aud",
        "nzd",
        "cad",
        "mxn",
        "brl",
        "zar",
        "uah",
        "ars",
        "clp",
        "aed",
        "sar",
        "twd",
        "vnd",
        "USD",
        "EUR",
        "GBP",
        "CHF",
        "PLN",
        "CZK",
        "HUF",
        "RON",
        "DKK",
        "SEK",
        "NOK",
        "ISK",
        "TRY",
        "JPY",
        "KRW",
        "CNY",
        "HKD",
        "SGD",
        "INR",
        "IDR",
        "MYR",
        "PHP",
        "THB",
        "ILS",
        "AUD",
        "NZD",
        "CAD",
        "MXN",
        "BRL",
        "ZAR",
        "UAH",
        "ARS",
        "CLP",
        "AED",
        "SAR",
        "TWD",
        "VND"
      ],
      "default": "usd",
      "description": "The price’s currency, its ISO code in lower or upper case. See `GET /currencies`."
    },
    "payment_methods": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "enum": [
          "usdt_tron",
          "usdt_ethereum",
          "usdt_bsc",
          "usdt_solana",
          "usdt_ton",
          "usdt_polygon",
          "usdt_arbitrum",
          "usdt_optimism",
          "usdt_avalanche",
          "usdc_ethereum",
          "usdc_base",
          "usdc_solana",
          "usdc_polygon",
          "usdc_arbitrum",
          "usdc_optimism",
          "usdc_avalanche",
          "usdc_bsc",
          "usdc_stellar",
          "btc",
          "eth",
          "eth_base",
          "eth_arbitrum",
          "eth_optimism",
          "bnb",
          "sol",
          "ton",
          "trx",
          "pol",
          "avax",
          "ltc",
          "doge",
          "bch",
          "xrp",
          "xlm",
          "pyusd_ethereum",
          "pyusd_arbitrum",
          "dai_ethereum",
          "dai_arbitrum",
          "dai_optimism",
          "dai_polygon"
        ]
      },
      "description": "The ways to pay to offer, by key (see `GET /payment_methods`). Default: every one the project has a wallet for."
    },
    "network": {
      "type": "string",
      "enum": [
        "solana",
        "tron",
        "ethereum",
        "bsc",
        "base",
        "polygon",
        "arbitrum",
        "optimism",
        "avalanche",
        "ton",
        "bitcoin",
        "litecoin",
        "dogecoin",
        "bitcoincash",
        "xrp",
        "stellar"
      ],
      "description": "Narrows the offer to one network."
    },
    "success_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "maxLength": 2048,
      "description": "Where the payment page sends the buyer once paid: only the browser that opened the page, within 60 minutes of paying. `{CHECKOUT_SESSION_ID}` in it is replaced with the session’s ID. It must carry no secret: look the order up from the session ID."
    },
    "cancel_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "maxLength": 2048,
      "description": "Where the page’s back link goes. `{CHECKOUT_SESSION_ID}` works here too."
    },
    "client_reference_id": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 200,
      "description": "Your order number. Comes back in every event."
    },
    "customer_email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email",
      "maxLength": 255,
      "description": "The buyer’s email, if you have it: the page then does not ask for one."
    },
    "customer_email_collection": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "required",
        "optional",
        "off",
        null
      ],
      "description": "Whether the payment page asks the buyer for an email before it shows where to pay: `required`, `optional` (they may skip it) or `off`. Default: the project’s setting."
    },
    "locale": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 35,
      "pattern": "^(auto|[A-Za-z]{2,3}([-_][A-Za-z0-9]{2,8}){0,3})$",
      "description": "The payment page’s language as an IETF tag, the closest of those it speaks: en, ru, uk, pl, es, es-mx, pt, pt-br, fr, de, ja, it, nl, ro, cs, zh-hans, zh-hant, ko, id, ms, vi, th, fil, hi, bn, ur, ta, te, mr, gu, kn, ml, pa, ne, si, my, km, lo, mn, kk, uz, ky, tg, az, ka, hy, ar, he, fa, tr, ps, el, hu, sv, da, nb, fi, sk, sl, hr, sr, bs, bg, mk, sq, lt, lv, et, be, ca, eu, gl, is, sw, am, ha, yo, ig, zu, xh, af, so, rw, mg, ht. `auto` (the default) is the buyer’s own; a language it lacks is the buyer’s own too, never an error."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 250,
      "description": "What is being paid for, shown to the buyer, in lists and exports. Neither it nor `details` may name an Orboni fee, bill or invoice (422)."
    },
    "details": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1000,
      "description": "What the buyer gets, shown under `description` on the payment page only. Plain text, line breaks kept. Kept to 500 characters: a longer one, up to 1000, is cut there at a word."
    },
    "appearance": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "auto",
        "light",
        "dark",
        null
      ],
      "description": "`light` or `dark` draws the payment page so; `auto` is the buyer’s own. Default: the project’s setting."
    },
    "metadata": {
      "$ref": "#/$defs/Metadata"
    },
    "expires_in": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 300,
      "maximum": 86400,
      "default": 1800,
      "description": "Seconds the link stays open. A test session stays open 7200 seconds at most: a longer one is shortened, not refused."
    }
  },
  "$defs": {
    "Metadata": {
      "type": "object",
      "description": "Up to 50 string values of your own, returned as given: keys up to 40 characters, values up to 500, 8 KB in all as JSON (a character outside ASCII counts as 6 bytes).",
      "maxProperties": 50,
      "propertyNames": {
        "maxLength": 40
      },
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ],
        "maxLength": 500
      }
    }
  }
}