order

Eventos relacionados con ordenes.

EventoDescripción
order.createdOcurre cada vez que se crea una orden
order.canceledOcurre cada vez que una orden es cancelada
order.expiredOcurre cada vez que la fecha de pago de una orden expira
order.paidOcurre cada vez que una una orden es pagada exitosamente
order.pending_paymentOcurre cada vez que una orden es creada pero continua pendiente de pago
order.refundedOcurre cada vez que el pago de una orden es reembolsado completamente
order.updatedOcurre cada vez que una orden se actualiza

Orden Creada - order.created

{
  "data": {
      "object": {
        "livemode": false,
        "amount": 1766900,
        "currency": "MXN",
        "amount_refunded": 0,
        "customer_info": {
            "email": "[email protected]",
            "phone": "5555555555",
            "name": "Soporte",
            "object": "customer_info"
        },
        "shipping_contact": {
            "receiver": "Oxxo Pay",
            "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",
                "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": {}
            }]
        },
        "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
  }]
}

Orden Cancelada - order.canceled

{
"data": {
	"object": {
		"livemode": true,
		"amount": 1199,
		"currency": "MXN",
		"payment_status": "canceled",
		"amount_refunded": 0,
		"customer_info": {
			"name": "Fulano Perez",
			"email": "[email protected]",
		"phone": "55-5555-5555",
			"corporate": false,
			"object": "customer_info"
		},
		"object": "order",
		"id": "ord_2suUToAY6LxC6bMUu",
		"metadata": {
		},
		"created_at": 1669347936,
		"updated_at": 1669762395,
		"line_items": {
			"object": "list",
			"has_more": false,
			"total": 1,
			"data": [
				{
					"name": "Algun producto",
					"unit_price": 1199,
					"quantity": 1,
					"object": "line_item",
					"id": "line_item_2suUToAY6LxC6bMUs",
					"parent_id": "ord_2suUToAY6LxC6bMUu",
					"metadata": {
					},
				}
			]
		},
		"charges": {
			"object": "list",
			"has_more": false,
			"total": 1,
			"data": [
				{
					"id": "63803a6090ee5300156433e8",
					"livemode": true,
					"created_at": 1669347936,
					"currency": "MXN",
					"payment_method": {
						"service_name": "OxxoPay",
						"barcode_url": "https://barcodes.digitlfemsa.io/91e26fe5ccf6e20ca704b1eb122f935c083e2087.png",
						"object": "cash_payment",
						"type": "oxxo",
						"expires_at": 1677123936,
						"store_name": "OXXO",
						"reference": "8900000236354472"
					},
					"object": "charge",
					"description": "Payment from order",
					"status": "canceled",
					"amount": 1199,
					"fee": 42,
					"customer_id": "",
					"order_id": "ord_2suUToAY6LxC6bMUu"
				}
			]
		}
	},
	"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": "637306fb5eeaad00015eeb6f",
  "object": "event",
  "type": "order.canceled",
  "created_at": 1668482811
}


Orden Expirada - order.expired

{
"data": {
  "object": {
        "livemode": true,
        "amount": 3000,
        "currency": "MXN",
        "payment_status": "expired",
        "amount_refunded": 0,
        "customer_info": {
            "email": "[email protected]",
            "phone": "5555555555",
            "name": "Nombre Cliente",
            "corporate": false,
            "customer_id": "cus_2vhojgKKLtrDjJdWF",
            "object": "customer_info"
        },
        "channel": {
            "segment": "Checkout",
            "checkout_request_id": "9f521645-7539-4c09-a66c-b2bcf8783d80",
            "checkout_request_type": "PaymentLink",
            "id": "channel_2vnRTQwKh17KBrEFA"
        },
        "object": "order",
        "id": "ord_2vnRTQwKh17KBrEFC",
        "metadata": {},
        "is_refundable": false,
        "created_at": 1713469798,
        "updated_at": 1713901501,
        "line_items": {
            "object": "list",
            "has_more": false,
            "total": 1,
            "data": [
                {
                    "name": "Prueba Oxxo",
                    "unit_price": 3000,
                    "quantity": 1,
                    "object": "line_item",
                    "id": "line_item_2vnRTQwKh17KBrEF9",
                    "parent_id": "ord_2vnRTQwKh17KBrEFC",
                    "metadata": {},
                    "antifraud_info": {}
                }
            ]
        },
        "charges": {
            "object": "list",
            "has_more": false,
            "total": 1,
            "data": [
                {
                    "id": "662179664c96150019dc4916",
                    "livemode": true,
                    "created_at": 1713469798,
                    "currency": "MXN",
                    "channel": {
                        "segment": "Checkout",
                        "checkout_request_id": "9f521645-7539-4c09-a66c-b2bcf8783d80",
                        "checkout_request_type": "PaymentLink",
                        "id": "channel_2vnRTRg9DCfxp7tjn"
                    },
                    "payment_method": {
                        "service_name": "OxxoPay",
                        "barcode_url": "https://barcodes.conekta.com/167fdd2b06dfcc47dd5d35e097b01054b1f172ae.png",
                        "object": "cash_payment",
                        "type": "oxxo",
                        "expires_at": 1713901380,
                        "store_name": "OXXO",
                        "reference": "93004033931718"
                    },
                    "object": "charge",
                    "description": "Payment from order",
                    "status": "expired",
                    "amount": 3000,
                    "fee": 122,
                    "customer_id": "",
                    "order_id": "ord_2vnRTQwKh17KBrEFC"
                }
            ]
        }
    },
    "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": "637306fb5eeaad00015eeb6f",
	"object": "event",
	"type": "order.charged_back",
	"created_at": 1668482811
}

Order Pagado Efectivo - order.paid

{
"data": {
"object": {
			"livemode": true,
			"amount": 24100,
			"currency": "MXN",
			"payment_status": "paid",
			"amount_refunded": 0,
			"customer_info": {
			"name": "Fulano Perez",
			"email": "[email protected]",
		"phone": "55-5555-5555",
				"corporate": false,
				"customer_id": "cus_2sma5Lof4SvQ6A1HS",
				"object": "customer_info",
				"customer_custom_reference": "10003000833587004108"
			},
			"object": "order",
			"id": "ord_2srCZabn48Hvg8ZEf",
			"metadata": {},
			"created_at": 1668482630,
			"updated_at": 1668482811,
			"charges": {
				"object": "list",
				"has_more": false,
				"total": 1,
				"data": [
					{
						"id": "637306465e3f4600211f68c0",
						"livemode": true,
						"created_at": 1668482630,
						"currency": "MXN",
						"payment_method": {
							"service_name": "OxxoPay",
							"barcode_url": "https://barcodes.digitalfemsa.io/f0852dd9761c222ca59a30af8e626b310e409173.png",
							"store": "10QRI50NPO",
							"auth_code": 27438215,
							"object": "cash_payment",
							"type": "oxxo",
							"expires_at": 1671062400,
							"store_name": "OXXO",
							"reference": "93003176736017",
							"cashier_id": "NOUSUARIO"
						},
						"object": "charge",
						"status": "paid",
						"amount": 24100,
						"paid_at": 1668482811,
						"fee": 1090,
						"customer_id": "cus_2sma5Lof4SvQ6A1HS",
						"order_id": "ord_2srCZabn48Hvg8ZEf",
						"customer_custom_reference": "10003000833587004108"
					}
				]
			}
		},
		"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": "637306fb5eeaad00015eeb6f",
	"object": "event",
	"type": "order.paid",
	"created_at": 1668482811
}

Orden parcialmente reembolsado - order.partially_refunded

			"amount": 118000,
					"paid_at": 1669674468,
					"fee": 4260,
					"customer_id": "",
					"order_id": "ord_2svi86NmhDmT6vrW8",
					"refunds": {
						"object": "list",
						"has_more": false,
						"total": 1,
						"data": [
							{
								"object": "refund",
								"amount": -55000,
								"auth_code": "072328",
								"id": "6386abcce37dd70018b23647",
								"created_at": 1669770188
							}
						]
					}
				}
			]
		}
	},
	"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": "637306fb5eeaad00015eeb6f",
	"object": "event",
	"type": "order.partially_refunded",
	"created_at": 1668482811
}

