/lending/v1/operations

Obtener operaciones

El endpoint /operations te permite realizar una búsqueda con filtros específicos.

Filtros

Puedes encontrar más información sobre cómo aplicar los filtros en la sección de Filtros y paginado.

Parámetros disponibles

Header Parameters
AuthorizationString
Query Parameters
filter[card.credit_line_id]String
filter[operation_id]String
filter[status]String
filter[card.last_four]String
filter[user.id]String
filter[merchant.name]String
filter[date_created][from]String
filter[date_created][to]String
filter[date_confirmed][from]String
filter[date_confirmed][to]String
filter[date_reverted][from]String
filter[date_reverted][to]String

Detalle de respuestas

Ejemplo de código
curl -X GET "https://api.pomelo.la/lending/v1/operations?filter[card.credit_line_id]=example_value&filter[operation_id]=example_value&filter[status]=example_value&filter[card.last_four]=example_value&filter[user.id]=example_value&filter[merchant.name]=example_value&filter[date_created][from]=2012-03-29&filter[date_created][to]=2012-03-30&filter[date_confirmed][from]=2012-03-30&filter[date_confirmed][to]=2012-04-01&filter[date_reverted][from]=2012-04-01&filter[date_reverted][to]=2012-04-10" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"
Ejemplo de respuesta (200)
{
  "data": [
    {
      "operation_id": "ctx-200kXoaEJLNzcsvNxY1pmBO7fEx",
      "status": "AUTHORIZED",
      "client_id": "cli-gdeESsefgeav8nZ6vwMb8Kjyf",
      "transaction": {
        "id": "tx-200kXoaEJLNzcsvNxY1pmBO7fEx",
        "type": "PURCHASE",
        "point_type": "POS",
        "entry_mode": "MANUAL",
        "origin": "DOMESTIC",
        "country_code": "ARG"
      },
      "date_created": "2012-03-29T10:05:45",
      "date_confirmed": "2012-03-30T10:03:32",
      "date_reverted": "2012-04-01T10:10:10",
      "original_amount": {
        "local": {
          "total": "10.05",
          "currency": "MXN"
        },
        "settlement": {
          "total": "9.50",
          "currency": "MXN"
        },
        "transaction": {
          "total": "9.50",
          "currency": "MXN"
        },
        "details": [
          {
            "type": "BASE",
            "currency": "MXN",
            "amount": "10.05",
            "name": "BASE"
          }
        ]
      },
      "card": {
        "id": "string",
        "product_type": "PREPAID",
        "provider": "VISA",
        "last_four": "1234",
        "credit_line_id": "lcr-200kirg6qicg1qHSCbgaStrEHjI"
      },
      "confirmed_amount": {
        "local": {
          "total": "10.05",
          "currency": "MXN"
        },
        "settlement": {
          "total": "9.50",
          "currency": "MXN"
        },
        "transaction": {
          "total": "9.50",
          "currency": "MXN"
        },
        "details": [
          {
            "type": "string",
            "currency": "string",
            "amount": "string",
            "name": "string"
          }
        ]
      },
      "installments": {
        "quantity": "12",
        "credit_type": "NO_PROMOTION",
        "grace_period": "0",
        "installment_amount": {
          "total": "0.83",
          "currency": "MXN"
        }
      },
      "merchant": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "mcc": "string",
        "address": "string",
        "name": "string"
      },
      "user": {
        "id": "string"
      }
    }
  ],
  "meta": {
    "pagination": {
      "total_pages": 2,
      "current_page": 0,
      "page_size": 10
    }
  }
}

Pomelo AI

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