{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exodus-com/json-schema/exodus-com-payment-schema.json",
  "title": "Payment",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exodus-com-openapi.json#/components/schemas/Payment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "enum": [
        "payment"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "client_deposit_pending",
        "client_deposit_detected",
        "client_deposit_confirmed",
        "client_deposit_expired",
        "escrow_confirmed",
        "settlement_pending",
        "settled",
        "failed",
        "refunded",
        "cancelled"
      ]
    },
    "payment_method": {
      "type": "string",
      "enum": [
        "direct",
        "two_step"
      ]
    },
    "detected_asset": {
      "type": [
        "string",
        "null"
      ]
    },
    "detected_token_symbol": {
      "type": [
        "string",
        "null"
      ]
    },
    "detected_chain": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"
    },
    "token_amount": {
      "type": [
        "string",
        "null"
      ]
    },
    "token_amount_decimal": {
      "type": [
        "string",
        "null"
      ]
    },
    "deposit_address": {
      "type": [
        "string",
        "null"
      ]
    },
    "payer_addresses": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "on_chain_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "factory_address": {
      "type": [
        "string",
        "null"
      ]
    },
    "payment_options": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "on_chain_id": {
            "type": "string"
          },
          "deposit_address": {
            "type": "string"
          },
          "chain_family": {
            "type": "string"
          },
          "token": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "on_chain_id",
          "deposit_address",
          "chain_family",
          "token"
        ]
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "flagged": {
      "type": "boolean"
    }
  },
  "required": [
    "id",
    "object",
    "status",
    "payment_method",
    "detected_asset",
    "detected_token_symbol",
    "detected_chain",
    "token_amount",
    "token_amount_decimal",
    "deposit_address",
    "payer_addresses",
    "on_chain_id",
    "factory_address",
    "payment_options",
    "created_at",
    "flagged"
  ]
}