Eventos
Un Webhook es un callback HTTP POST. Nuestra API envia diferentes eventos relacionados con tu negocio en formato JSON con el cuál podrás notificar a tu usuario, crear reportes, notificar a tu equipo operativo sobre contracargos, etc.
Configurar un webhook
Al crear tu cuenta, puedes configurar los webhooks en la sección de Webhooks en el Panel de Conekta. Solo coloca la URL como se observa en las siguientes imágenes:
Si quieres verificar a qué eventos está suscrito tu webhook, puedes ejecutar la siguiente consulta:
curl --location --request GET 'https://api.conekta.io/webhooks' \
--header 'Accept: application/vnd.conekta-v2.0.0+json' \
--header 'Accept-Language: es' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer key_KSdfawe..' \
--data-raw '{
"url": "https://920c-81-35-24-51.eu.ngrok.io/webhook"
}'
El evento será enviado a todos los URLs que asignaste la cual permitirá que tus aplicaciones respondan.
Para confirmar de que ya has recibido una notificación de un webhook correctamente, tu servidor debe regresar un código 200 de HTTP.
<?php
$body = @file_get_contents('php://input');
$data = json_decode($body);
http_response_code(200); // Return 200 OK
if ($data->type == 'charge.paid'){
$msg = "Tu pago ha sido comprobado.";
mail("[email protected]","Pago confirmado",$msg);
}
class WebhooksController < ApplicationController
skip_before_filter :verify_authenticity_token
def receive
data = JSON.parse(request.body.read)
if data['type'] == 'charge.paid'
msg = 'Tu pago ha sido comprobado'
ExampleMailer.paid_email(data, msg)
end
end
render status: 200
end
end
import json
data = json.loads(HttpRequest.body)
if data.type == 'charge.paid':
msg['Subject'] = 'Pago confirmado'
msg['From'] = me
msg['To'] = you
s = smtplib.SMTP('localhost')
s.sendmail(me, [you], msg.as_string())
s.quit()
end
//Using nodemailer
var data = typeof req.body == 'string' ? JSON.parse(req.body) : req.body;
if (data.type == 'order.paid') {
var mail = {
from: me,
to: you,
subject: 'Pago comprobado',
text: 'Tu pago ha sido confirmado.'
};
transporter.sendMail(mail, function(error, info){
if(error){ return console.log(error); }
});
}
import org.json.JSONObject;
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
BufferedReader get_body = request.getReader();
//Parse JSON
}
using System.Net.Mail;
public class ConektaWebhookController : Controller
{
MailMessage mail = new MailMessage(you, me);
[HttpPost]
public ActionResult Index()
{
Stream req = Request.InputStream;
req.Seek(0, System.IO.SeekOrigin.Begin);
string json = new StreamReader(req).ReadToEnd();
var obj = JObject.Parse(json);
var data = obj.SelectToken("data");
if(data.Type == 'charge.paid'){
mail.Subject = "Pago comprobado";
mail.Body = "Tu pago ha sido confirmado.";
client.Send(mail);
}
return new HttpStatusCodeResult(HttpStatusCode.OK);
}
}
# N/A
import (
"json"
"log"
"net/http"
)
func notificationHandler(w http.ResponseWriter, r *http.Request) {
var objmap map[string]json.RawMessage
err := json.Unmarshal(data, &objmap)
if (objmap["type"] == "order.paid"){
//Do something
}
w.Write([]byte("OK"))
}
func main() {
http.HandleFunc("/my-notification-endpoint", notificationHandler)
err := http.ListenAndServe(":9090", nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}
Si tu servidor cuenta con alguna restricción mediante Firewall debes añadir la IP de nuestros servidores de eventos 52.200.151.182, 52.72.53.105 y 186.28.176.85. Además, puedes seleccionar un puerto específico para tus webhooks. Los puertos que soportamos son el 80, 443 y el rango del 1025 al 10001.
Códigos de Error HTTP
Cuando falla la notificación de un evento, vamos a regresar un código de error HTTP, pero en ciertos casos puedes encontrar los siguientes códigos de error especiales:
HTTP -1
En este caso, no hemos mandado todavía la notificación y sigue pendiente.
HTTP 1
Un caso de falla aleatorio que típicamente indica una falla de SSL, demasiadas redirects (más que una) o una respuesta mal-formada.
HTTP 200
Tu servidor contestó correctamente.
HTTP 201..5XX
Tu servidor respondió con este código HTTP, lo cuál es válido pero no lo esperado para confirmar la recepción de la notificación.
HTTP 598
Un error de connectividad, o timeout al momento de esperar una respuesta.
Reintentos de Notificación
Los reintentos de notificaciones webhooks se hacen con 'exponential backoff', así que vamos a intentar pronto después de las primeras fallas, luego ir alargando el tiempo de reintentos hasta que ha pasado 24 horas desde el primer intento dando un total de 13 reintentos.
Se va intentar las notificaciones basado en la siguiente tabla:
Intento # | Tiempo Entre Intentos | Tiempo Acumulado (Horas) | Tiempo Acumulado (Días) |
---|---|---|---|
0 | 00:00:00 | 00:00:00 | 0.0 |
1 | 00:00:16 | 00:00:16 | 0.0 |
2 | 00:00:31 | 00:00:47 | 0.0 |
3 | 00:01:36 | 00:02:23 | 0.0 |
4 | 00:04:31 | 00:06:54 | 0.0 |
5 | 00:10:40 | 00:17:34 | 0.0 |
6 | 00:21:51 | 00:39:25 | 0.0 |
7 | 00:40:16 | 01:19:41 | 0.1 |
8 | 01:08:31 | 02:28:12 | 0.1 |
9 | 01:49:36 | 04:17:48 | 0.2 |
10 | 02:46:55 | 07:04:43 | 0.3 |
11 | 04:04:16 | 11:08:59 | 0.5 |
12 | 05:45:51 | 16:54:50 | 0.7 |
13 | 07:56:16 | 24:51:06 | 1.0 |
Events de Conekta
Los eventos que puedes recibir por parte de Conekta son:
- Order created
- Order paid - Card
- Order paid - OXXO
- Order paid - SPEI
- Order expired
- Charge created - Card
- Charge created - OXXO
- Charge created - SPEI
- Charge paid - Card
- Charge paid - OXXO
- Charge paid - SPEI
- Charge refunded
- Charge partially refunded
- Chargeback created
- Plan created
- Subscription created
- Subscription paid
- Subscription canceled
- Subscription payment failed .
- Cash refund created
- Cash refund canceled
- Cash refund refunded
- Cash refund expired
- Cashout confirmed
- Cashout canceled
Order Events
Order Creado - order.created
order.created
{
"data": {
"object": {
"livemode": false,
"amount": 1766900,
"currency": "MXN",
"amount_refunded": 0,
"customer_info": {
"email": "[email protected]",
"phone": "5555555555",
"name": "Soporte Conekta",
"object": "customer_info"
},
"shipping_contact": {
"receiver": "Conekta",
"phone": "5555555555",
"address": {
"street1": "Street 1",
"city": "Ciudad de México",
"state": "Distrito Federal",
"residential": true,
"object": "shipping_address",
"postal_code": "06100"
},
"id": "ship_cont_2iUNX1yCXRKCVnEor",
"object": "shipping_contact",
"created_at": 1599496065
},
"object": "order",
"id": "ord_2iUN",
"metadata": {
"checkout_id": "100068588",
"soft_validations": true
},
"created_at": 1599496065,
"updated_at": 1599496065,
"line_items": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"name": "Soporte Conekta",
"description": "Payment from order",
"unit_price": 1766900,
"quantity": 1,
"sku": "6248_1",
"tags": [
"tag"
],
"object": "line_item",
"id": "line_item_2iUNX1yCXRKCVnEon",
"parent_id": "ord_2iCXRKCVnUNX1yEos",
"metadata": {},
"antifraud_info": {}
}]
},
"shipping_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"amount": 0,
"carrier": "reev_carrier_reev_carrier",
"method": "reev_carrier_reev_carrier",
"object": "shipping_line",
"id": "ship_lin_2iUNX1yCXRKCVnEoo",
"parent_id": "ord_2iUNX1yCXRKCVnEos"
}]
},
"tax_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"description": "Payment from order",
"amount": 0,
"object": "tax_line",
"id": "tax_lin_2iUNX1yCXRKCVnEop",
"parent_id": "ord_2iCXRKCVnUNX1yEos"
}]
}
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "order.created",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Order Pagado Tarjetas - order.paid
order.paid
{
"data": {
"object": {
"livemode": false,
"amount": 2944525,
"currency": "MXN",
"payment_status": "paid",
"amount_refunded": 0,
"customer_info": {
"email": "[email protected]",
"phone": "5555555555",
"name": "Soporte Conekta",
"object": "customer_info"
},
"shipping_contact": {
"receiver": "Soporte Conekta",
"phone": "5555555555",
"address": {
"street1": "Street 1",
"city": "Cuidad de mexico ",
"state": "Distrito Federal",
"residential": true,
"object": "shipping_address",
"postal_code": "06100"
},
"id": "ship_cont_2iUhePPDGgdmsptBE",
"object": "shipping_contact",
"created_at": 1599496065
},
"object": "order",
"id": "ord_2iUh",
"metadata": {
"checkout_id": "1100002080",
"soft_validations": true
},
"created_at": 1599496065,
"updated_at": 1599496065,
"line_items": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"name": "Soporte Conekta",
"description": "Escritorio Telik - Encino",
"unit_price": 619900,
"quantity": 5,
"sku": "6139_1",
"tags": [
"simple"
],
"object": "line_item",
"id": "line_item_2iUhyU3NmXSCaSV7p",
"parent_id": "ord_2iUhePPDGgdmsptBF",
"metadata": {},
"antifraud_info": {}
}]
},
"shipping_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"amount": 0,
"carrier": "reev_carrier_reev_carrier",
"method": "reev_carrier_reev_carrier",
"object": "shipping_line",
"id": "ship_lin_2iUhyU3NmXSCaSV7q",
"parent_id": "ord_2iUhePPDGgdmsptBF"
}]
},
"tax_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"description": "Payment from order",
"amount": 0,
"object": "tax_line",
"id": "tax_lin_2iUhyU3NmXSCaSV7r",
"parent_id": "ord_2iUhePPDGgdmsptBF"
}]
},
"discount_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"code": "Conekta",
"amount": 154975,
"type": "coupon",
"object": "discount_line",
"id": "dis_lin_2iUhyU3NmXSCaSV7s",
"parent_id": "ord_2iUhePPDGgdmsptBF"
}]
},
"charges": {
"object": "list",
"has_more": false,
"total": 2,
"data": [{
"id": "5ae34c95b795b071223e21a2",
"livemode": true,
"created_at": 1599496065,
"currency": "MXN",
"monthly_installments": 3,
"device_fingerprint": "11fenw1m2oq7waynewa1o1gg10k787v5",
"payment_method": {
"name": "Soporte Conekta",
"exp_month": "02",
"exp_year": "22",
"auth_code": "571003",
"object": "card_payment",
"type": "credit",
"last4": "5589",
"brand": "mc",
"issuer": "BANAMEX",
"account_type": "CLASICA",
"country": "MX",
"fraud_score": 33,
"fraud_indicators": []
},
"object": "charge",
"description": "Payment from order",
"status": "paid",
"amount": 2944525,
"paid_at": 1524845720,
"fee": 75145,
"customer_id": "",
"order_id": "ord_2iUh"
},
{
"id": "5ae346bbedbb6e2ed843c422",
"livemode": true,
"created_at": 1599496065,
"currency": "MXN",
"failure_code": null,
"failure_message": null,
"monthly_installments": 3,
"device_fingerprint": "3799848y56yvdw4dj2u4zxeaoenh6vyb",
"payment_method": {
"name": "Soporte Conekta",
"exp_month": "01",
"exp_year": "22",
"auth_code": "",
"object": "card_payment",
"type": "credit",
"last4": "4094",
"brand": "mc",
"issuer": "BANAMEX",
"account_type": "PLATINUM",
"country": "MX",
"fraud_score": 24,
"fraud_indicators": []
},
"object": "charge",
"description": "Payment from order",
"status": "declined",
"amount": 2944525,
"fee": 75145,
"customer_id": "",
"order_id": "ord_2iU"
}
]
}
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "order.paid",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Order Pagado Efectivo - order.paid
order.paid
{
"data": {
"object": {
"livemode": false,
"amount": 2944525,
"currency": "MXN",
"payment_status": "paid",
"amount_refunded": 0,
"customer_info": {
"email": "[email protected]",
"phone": "5555555555",
"name": "Soporte Conekta",
"object": "customer_info"
},
"shipping_contact": {
"receiver": "Soporte Conekta",
"phone": "5555555555",
"address": {
"street1": "Street 1",
"city": "Cuidad de mexico ",
"state": "Distrito Federal",
"residential": true,
"object": "shipping_address",
"postal_code": "06100"
},
"id": "ship_cont_2iUhePPDGgdmsptBE",
"object": "shipping_contact",
"created_at": 1599496065
},
"object": "order",
"id": "ord_2iUh",
"metadata": {
"checkout_id": "1100002080",
"soft_validations": true
},
"created_at": 1599496065,
"updated_at": 1599496065,
"line_items": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"name": "Soporte Conekta",
"description": "Escritorio Telik - Encino",
"unit_price": 619900,
"quantity": 5,
"sku": "6139_1",
"tags": [
"simple"
],
"object": "line_item",
"id": "line_item_2iUhyU3NmXSCaSV7p",
"parent_id": "ord_2iUhePPDGgdmsptBF",
"metadata": {},
"antifraud_info": {}
}]
},
"shipping_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"amount": 0,
"carrier": "reev_carrier_reev_carrier",
"method": "reev_carrier_reev_carrier",
"object": "shipping_line",
"id": "ship_lin_2iUhyU3NmXSCaSV7q",
"parent_id": "ord_2iUhePPDGgdmsptBF"
}]
},
"tax_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"description": "Payment from order",
"amount": 0,
"object": "tax_line",
"id": "tax_lin_2iUhyU3NmXSCaSV7r",
"parent_id": "ord_2iUhePPDGgdmsptBF"
}]
},
"discount_lines": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"code": "Conekta",
"amount": 154975,
"type": "coupon",
"object": "discount_line",
"id": "dis_lin_2iUhyU3NmXSCaSV7s",
"parent_id": "ord_2iUhePPDGgdmsptBF"
}]
},
"charges": {
"object": "list",
"has_more": false,
"total": 2,
"data": [{
"id": "5ae34c95b795b071223e21a2",
"livemode": true,
"created_at": 1599496065,
"currency": "MXN",
"monthly_installments": null,
"device_fingerprint": "11fenw1m2oq7waynewa1o1gg10k787v5",
"payment_method": {
"service_name": "OxxoPay",
"barcode_url": "https://s3.amazonaws.com/cash_payment_barcodes/93000024137521.png",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1602088065,
"store_name": "OXXO",
"reference": "93000024137521"
},
"object": "charge",
"description": "Payment from order",
"status": "paid",
"amount": 2944525,
"paid_at": 1524845720,
"fee": 75145,
"customer_id": "",
"order_id": "ord_2iUh"
},
{
"id": "5ae346bbedbb6e2ed843c422",
"livemode": true,
"created_at": 1599496065,
"currency": "MXN",
"failure_code": null,
"failure_message": null,
"monthly_installments": 3,
"device_fingerprint": "3799848y56yvdw4dj2u4zxeaoenh6vyb",
"payment_method": {
"name": "Soporte Conekta",
"exp_month": "01",
"exp_year": "22",
"auth_code": "",
"object": "card_payment",
"type": "credit",
"last4": "4094",
"brand": "mc",
"issuer": "BANAMEX",
"account_type": "PLATINUM",
"country": "MX",
"fraud_score": 24,
"fraud_indicators": []
},
"object": "charge",
"description": "Payment from order",
"status": "declined",
"amount": 2944525,
"fee": 75145,
"customer_id": "",
"order_id": "ord_2iU"
}
]
}
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "order.paid",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Order Contracargado - order.charged_back
order.charged_back
{
"data": {
"object": {
"livemode": true,
"amount": 85634,
"currency": "MXN",
"payment_status": "charged_back",
"amount_refunded": 0,
"customer_info": {
"email": "[email protected]",
"phone": "55-5555-5555",
"name": "Fulanito Pereze",
"object": "customer_info"
},
"object": "order",
"id": "ord_2sHW7iuYVauVnki3Z",
"created_at": 1659841219,
"updated_at": 1660315373,
"line_items": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"name": "Some product",
"unit_price": 85634,
"quantity": 1,
"object": "line_item",
"id": "line_item_2sHW7iuYVauVnki3V",
"parent_id": "ord_2sHW7iuYVauVnki3Z",
"metadata": {},
"antifraud_info": {}
}]
},
"charges": {
"object": "list",
"has_more": false,
"total": 1,
"data": [{
"id": "62ef2bad41de271dca089321",
"livemode": true,
"created_at": 1659841453,
"currency": "MXN",
"chargeback": {
"id": "chbk_2sKJB5iyJJiDa4CNe",
"status": "action_required",
"reason": "general",
"files": [],
"object": "chargeback",
"charge_id": "62ef2bad41de271dca089321",
"created_at": 1660315373,
"evidence_due_by": 1661644799
},
"payment_method": {
"name": "Fulanito Perez",
"exp_month": "05",
"exp_year": "30",
"auth_code": "424242",
"object": "card_payment",
"type": "credit",
"last4": "4242",
"brand": "visa",
"issuer": "bbva",
"account_type": "TJ DIGITAL CRED BANCARIO",
"country": "MX"
},
"object": "charge",
"description": "Payment from order",
"status": "charged_back",
"amount": 85634,
"paid_at": 1659841456,
"fee": 3726,
"customer_id": "cus_2sHW7iNVhqFSwUWDi",
"order_id": "ord_2sHW7iuYVauVnki3Z"
}]
}
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "order.paid",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Contracargo Creado - charge.chargeback.created
charge.chargeback.created
{
"data": {
"object": {
"id": "chbk_2sKJB5iyJJiDa4CNe",
"status": "action_required",
"reason": "general",
"files": [],
"object": "chargeback",
"charge_id": "62ef2bad41de271dca089321",
"created_at": 1660315373,
"order_id": "ord_2sHW7iuYVauVnki3Z",
"evidence_due_by": 1661644799
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "charge.chargeback.created",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Contracargo En Revision - charge.chargeback.under_review
charge.chargeback.under_review
{
"data": {
"object": {
"id": "chbk_2sKJB5iyJJiDa4CNe",
"status": "under_review",
"reason": "show_documents",
"note": "EL PAQUETE YA FUE ENVIADO Y RECIBIDO POR EL COMPRADOR COMO SE PUEDE VERIFICAR EN LA EVIDENCIA",
"files": [{
"id": "chbkf_2sKJB6KbG6Linm7e2",
"file_name": "2022081106726.pdf",
"url": "https://s3.amazonaws.com/conekta_user_files/56b050f1241229a37200628b/chargebacks/chbk_2sKJB5iyJJiDa4CNe/evidence/2022081106726.pdf",
"created_at": 1660315374
}],
"object": "chargeback",
"charge_id": "62ef2bad41de271dca089321",
"created_at": 1660315373,
"order_id": "ord_2sHW7iuYVauVnki3Z",
"evidence_due_by": 1661644799
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "charge.chargeback.under_review",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Contracargo Perdido - charge.chargeback.lost
charge.chargeback.lost
{
"data": {
"object": {
"id": "chbk_2sKJB5iyJJiDa4CNe",
"status": "lost",
"reason": "show_documents",
"note": "EL PAQUETE YA FUE ENVIADO Y RECIBIDO POR EL COMPRADOR COMO SE PUEDE VERIFICAR EN LA EVIDENCIA",
"files": [{
"id": "chbkf_2sKJB6KbG6Linm7e2",
"file_name": "2022081106726.pdf",
"url": "https://s3.amazonaws.com/conekta_user_files/56b050f1241229a37200628b/chargebacks/chbk_2sKJB5iyJJiDa4CNe/evidence/2022081106726.pdf",
"created_at": 1660315374
}],
"object": "chargeback",
"charge_id": "62ef2bad41de271dca089321",
"created_at": 1660315373,
"order_id": "ord_2sHW7iuYVauVnki3Z",
"evidence_due_by": 1661644799
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "charge.chargeback.lost",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Contracargo Ganado - charge.chargeback.won
charge.chargeback.won
{
"data": {
"object": {
"id": "chbk_2sKJB5iyJJiDa4CNe",
"status": "won",
"reason": "show_documents",
"note": "EL PAQUETE YA FUE ENVIADO Y RECIBIDO POR EL COMPRADOR COMO SE PUEDE VERIFICAR EN LA EVIDENCIA",
"files": [{
"id": "chbkf_2sKJB6KbG6Linm7e2",
"file_name": "2022081106726.pdf",
"url": "https://s3.amazonaws.com/conekta_user_files/56b050f1241229a37200628b/chargebacks/chbk_2sKJB5iyJJiDa4CNe/evidence/2022081106726.pdf",
"created_at": 1660315374
}],
"object": "chargeback",
"charge_id": "62ef2bad41de271dca089321",
"created_at": 1660315373,
"order_id": "ord_2sHW7iuYVauVnki3Z",
"evidence_due_by": 1661644799
},
"previous_attributes": {}
},
"livemode": false,
"webhook_status": "pending",
"id": "58740be5dba34d123c027a70",
"object": "event",
"type": "charge.chargeback.won",
"created_at": 1599496065,
"webhook_logs": [{
"id": "webhl_xtwgFC2EhrSTNKQ",
"url": "http://requestb.in/1467d141",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}]
}
Reembolso en efectivo creado - cash_refund.created
{
"object": {
"id":"63dd1adfaf43b2a604ce0d63",
"object":"cash_refund",
"amount":-10000,
"currency":"MXN",
"status":"pending",
"reason":"test",
"reference":"*****6789",
"payout_order_id":"ec22c58c-ad54-4123-a53d-d2bcc80649ca",
"created_at":1675434719
},
"previous_attributes":{}
}
Reembolso en efectivo reembolsado - cash_refund.refunded
{
"object":{
"id":"63dd1ccaaf43b2a9c0cde37a",
"object":"cash_refund",
"amount":10000,
"currency":"MXN",
"status":"refunded",
"reference":"************0832",
"payout_order_id":"4a199053-bf85-434e-a61b-77d6bbe01bfa",
"created_at":1675435210
},
"previous_attributes":{}
}
Reembolso en efectivo expirado - cash_refund.expired
{
"object":{
"id":"63dd1ccaaf43b2a9c0cde37a",
"object":"cash_refund",
"amount":10000,
"currency":"MXN",
"status":"expired",
"reference":"************0832",
"payout_order_id":"4a199053-bf85-434e-a61b-77d6bbe01bfa",
"created_at":1675435210
},
"previous_attributes":{}
}
Reembolso en efectivo cancelado - cash_refund.canceled
{
"object": {
"id":"63dd1ccaaf43b2a9c0cde37a",
"object":"cash_refund",
"amount":10000,
"currency":"MXN",
"status":"canceled",
"reference":"************0832",
"payout_order_id":"4a199053-bf85-434e-a61b-77d6bbe01bfa",
"created_at":1675435210
},
"previous_attributes": {}
}
Retiro en efectivo confirmado - cashout.confirmed
{
"object": {
"id": "payout_2tJFrR5iWkVqh6kY4",
"amount": 5000,
"currency": "MXN",
"payout_order_id": "7650bb15-ee34-4586-99ad-40e80f6258df",
"livemode": true,
"object": "payout",
"expires_at": 1675541827
},
"previous_attributes": {}
}
Retiro de efectivo cancelado - cashout.canceled
{
"object": {
"id": "payout_2tJbTDDgTshVifEKR",
"amount": 20000,
"currency": "MXN",
"payout_order_id": "f1b1c363-4482-4f9d-aabb-e818a0555ca2",
"livemode": true,
"object": "payout",
"expires_at": 1675631136
},
"previous_attributes": {}
}
Updated almost 2 years ago