Reporte de los pagos de una compañía.
Authorization
Nombre | Tipo | Descripción |
---|---|---|
Authorization | Basic | [Se utiliza la auth que maneja Conekta.][](https://developers.conekta.com/reference/autenticaci%C3%B3n) |
Query
Nombre | Obligatorio | Tipo | Descripción | Ejemplo |
---|---|---|---|---|
next_page_url | No | string | ID de la siguiente página. | 1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1 |
size | No | int | Cantidad de datos que se devuelven. | Por defecto es 100. Mínimo 1 Máximo 1000 |
from | No | int64 | Fecha desde que se tiene que buscar. | 1661220000000 Por defecto se toman los últimos 31 días |
to | No | int64 | Fecha hasta que se tiene que buscar. | 1661220000000 Por defecto se toman los últimos 31 días. |
amount_to | No | int64 | Monto mínimo desde que buscar | 100 |
amount_from | No | int64 | Monto máximo al buscar | 200 |
sort | No | string | Valor de ordenamiento (asc, desc) | asc |
payment_method | No | string | Filtro de payment method (CreditCardPayment SpeiPayment CashPayment BanortePayment BnplPayment) | CashPayment |
status | No | string | Filtro de status (expired paid canceled pending_payment refunded voided charged_back partially_refunded reversed pre_authorized pending_confirmation under_review) | paid |
field | No | string | Filtro de campos | status,bank |
customer_id | No | string | Filtro por customer id | cus_1234....a |
Solicitud
curl --location --request GET 'https://services.conekta.com/reports/v1/payments?from=1661220000000&to=1661292000000&next_page_url=1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1a1&size=1000' \
--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=1000",
"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",
"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\"}"
}
]
}