GET
/v1/transactionsBuscar transacciones
El endpoint GET /v1/transactions te permite consultar las transacciones que procesamos.
Filtros
Los filtros siguen el formato filter[campo]=valor, igual que el resto de los endpoints de búsqueda.
- Obligatorios:
filter[date_from],filter[date_to]yfilter[country]. - Varios valores en un mismo filtro: sepáralos con coma, por ejemplo
filter[status]=APPROVED,HELD. Devolvemos las transacciones que coincidan con cualquiera de los valores (OR). - Varios filtros distintos: se combinan entre sí y deben cumplirse todos (AND). Por ejemplo,
filter[country]=ARG&filter[status]=APPROVED,HELDdevuelve transacciones ocurridas en Argentina que estén aprobadas o pendientes. filter[merchant_name],filter[local_amount_greater_than]yfilter[local_amount_less_than]aceptan un único valor.
Ejemplo:
GET /v1/transactions?filter[date_from]=2024-01-01T00:00:00&filter[date_to]=2024-03-31T23:59:59&filter[country]=ARG&filter[status]=APPROVED,HELD&page[size]=25
Fechas
date_fromydate_tose envían en UTC, sin zona horaria, con formatoyyyy-MM-ddTHH:mm:ss, y se aplican sobre la fecha de creación (created_at).- El rango entre
date_fromydate_tono puede superar los 12 meses, ydate_fromno puede ser anterior a 12 meses desde hoy.
Paginación
Usa page[number] (empieza en 0) y page[size]. El tamaño por defecto es 25 y el máximo es 50. La respuesta incluye en meta.pagination el total de páginas, y en meta.filters los filtros que se aplicaron.
Ordenamiento
Los resultados se devuelven ordenados por fecha de creación (created_at) de forma descendente. Este endpoint no permite modificar el orden.
Parámetros disponibles
Header Parameters
AuthorizationStringrequired
Query Parameters
filter[date_from]Stringrequired
filter[date_to]Stringrequired
filter[country]Arrayrequired
filter[type]Array
filter[status]Array
filter[card_id]Array
filter[user_id]Array
filter[network]Array
filter[merchant_name]String
filter[approval_number]Array
filter[transaction_id]Array
filter[local_amount_greater_than]Number
filter[local_amount_less_than]Number
page[number]Integer
page[size]Integer
Detalle de respuestas
401
No autenticado. Token ausente o inválido.
Ejemplo de código
curl -X GET "https://api.pomelo.la/v1/transactions?filter[date_from]=2026-12-02T15:55:25.511Z&filter[date_to]=2026-12-02T15:55:25.511Z&filter[country]=[]&filter[type]=[]&filter[status]=[]&filter[card_id]=[]&filter[user_id]=[]&filter[network]=[]&filter[merchant_name]=example_value&filter[approval_number]=[]&filter[transaction_id]=[]&filter[local_amount_greater_than]=123&filter[local_amount_less_than]=123&page[number]=0&page[size]=25" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"Ejemplo de respuesta (200)Lista paginada de transacciones.
{
"data": [
{
"id": "ctx-example-transaction-id",
"type": "PURCHASE",
"status": "APPROVED",
"status_detail": "APPROVED",
"origin": "INTERNATIONAL",
"source": "CLEARING",
"network": "MASTERCARD",
"entry_mode": "CREDENTIAL_ON_FILE",
"point_type": "ECOMMERCE",
"country_code": "USA",
"original_transaction_id": "ctx-example-original-transaction-id",
"local_date_time": "2024-01-15T14:30:00",
"created_at": "2024-01-15T17:30:02.631",
"approval_number": "example-approval-number",
"retrieval_reference_number": "rrn-example-123456",
"card": {
"id": "crd-example-card-id",
"product_type": "CREDIT",
"provider": "MASTERCARD",
"last_four": "1234"
},
"merchant": {
"id": "merchant-example-id",
"name": "Example Store",
"mcc": "5310",
"address": "123 Example Street",
"country": "USA",
"terminal_id": "terminal-example-id"
},
"user": {
"id": "usr-example-user-id"
},
"amount": {
"local": {
"total": "40451.21",
"currency": "ARS"
},
"settlement": {
"total": "32.10",
"currency": "USD"
},
"transaction": {
"total": "32.10",
"currency": "USD"
},
"details": [
{
"type": "BASE",
"currency": "ARS",
"amount": "40449.21",
"name": "BASE",
"extra_data": {}
}
]
},
"installment": {
"quantity": 3,
"credit_type": "SINGLE_PAYMENT",
"grace_period": 0,
"current_installment": 1,
"promotion_type": "NO_PROMOTION"
},
"extra_data": {
"cvv_presence": "PRESENT",
"cvv_validation": "MATCH",
"pin_presence": "NOT_PRESENT",
"pin_validation": "NOT_VALIDATED",
"expiration_date_presence": "PRESENT",
"expiration_date_validation": "VALID",
"cardholder_verification_method": "3DS",
"cardholder_presence": "PRESENT",
"card_presence": "PRESENT",
"pin_change_send": "NOT_SENT",
"pin_change_result": "NOT_APPLICABLE",
"function_code": "STANDARD"
},
"tokenization": {
"wallet_name": "APPLE_PAY",
"wallet_id": "wallet-example-id"
}
}
],
"meta": {
"pagination": {
"total_pages": 6,
"current_page": 0,
"page_size": 25
},
"filters": [
{
"key": "status",
"value": [
"APPROVED",
"HELD"
]
}
]
}
}