Orden pago pendiente - order.pending_payment

{
"data": {
	"object": {
		"livemode": true,
		"amount": 67000,
		"currency": "MXN",
		"payment_status": "pending_confirmation",
		"amount_refunded": 0,
		"customer_info": {
			"name": "Fulano Perez",
			"email": "[email protected]",
		"phone": "55-5555-5555",
			"corporate": false,
			"customer_id": "cus_2srNvjg4uczVJpZQN",
			"object": "customer_info"
		},
		"object": "order",
		"id": "ord_2srNvj6poHGuJpsWD",
		"metadata": {
		},
		"created_at": 1668529858,
		"updated_at": 1669762432,
		"line_items": {
			"object": "list",
			"has_more": false,
			"total": 1,
			"data": [
				{
					"name": "Ok Item",
					"unit_price": 67000,
					"quantity": 1,
					"object": "line_item",
					"id": "line_item_2srNvj6poHGuJpsWB",
					"parent_id": "ord_2srNvj6poHGuJpsWD",
					"metadata": {
					}
				}
			]
		},
		"charges": {
			"object": "list",
			"has_more": false,
			"total": 1,
			"data": [
				{
					"id": "6373bec20b2dcc0025969554",
					"livemode": true,
					"created_at": 1668529858,
					"currency": "MXN",
					"device_fingerprint": "NG87ZAXzC3xrwSGjKQbZBF2W4oztuiJe",
					"payment_method": {
						"service_name": "OxxoPay",
						"barcode_url": "https://barcodes.digitalfemsa.io/447afa9afb113c9be0b1443c3cd9425d9959281c.png",
						"store": "10CAN50KMO",
						"auth_code": 18027602,
						"object": "cash_payment",
						"type": "oxxo",
						"expires_at": 1671062400,
						"store_name": "OXXO",
						"reference": "84003209981342",
						"cashier_id": "PEIBOY9711120"
					},
					"object": "charge",
					"description": "Payment from order",
					"status": "pending_confirmation",
					"amount": 67000,
					"fee": 2784,
					"customer_id": "",
					"order_id": "ord_2srNvj6poHGuJpsWD"
				}
			]
		}
	},
	"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": "637306fb5eeaad00015eeb6f",
	"object": "event",
	"type": "order.pending_payment",
	"created_at": 1668482811
}

Orden Actualizada - order.updated

{
"data": {
	"object": {
		"livemode": true,
		"amount": 51000,
		"currency": "MXN",
		"amount_refunded": 0,
		"customer_info": {
			"name": "Fulano Perez",
			"email": "[email protected]",
		"phone": "55-5555-5555",
			"object": "customer_info"
		},
		"object": "order",
		"id": "ord_2sw3ND52Q9RqxdWKo",
		"metadata": {
			"reference_id": 636026
		},
		"created_at": 1669762151,
		"updated_at": 1669762621,
		"line_items": {
			"object": "list",
			"has_more": false,
			"total": 2,
			"data": [
				{
					"name": "SIM Card",
					"unit_price": 3000,
					"quantity": 1,
					"sku": "SIMCARD",
					"object": "line_item",
					"id": "line_item_2sw3UCDRjKDiwpocw",
					"parent_id": "ord_2sw3ND52Q9RqxdWKo",
					"antifraud_info": {
					}
				}
			]
		},
		"charges": {
			"object": "list",
			"has_more": false,
			"total": 2,
			"data": [
				{
					"id": "63868d323d90df0017e81598",
					"livemode": true,
					"created_at": 1669762354,
					"currency": "MXN",
					"device_fingerprint": "it97fo1h64cnri9p0qiuejeuxn00uam5",
					"payment_method": {
						"service_name": "OxxoPay",
						"barcode_url": "https://barcodes.digitalfemsa.io/447afa9afb113c9be0b1443c3cd9425d9959281c.png",
						"store": "10CAN50KMO",
						"auth_code": 18027602,
						"object": "cash_payment",
						"type": "oxxo",
						"expires_at": 1671062400,
						"store_name": "OXXO",
						"reference": "84003209981342",
						"cashier_id": "PEIBOY9711120"
					},
					"object": "charge",
					"description": "Payment from order",
					"status": "pending",
					"amount": 51000,
					"fee": 2006,
					"customer_id": "",
					"order_id": "ord_2sw3ND52Q9RqxdWKo"
				}
			]
		}
	},
	"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": "637306fb5eeaad00015eeb6f",
	"object": "event",
	"type": "order.updated",
	"created_at": 1668482811
}