Logs

Los "logs" representan registros de solicitudes hechas por una compañía en forma de texto.

Objeto Log

Atributos

TipoDescripción
idStringEl id del log
methodStringMétodo HTTP usado en la solicitud
urlStringURL usada para la solicitud
statusStringEstatus HTTP de la solicitud
versionStringVersión usada en la solicitud
id_addressStringDirección IP del solicitante
relatedStringObjeto relacionado con el log
request_bodyObjectCuerpo enviado en la solicitud
response_bodyObjectCuerpo de la respuesta
request_headersObjectCabeceras HTTP usadas en la solicitud
response_headersObjectCabeceras HTTP de la respuesta
objectStringTipo de objeto
created_atIntegerFecha de creación del log
query_stringObjectParámetros adicionales enviados en la solicitud
Log
{
            "id": "5f8008dc88545500aed2c5a",
            "method": "POST",
            "url": "/charges",
            "status": "402",
            "version": "1.0.0",
            "ip_address": "",
            "related": "Charge",
            "request_body": {
                "amount": "30000",
                "capture": "false",
                "card": {
                    "address": {
                        "country": "MX"
                    },
                    "cvc": "***",
                    "exp_month": "",
                    "exp_year": "",
                    "name": "Mario Perez",
                    "number": "**** **** **** 9999"
                },
                "currency": "mxn",
                "description": "{\"device_fingerprint\":\"CF73AFDDE-8841D-DDD8-CD7E-DCE0C12628F7\",\"details\":{\"email\":\"\",\"phone\":\"+5215555555555\"},\"customer\":{\"is_corporate\":false,\"account_age\":0,\"total_dropoff\":0,\"user_id\":\"47580dea1b38845FFFscf4819077c1473d\"}}",
                "details": {
                    "billing_address": {
                        "country": "MX",
                        "name": "Mario Perez"
                    },
                    "ip": "",
                    "name": "Mario Perez",
                    "email": "[email protected]",
                    "phone": "+5215555555555"
                },
                "reference_id": "1931X3feGtR55"
            },
            "response_body": {
                "object": "error",
                "type": "processing_error",
                "message": "This charge has been declined because buyer behavior is suspicious.",
                "message_to_purchaser": "The card has been declined. Please try with another payment method.",
                "param": null,
                "code": "processing_error",
                "validation_error": null
            },
            "request_headers": {},
            "response_headers": {},
            "object": "log",
            "created_at": 1598032350,
            "query_string": {}
        }