charge
Eventos relacionados a un cargo.
Evento | Descripción |
---|---|
charge.created | Ocurre cada vez que se crea un cargo |
charge.paid | Ocurre cada vez que un cargo ha sido pagado |
charge.declined | Ocurre cada vez que el pago de un cargo es declinado |
charge.canceled | Ocurre cada vez que el pago de un cargo es cancelado |
charge.pending_confirmation | Ocurre cada vez que un cargo esta pendiente de confirmar |
charge.expired | Ocurre cada vez que un cargo llega a su fecha limite sin haber sido pagado |
charge.refunded | Ocurre cada vez que un cargo ha sido reembolsado en su totalidad al comprador |
charge.preauthorized | Sucede cuando la fecha de pago de una orden expira |
charge.reversed | Ocurre cada vez que hay un reverso del cargo. Solo aplica para pagos en efectivo |
charge.under_fraud_review | Ocurre cada vez que un cargo esta bajo revisión de fraude |
charge.fraudulent | Ocurre cada vez que un cargo tiene una alta probabilidad de ser fraudulento |
charge.score_updated | Ocurre cada vez que se actualiza la puntuación de un cargo |
Cargo Creado - charge.created
charge.created
{
"data": {
"object": {
"id": "62ca19b1fb7dfd54d1050ec4",
"livemode": true,
"created_at": 1657412017,
"currency": "MXN",
"payment_method": {
"service_name": "Cash",
"barcode_url": "https://s3.amazonaws.com/cash_payment_barcodes/93002874474525.png",
"object": "cash_payment",
"type": "cash",
"expires_at": 1657844017,
"store_name": "XXXX",
"reference": "93002874474525"
},
"object": "charge",
"description": "Payment from order",
"status": "pending_payment",
"amount": 32400,
"fee": 1203,
"customer_id": "",
"order_id": "ord_2s8K1A6nvfccT98w3"
},
"previous_attributes": {
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.created",
"created_at": 1668454461
}
Cargo pagado - charge.paid
charge.paid
{
"data": {
"object": {
"id": "62c916660211a673edf7f3f5",
"livemode": true,
"created_at": 1657345638,
"currency": "MXN",
"device_fingerprint": "UyH6Jk92hCX4hwjyz3J8UWtEFfGt3YET",
"payment_method": {
"service_name": "Cash",
"barcode_url": "https://s3.amazonaws.com/cash_payment_barcodes/93002871727982.png",
"store": "10CUE50ZEH",
"auth_code": 394534736,
"object": "cash_payment",
"type": "cash",
"expires_at": 1657432038,
"store_name": "XXXX",
"reference": "93002871727982"
},
"object": "charge",
"description": "Payment from order",
"status": "paid",
"amount": 9900,
"paid_at": 1657412015,
"fee": 392,
"customer_id": "",
"order_id": "ord_2s84SE9J5hfTPHaWT"
},
"previous_attributes": {
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.paid",
"created_at": 1668454461
}
Cargo declinado - charge.declined
charge.declined
{
"data": {
"object": {
"id": "62cb51180211a6615fe3b706",
"livemode": true,
"created_at": 1657491736,
"currency": "MXN",
"failure_code": "restricted_card",
"failure_message": "La tarjeta fue rechazada por el antifraude del banco. Por favor, pídale al tarjetahabiente que se comunique con el banco.",
"device_fingerprint": "h3QC6eDwcoRXi6DVhhCNM26j7mv7RMfi",
"channel": {
"segment": "Checkout",
"checkout_request_id": "81e7fc65-0074-42a3-b8ad-767073e6db79",
"checkout_request_type": "HostedPayment",
"id": "channel_2s8cVs4cBsV1kez3T"
},
"payment_method": {
"name": "Fulano Perez",
"exp_month": "05",
"exp_year": "25",
"auth_code": "",
"object": "card_payment",
"type": "debit",
"last4": "3786",
"brand": "visa",
"issuer": "banorte_pr",
"account_type": "BANORTE ELECTRON",
"country": "MX",
"fraud_score": 24.0,
"fraud_indicators": []
},
"object": "charge",
"description": "Payment from order",
"status": "declined",
"amount": 59800,
"fee": 2163,
"customer_id": "cus_2s8cVEsMsX1XefvXf",
"order_id": "ord_2s8cVELK5mKbixoT4"
},
"previous_attributes": {
"payment_method": {
}
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.declined",
"created_at": 1668454461
}
Cargo declinado - charge.canceled
charge.canceled
{
"data": {
"object": {
"id": "62c8f004fb7dfd54d4e9716c",
"livemode": true,
"created_at": 1657335812,
"currency": "MXN",
"payment_method": {
"clabe": "646020111837461145",
"bank": "STP",
"receiving_account_number": "646020111837461145",
"receiving_account_bank": "STP",
"payment_attempts": [],
"object": "bank_transfer_payment",
"type": "spei",
"expires_at": 1657508612
},
"object": "charge",
"description": "Payment from order",
"status": "canceled",
"amount": 37200,
"fee": 1450,
"customer_id": "",
"order_id": "ord_2s82HAgMcQ9T4ojno"
},
"previous_attributes": {
"status": "pending_payment"
}
,
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.canceled",
"created_at": 1668454461
}
Cargo pendiente de confirmación - charge.pending_confirmation
charge.pending_confirmation
{
"data": {
"object": {
"id": "62ca17b9fb7dfd54d2a328d9",
"livemode": true,
"created_at": 1657411513,
"currency": "MXN",
"device_fingerprint": "WFTLaezowXByetWjMDn4yWFiLJFzWtqn",
"payment_method": {
"service_name": "Cash",
"barcode_url": "https://s3.amazonaws.com/cash_payment_barcodes/84002874453314.png",
"store": "10TIJ50XFF",
"auth_code": 840691980,
"object": "cash_payment",
"type": "cash",
"expires_at": 1660089600,
"store_name": "XXXX",
"reference": "84002874453314"
},
"object": "charge",
"description": "Payment from order",
"status": "pending_confirmation",
"amount": 662800,
"fee": 3016,
"customer_id": "",
"order_id": "ord_2s8Jtk1rWBufKRmP9"
},
"previous_attributes": {
"payment_method": {
},
"status": "pending_payment"
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.pending_confirmation",
"created_at": 1668454461
}
Cargo expirado - charge.expired
charge.expired
{
"data": {
"object": {
"id": "62a2f6b841de2721b6e8e721",
"livemode": true,
"created_at": 1654847160,
"currency": "MXN",
"payment_method": {
"service_name": "Cash",
"barcode_url": "https://s3.amazonaws.com/cash_payment_barcodes/84002778562160.png",
"object": "cash_payment",
"type": "cash",
"expires_at": 1657411200,
"store_name": "XXXX",
"reference": "84002778562160"
},
"object": "charge",
"description": "Payment from order",
"status": "expired",
"amount": 285100,
"fee": 3016,
"customer_id": "",
"order_id": "ord_2rxc7sXrukHbHimWp"
},
"previous_attributes": {
"status": "pending_payment"
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.declined",
"created_at": 1668454461
}
Cargo Creado - charge.refunded
charge.refunded
{
"data": {
"object": {
"id": "62ca19ae41de27618232ba90",
"livemode": true,
"created_at": 1657412015,
"currency": "MXN",
"device_fingerprint": "XQraSqftb9Vsam2qynXcPnGx22dapmog",
"payment_method": {
"name": "Fulano Perez",
"exp_month": "05",
"exp_year": "25",
"auth_code": "",
"object": "card_payment",
"type": "debit",
"last4": "3786",
"brand": "visa",
"issuer": "banorte_pr",
"account_type": "BANORTE ELECTRON",
"country": "MX",
"fraud_score": 24.0,
"fraud_indicators": []
},
"object": "charge",
"description": "Payment from order",
"status": "refunded",
"amount": 465,
"paid_at": 1657412016,
"fee": 129,
"customer_id": "cus_2s8JzoRrM5rT5Up9p",
"order_id": "ord_2s8K17MHaKQZgCnwJ",
"refunds": {
"object": "list",
"has_more": false,
"total": 1,
"data": [
{
"object": "refund",
"amount": -465,
"auth_code": "153660",
"id": "62ca19e00211a673f09a2378",
"created_at": 1657412064
}
]
}
},
"previous_attributes": {
"payment_method": {
},
"status": "paid"
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.pending_confirmation",
"created_at": 1668454461
}
Cargo Preautorizado - charge.preauthorized
charge.preauthorized
{
"data": {
"object": {
"id": "62ca19bd0211a673ef7a2173",
"livemode": true,
"created_at": 1657412029,
"currency": "MXN",
"device_fingerprint": "cSz3T4HuUUPUxHYjhubELmJbtcSfhQey",
"payment_method": {
"name": "Fulano Perez",
"exp_month": "05",
"exp_year": "25",
"auth_code": "",
"object": "card_payment",
"type": "debit",
"last4": "3786",
"brand": "visa",
"issuer": "banorte_pr",
"account_type": "BANORTE ELECTRON",
"country": "MX",
"fraud_score": 24.0,
"fraud_indicators": []
},
"object": "charge",
"description": "Payment from order",
"status": "pre_authorized",
"amount": 5000,
"fee": 116,
"customer_id": "cus_2nvT48PAHSHHh8ieJ",
"order_id": "ord_2s8K1JEuTSk9mEcLm"
},
"previous_attributes": {
"payment_method": {
}
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.pending_confirmation",
"created_at": 1668454461
}
Cargo Creado - charge.reversed
charge.reversed
{
"data": {
"object": {
"id": "6387bf9f041fee001fcbb86d",
"livemode": true,
"created_at": 1669840799,
"currency": "MXN",
"device_fingerprint": "PofnpkUzcfVB9ShdLTUnv3XEQmWoxBAR",
"payment_method": {
"service_name": "Cash",
"barcode_url": "https://barcodes.conekta.com/db9042fbe4b68f516266cc9f23b40790c172864a.png",
"store": "10TLC505Q9",
"auth_code": 416471,
"object": "cash_payment",
"type": "cash",
"expires_at": 1670371140,
"store_name": "XXXX",
"reference": "93003247012026",
"cashier_id": "GOGAFE0211160"
},
"object": "charge",
"description": "Payment from order",
"status": "pending_payment",
"amount": 4000,
"fee": 162,
"customer_id": "",
"order_id": "ord_2swLdHrWKwfMCiaje"
},
"previous_attributes": {
"status": "pending_confirmation"
}
},
"livemode": true,
"webhook_status": "successful",
"webhook_logs": [
{
"id": "webhl_2sr6P2oyFqNTSLghJ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 12,
"last_http_response_status": 200,
"response_data": {},
"object": "webhook_log",
"last_attempted_at": 1668480248
}
],
"id": "6372983ddfd6a70001e5eca4",
"object": "event",
"type": "charge.chargeback.covered",
"created_at": 1668454461
}
Updated 4 months ago