Skip to content

Instantly share code, notes, and snippets.

@leofischer
Last active February 12, 2020 04:44
Show Gist options
  • Save leofischer/b78ad71e6e4c31fce1ca5ee8321a25a7 to your computer and use it in GitHub Desktop.
Save leofischer/b78ad71e6e4c31fce1ca5ee8321a25a7 to your computer and use it in GitHub Desktop.
Order Paid Events
{
"id": "5e437b5a82c2726a53401590",
"livemode": true,
"object": event",
"type": order.paid",
"created_at": 1581478229,
"data": {
"object": {
"id": "5ae34c95b795b071223e21a2",
"livemode": true,
"created_at": 1581349115,
"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"
},
"previous_attributes": { "status": "pending_payment" }
},
"webhook_status": "pending",
"webhook_logs": [
{
"id": "webhl_nPzGMBeQmMUu7aQ",
"url": "http://requestb.in/1em0jsx1",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}
]
}
{
"id": "5e437b5a82c2726a53401590",
"livemode": true,
"object": event",
"type": order.paid",
"created_at": 1581478229,
"data": {
"object": {
"id": "5ae34c95b795b071223e21a2",
"livemode": true,
"created_at": 1581349115,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1583941115,
"store_name": "OXXO",
"reference": "93345678901234"
},
"object": "charge",
"description": "Payment from order",
"status": "paid",
"amount": 2944525,
"paid_at": 1524845720,
"fee": 75145,
"order_id": "ord_2iUh"
},
"previous_attributes": {
"status": "pending_payment"
}
},
"webhook_status": "pending",
"webhook_logs": [
{
"id": "webhl_nPzGMBeQmMUu7aQ",
"url": "http://requestb.in/1em0jsx1",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}
]
}
{
"id": "5e437b5a82c2726a53401590",
"livemode": true,
"object": event",
"type": order.paid",
"created_at": 1581478229,
"data": {
"object": {
"id": "5ae34c95b795b071223e21a2",
"livemode": true,
"created_at": 1581349115,
"currency": "MXN",
"payment_method": {
"clabe": "646180111804935528",
"bank": "STP",
"issuing_account_tax_id": null,
"issuing_account_bank": null,
"issuing_account_number": null,
"receiving_account_tax_id": null,
"receiving_account_number": "646180111804935528",
"receiving_account_bank": "STP",
"reference_number": null,
"description": null,
"tracking_code": null,
"executed_at": null,
"payment_attempts": [
{
"status": "paid",
"failure_code": null,
"failure_message": null,
"issuing_account_number": "012010014016308812",
"issuing_account_bank": "40012",
"tracking_code": "BNET01001804090001908107",
"issuing_account_holder_name": "Vicente Mendoza Moreno",
"issuing_account_tax_id": "BAAE770808N6A",
"reference_number": "321",
"description": "PEDIDO 231",
"amount": 928,
"executed_at": 1522578270
}
],
"object": "bank_transfer_payment",
"type": "spei",
"expires_at": 1583020799,
"issuing_account_holder": null,
"receiving_account_holder": null
},
"object": "charge",
"description": "Payment from order",
"status": "paid",
"amount": 2944525,
"paid_at": 1524845720,
"fee": 75145,
"order_id": "ord_2iUh"
},
"previous_attributes": {
"status": "pending_payment"
}
},
"webhook_status": "pending",
"webhook_logs": [
{
"id": "webhl_nPzGMBeQmMUu7aQ",
"url": "http://requestb.in/1em0jsx1",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}
]
}
{
"id": "5e437b5a82c2726a53401590",
"livemode": true,
"object": event",
"type": order.paid",
"created_at": 1581478229,
"data": {
"object": {...},
"previous_attributes": {...}
},
"webhook_status": "pending",
"webhook_logs": [
{
"id": "webhl_nPzGMBeQmMUu7aQ",
"url": "http://requestb.in/1em0jsx1",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}
]
}
{
"id": "5e437b5a82c2726a53401593",
"livemode": true,
"object": "event",
"type": "order.paid",
"created_at": 1581478229,
"webhook_status": "pending",
"webhook_logs": [
{
"id": "webhl_nPzGMBeQmMUu7aQ",
"url": "http://requestb.in/1em0jsx1",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}
],
"data": {
"object": {
"livemode": true,
"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": 1581349115
},
"object": "order",
"id": "ord_2iUh",
"metadata": {
"checkout_id": "1100002080",
"soft_validations": true
},
"created_at": 1581349115,
"updated_at": 1581349115,
"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": 1581349115,
"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": 1581349115,
"currency": "MXN",
"failure_code": "card_declined",
"failure_message": "La tarjeta ingresada ha sido declinada. Por favor intenta con otro método de pago.",
"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": {}
}
}
{
"id": "5e437b5a82c2726a53401592",
"livemode": true,
"object": "event",
"type": "order.paid",
"created_at": 1581478229,
"webhook_status": "pending",
"webhook_logs": [
{
"id": "webhl_nPzGMBeQmMUu7aQ",
"url": "http://requestb.in/1em0jsx1",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}
],
"data": {
"object": {
"livemode": true,
"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": 1581349115
},
"object": "order",
"id": "ord_2iUh",
"metadata": {
"checkout_id": "1100002080",
"soft_validations": true
},
"created_at": 1581349115,
"updated_at": 1581349115,
"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": 1,
"data": [{
"id": "5ae34c95b795b071223e21a2",
"livemode": true,
"created_at": 1581349115,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1583941115,
"store_name": "OXXO",
"reference": "93345678901234"
},
"object": "charge",
"description": "Payment from order",
"status": "paid",
"amount": 2944525,
"paid_at": 1524845720,
"fee": 75145,
"order_id": "ord_2iUh"
}
]
}
},
"previous_attributes": {}
}
}
{
"id": "5e437b5a82c2726a53401591",
"livemode": true,
"object": "event",
"type": "order.paid",
"created_at": 1581478229,
"webhook_status": "pending",
"webhook_logs": [
{
"id": "webhl_nPzGMBeQmMUu7aQ",
"url": "http://requestb.in/1em0jsx1",
"failed_attempts": 0,
"last_http_response_status": -1,
"object": "webhook_log",
"last_attempted_at": 0
}
],
"data": {
"object": {
"livemode": true,
"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": 1581349115
},
"object": "order",
"id": "ord_2iUh",
"metadata": {
"checkout_id": "1100002080",
"soft_validations": true
},
"created_at": 1581349115,
"updated_at": 1581349115,
"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": 1,
"data": [{
"id": "5ae34c95b795b071223e21a2",
"livemode": true,
"created_at": 1581349115,
"currency": "MXN",
"payment_method": {
"clabe": "646180111804935528",
"bank": "STP",
"issuing_account_tax_id": null,
"issuing_account_bank": null,
"issuing_account_number": null,
"receiving_account_tax_id": null,
"receiving_account_number": "646180111804935528",
"receiving_account_bank": "STP",
"reference_number": null,
"description": null,
"tracking_code": null,
"executed_at": null,
"payment_attempts": [
{
"status": "paid",
"failure_code": null,
"failure_message": null,
"issuing_account_number": "012010014016308812",
"issuing_account_bank": "40012",
"tracking_code": "BNET01001804090001908107",
"issuing_account_holder_name": "Vicente Mendoza Moreno",
"issuing_account_tax_id": "BAAE770808N6A",
"reference_number": "321",
"description": "PEDIDO 231",
"amount": 928,
"executed_at": 1522578270
}
],
"object": "bank_transfer_payment",
"type": "spei",
"expires_at": 1583020799,
"issuing_account_holder": null,
"receiving_account_holder": null
},
"object": "charge",
"description": "Payment from order",
"status": "paid",
"amount": 2944525,
"paid_at": 1524845720,
"fee": 75145,
"order_id": "ord_2iUh"
}
]
}
},
"previous_attributes": {}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment