{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pagaconquickpay-com/json-schema/pagaconquickpay-com-cobrar-request-schema.json",
  "title": "CobrarRequest",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pagaconquickpay-com-openapi.json#/components/schemas/CobrarRequest",
  "type": "object",
  "properties": {
    "idempotency_key": {
      "type": "string",
      "format": "uuid"
    },
    "monto": {
      "type": "object",
      "properties": {
        "valor": {
          "type": "number",
          "exclusiveMinimum": true,
          "minimum": 0
        },
        "moneda": {
          "type": "string",
          "minLength": 3,
          "maxLength": 3,
          "default": "VES"
        }
      },
      "required": [
        "valor"
      ],
      "additionalProperties": false
    },
    "concepto": {
      "type": "string",
      "maxLength": 120
    },
    "canal": {
      "type": "string",
      "enum": [
        "boton_pago",
        "billetera_digital",
        "pos",
        "merchant",
        "vpos",
        "whatsapp"
      ],
      "default": "boton_pago"
    },
    "origen_ip": {
      "type": "string"
    },
    "banco_preferido": {
      "type": "string"
    },
    "cobrador": {
      "type": "object",
      "properties": {
        "tipo": {
          "type": "string",
          "enum": [
            "cuenta",
            "telefono"
          ]
        },
        "valor": {
          "type": "string",
          "minLength": 1
        },
        "banco": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "identificacion": {
          "type": "string",
          "minLength": 1
        },
        "tipo_doc": {
          "type": "string",
          "enum": [
            "V",
            "E",
            "J",
            "P",
            "G"
          ]
        },
        "nombre": {
          "type": "string",
          "minLength": 1,
          "maxLength": 40
        }
      },
      "required": [
        "tipo",
        "valor",
        "banco",
        "identificacion",
        "nombre"
      ],
      "additionalProperties": false
    },
    "pagador": {
      "type": "object",
      "properties": {
        "tipo": {
          "type": "string",
          "enum": [
            "cuenta",
            "telefono"
          ]
        },
        "valor": {
          "type": "string",
          "minLength": 1
        },
        "banco": {
          "type": "string",
          "pattern": "^\\d{4}$"
        },
        "identificacion": {
          "type": "string",
          "minLength": 1
        },
        "tipo_doc": {
          "type": "string",
          "enum": [
            "V",
            "E",
            "J",
            "P",
            "G"
          ]
        },
        "nombre": {
          "type": "string",
          "minLength": 1,
          "maxLength": 40
        }
      },
      "required": [
        "tipo",
        "valor",
        "banco",
        "identificacion",
        "nombre"
      ],
      "additionalProperties": false
    },
    "otp": {
      "type": "string"
    },
    "telefono_pagador": {
      "type": "string",
      "pattern": "^0?4\\d{9}$"
    }
  },
  "required": [
    "idempotency_key",
    "monto",
    "concepto",
    "cobrador",
    "pagador"
  ],
  "additionalProperties": false
}