{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/luniumpay-com/json-schema/luniumpay-com-cotacao-pix-carteira-schema.json",
  "title": "CotacaoPixCarteira",
  "description": "Prévia de um Pix pago com USDT. Estimativa: ao confirmar, a cotação é refeita e reservamos até 1% a mais (a sobra volta).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/luniumpay-com-carteira-usdt-api-openapi.yml#/components/schemas/CotacaoPixCarteira",
  "type": "object",
  "properties": {
    "payment_method": {
      "type": "string",
      "enum": [
        "pix_key",
        "br_code"
      ]
    },
    "brl_amount": {
      "type": "string"
    },
    "usdt_order": {
      "type": "string",
      "pattern": "^-?\\d+\\.\\d{6}$",
      "description": "USDT convertidos para pagar o Pix."
    },
    "withdrawal_fee": {
      "type": "string",
      "pattern": "^-?\\d+\\.\\d{6}$",
      "description": "Custo de envio."
    },
    "usdt_total": {
      "type": "string",
      "pattern": "^-?\\d+\\.\\d{6}$",
      "description": "Total estimado debitado."
    },
    "usdt_reserved": {
      "type": "string",
      "pattern": "^-?\\d+\\.\\d{6}$",
      "description": "Quanto fica reservado até o Pix concluir."
    },
    "quote_id": {
      "type": "string",
      "description": "Só com br_code: envie em POST /carteira-usdt/payments para garantir que é o mesmo código."
    },
    "merchant_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "pix_key": {
      "type": [
        "string",
        "null"
      ]
    },
    "pix_key_type": {
      "type": [
        "string",
        "null"
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "note": {
      "type": "string"
    },
    "sandbox": {
      "type": "boolean"
    },
    "reserve_usd": {
      "type": [
        "string",
        "null"
      ],
      "description": "Equivalente em USDT da reserva operacional de R$1, convertido na cotacao e ja incluido no total; nao somar novamente. Ordens antigas mantem seu valor original. / USDT equivalent of the BRL 1 operational reserve, converted at quote time and already included in the total; do not add it again. Existing orders retain their original value."
    },
    "reserve_brl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Reserva operacional fixa de R$1 nas novas ordens, ja incluida no total. Legado preserva a reserva original. / Fixed BRL 1 operational reserve on new orders, already included in the total; existing orders keep their original reserve."
    }
  }
}