Logs

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

Objeto Log

Atributos

Tipo

Descripción

id

String

El id del log

method

String

Método HTTP usado en la solicitud

url

String

URL usada para la solicitud

status

String

Estatus HTTP de la solicitud

version

String

Versión usada en la solicitud

id_address

String

Dirección IP del solicitante

related

String

Objeto relacionado con el log

request_body

Object

Cuerpo enviado en la solicitud

response_body

Object

Cuerpo de la respuesta

request_headers

Object

Cabeceras HTTP usadas en la solicitud

response_headers

Object

Cabeceras HTTP de la respuesta

object

String

Tipo de objeto

created_at

Integer

Fecha de creación del log

query_string

Object

Pará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": {}
        }