{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klisten-co-kr/json-schema/klisten-co-kr-checkout-topup-schema.json",
  "title": "CheckoutTopup",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/klisten-co-kr-checkout-api-openapi.yml#/components/schemas/CheckoutTopup",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "create_pending",
        "order_created",
        "capture_pending",
        "held",
        "settled_sandbox",
        "credited",
        "adverse"
      ]
    },
    "order_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "environment": {
      "type": "string",
      "enum": [
        "sandbox",
        "live"
      ]
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "amount_cents": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "credited_micro_usd": {
      "type": "string",
      "pattern": "^(?:0|[1-9][0-9]{0,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|90070[0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|9007199254740990[0-9]{0}|9007199254740991)$",
      "description": "Nonnegative integer micro-USD, at most 9007199254740991. One USD is 1000000 micro-USD."
    }
  },
  "required": [
    "id",
    "status",
    "order_id",
    "environment",
    "currency",
    "amount_cents",
    "credited_micro_usd"
  ],
  "additionalProperties": false
}