/lending/v1/campaigns

List campaigns

El endpoint /v1/campaigns te permite listar campañas con filtros opcionales por estado, tipo y subtipo.

Parámetros disponibles

Query Parameters
filter[status]enum
filter[type]enum
filter[subtype]enum
sortString
page[number]Integer
page[size]Integer

Detalle de respuestas

Ejemplo de código
curl -X GET "https://api.pomelo.la/lending/v1/campaigns?filter[status]=DRAFT&filter[type]=TRANSACTION&filter[subtype]=INTEREST_RATE_SUBSIDY&sort=-created_at&page[number]=0&page[size]=50" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"
Ejemplo de respuesta (200)OK
{
  "meta": {
    "pagination": {
      "total_pages": 3,
      "current_page": 0,
      "page_size": 50
    },
    "filters": [
      {
        "key": "status",
        "value": "ACTIVE"
      }
    ]
  },
  "data": [
    {
      "id": "cpg-2Vh8Xm3pYqN1aBcDeFgHiJkLmNo",
      "name": "Tasa 0% por el Día de la Madre",
      "status": "DRAFT",
      "type": "TRANSACTION",
      "subtype": "INTEREST_RATE_SUBSIDY",
      "priority": 1,
      "tags": [],
      "schedule": {
        "always_on": false,
        "start_date_time": "2026-05-01T00:00:00",
        "end_date_time": "2026-05-15T23:59:59",
        "timezone": "America/Lima",
        "active_hours": [
          {
            "day_of_week": [
              5,
              6,
              0
            ],
            "from": "09:00",
            "to": "18:00"
          }
        ]
      },
      "audience": {
        "include": {
          "type": "ALL"
        },
        "exclude": {
          "type": "ALL"
        }
      },
      "rules": {
        "type": "CONDITION",
        "field": "transaction.transaction_type",
        "operator": "EQ",
        "value": "PURCHASE"
      },
      "benefit": {
        "type": "interest_rate_subsidy",
        "mode": "ZERO_RATE",
        "fixed_rate": "40.0",
        "applicable_installments": [
          3,
          6,
          12
        ],
        "rate_type": "NOMINAL_ANNUAL"
      },
      "collision_policy": {
        "strategy": "SINGLE_WINNER",
        "tie_breaking_rule": "OLDER_FIRST"
      },
      "external_name": "Día de la Madre 0%",
      "description": "Tasa 0% en compras mayores a S/ 500 en 12 cuotas",
      "created_by": "[email protected]",
      "created_at": "2026-05-01T10:00:00Z",
      "updated_at": "2026-05-01T10:00:00Z",
      "version": 1
    }
  ]
}

Pomelo AI

Asistente de inteligencia artificial para consultas sobre la API de Pomelo
¡Hola!¿Cómo puedo ayudarte hoy?