{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/phone-com/json-schema/phone-com-payment-method-schema.json",
  "title": "PaymentMethod",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/phone-com-payment-methods-api-openapi.yml#/components/schemas/PaymentMethod",
  "type": "object",
  "properties": {
    "account_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "API Account ID"
    },
    "status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "onfile",
        "primary",
        "hidden"
      ],
      "description": "Can be 'primary' = primary card used for billing, 'onfile' = card on file, 'hidden' = deleted card"
    },
    "nickname": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 30,
      "description": "Name of Card"
    },
    "type": {
      "type": "string",
      "enum": [
        "cc"
      ],
      "description": "'cc' for credit card"
    },
    "cc_token": {
      "type": "string",
      "maxLength": 32,
      "description": "Token obtained via POST /v4/credit-cards/provider"
    }
  },
  "required": [
    "type",
    "cc_token"
  ]
}