Reporte Payments

Reporte de los pagos de una compañía.

Authorization

NombreTipoDescripción
AuthorizationBasic[Se utiliza la auth que maneja Conekta.][](https://developers.conekta.com/reference/autenticaci%C3%B3n)

Query

NombreObligatorioTipoDescripciónEjemplo
next_page_urlNostringID de la siguiente página.1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
sizeNointCantidad de datos que se devuelven.Por defecto es 100.
Mínimo 1
Máximo 999
fromNoint64Fecha desde que se tiene que buscar.1661220000000
Por defecto se toman los últimos 31 días
toNoint64Fecha hasta que se tiene que buscar.1661220000000
Por defecto se toman los últimos 31 días.

Solicitud

curl --location --request GET 'https://services.conekta.com/reports/v1/payments?from=1661220000000&to=1661292000000&next_page_url=1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1&size=999' \
--header 'Authorization: Bearer key_11111111111aaaaaaaaaa'

Respuesta

{
    "next_page_url": "https://services.conekta.com/reports/v1/payments?from=1661220000000&to=1661292000000&next_page_url=1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1&size=999",
    "has_more": true,
    "total": 2,
    "object": "list",
    "data": [
        {
            "create_date": 1661220000000,
            "pay_date": 1661220000000,
            "charge_id": "1111111111111aaaaaaaaaaaaaa",
            "transaction_type": "capture",
            "payment_method": "CreditCardPayment",
            "status": "paid",
            "error_message": "",
            "failure_code": "",
            "antifraud_code": "",
            "charge_amount": 100,
            "commission": 50.50,
            "deposit_amount": 50.50,
            "currency": "MXN",
            "exchange_rate": 1,
            "reference_id": "",
            "description": "item ",
            "name": "Juan Perez",
            "email": "[email protected]",
            "phone": "5555555555",
            "ip": "10.0.0.10",
            "cardholder_name": "Juan Perez",
            "card_number": "424242** **** 4242",
            "bank": "BANAMEX",
            "card_brand": "visa",
            "country_card": "MX",
            "type": "Credit",
            "card_type": "credit",
            "payment_cash": "",
            "store": "",
            "deposit_id": "11111111111aaaaaaaabbbbbb11",
            "deposit_date": 1661220000000,
            "monthly_installments": 2,
            "transaction_id": "22222222222aaaaaaaabbbbbb11",
            "invoice_id": "",
            "livemode": false,
            "checkout_id": "22222222aaaaaaaa",
            "antifraud_decision": "",
            "banking_decision": "A",
            "shipping_address": "Calle 1, Calle 2, CDMX, MX, 0001",
            "customer_id": "cus_2222222AAAAAAA",
            "order_id": "ord_333333333BBBBBB",
            "chargeback_date": null,
            "refund_date": null,
            "auth_code": "123456",
            "reference_oxxo": "",
            "channel": "",
            "checkout_request_id": "",
            "checkout_request_type": "",
            "checkout_request_name": "",
            "item_name": "ITEM PRINCIPAL",
            "item_description": "Este es item",
            "branch_office": "",
            "company_id": "123456789aaaaaaabbbbbbb",
            "subscription_id": "sub_aaaaaaaaa1111111222",
            "deposit_reference": "",
            "metadata": "{\"Integration\":\"API\"}"
        }
    ]
}