GET
/core/activities/v1/ctx/{ctx_id}Obtener Actividades por card transactions
El endpoint
/core/activities/v1/ctx/{ctx_id} permite obtener información de la actividad que especifiques por card transactions.Parámetros disponibles
Header Parameters
Accept-LanguageString
AuthorizationStringrequired
Path Parameters
ctx_idStringrequired
Detalle de respuestas
Ejemplo de código
curl -X GET "https://api.pomelo.la/core/activities/v1/ctx/example_value" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept-Language: en-US;q=1.0,en-*;q=0.5"Ejemplo de respuesta (200)Actividad
{
"data": {
"id": "act-20i0FJa0AC5nTJOyPBmlv16sS98",
"account_txs": [
{
"id": "string",
"entry_type": "DEBIT",
"process_type": "ORIGINAL",
"total_amount": "string",
"result": "APPROVED",
"parent_tx_id": "string",
"rejection_reason": "INSUFFICIENT_FUNDS",
"created_at": "2024-01-01T00:00:00Z",
"exchange_data": {
"exchange_rate": 0,
"origin_currency": "string",
"destination_currency": "string",
"origin_amount": 0,
"destination_amount": 0,
"exchange_rate_id": "string",
"account_id": "string"
}
}
],
"origin_tx_id": "ctx-20i21FSIJfInuet6Vcy33Wuk9In",
"origin": "PAYMENT_PROCESSOR",
"entry_type": "DEBIT",
"process_type": "ORIGINAL",
"refund_reason": "PSP_FAILURE",
"type": "CARD_PURCHASE",
"sub_type": "QR_PIX",
"data": {
"properties": {
"merchant_id": "string",
"address": "string",
"merchant_name": "string",
"merchant_logo_url": "string",
"card_type": "CREDIT",
"last_digits": "string",
"card_brand": "string",
"card_bin": "string",
"mcc": "string",
"point_type": "POS",
"entry_mode": "UNKNOWN"
},
"description": "Descripción en español",
"metadata": {
"extra_property_1": "My value"
},
"details": [
{
"amount": "1200.15",
"type": "BASE",
"subtype": "string",
"entry_type": "DEBIT",
"description": "Descripción en español",
"metadata": {
"extra_property_1": "My value"
}
}
]
},
"total_amount": "1200.15",
"result": "APPROVED",
"rejection_reason": "ACCOUNT_NOT_ACTIVE",
"rejection_message": "Mensaje asociado al rechazo en español.",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z",
"account": {
"id": "acc-20i1G18qYoLGMEeJngZRNyZFOJj",
"country": "ARG",
"currency": "ARS",
"owner_type": "USER"
},
"forced": false
}
}