Name of the event received.
Order Webhook Events
Listen to order events to keep your integration always synchronized.
Webhooks are the safest and most reliable way to stay updated in real time. Your application receives a notification whenever the status of an order changes.
When an order has items from more than one business, each business receives its own notification, and items contains only the items of that business. The totals (valueInCents, taxInCents, netValueInCents) and payments are of the whole order in every notification.
Order Events
- order.created — Order created.
- order.updated — Order updated.
- order.paid — Order fully paid.
- order.partiallyPaid — Order partially paid.
- order.canceled — Order canceled.
- order.refunded — Order refunded.
- order.chargeback — Order chargeback received.
Events
order.createdorder.updatedorder.paidorder.partiallyPaidorder.canceledorder.refundedorder.chargeback
Easyflow sends an HTTP request with this payload to the URL registered for your webhook.
Payloadrequired
Webhook payload received by your server in the event of an event.
Content typeapplication/jsonobject
eventstringoccurredAtstring · date-timeDate and time when the notification was sent, in UTC.
payloadobjectComplete event data.
Show child attributesHide child attributes
idstring · uuidcreatedAtstring · date-timeupdatedAtstring · date-timestatusstringpaidAtstring · date-timenullableDate and time when the order was paid.
valueInCentsintegerSum of the unit value times the quantity of every item of the whole order, including the items of other businesses that are not in
items.taxInCentsintegerSum of the
taxInCentsof every commission of the whole order, of all the businesses that receive a part of it, not only of the business of this notification.netValueInCentsintegerSum of the
netValueInCentsof every commission of the whole order, of all the businesses that receive a part of it, not only of the business of this notification.shippingobjectShow child attributesHide child attributes
valueInCentsinteger
metadataarray of objectsKey and value pairs saved with the order. Empty when the order has no metadata.
Show child attributesHide child attributes
keystringvaluestring
buyerobjectShow child attributesHide child attributes
namestringemailstringdocumentobjectShow child attributesHide child attributes
typestringnumberstring
phoneobjectShow child attributesHide child attributes
dddstringnumberstringareaCodestringisMobileboolean
addressobjectShow child attributesHide child attributes
streetstringneighborhoodstringnumberstringcitystringstatestringzipCodestringcomplementstring
deliveryAddressobjectShow child attributesHide child attributes
streetstringneighborhoodstringnumberstringcitystringstatestringzipCodestringcomplementstring
businessobjectBusiness that receives this notification.
Show child attributesHide child attributes
idstringnamestring
couponobjectShow child attributesHide child attributes
codestringnullablediscountobjectnullableShow child attributesHide child attributes
percentagenumbervalueInCentsinteger
discountedValueInCentsinteger
itemsarray of objectsShow child attributesHide child attributes
idstringnamestringdescriptionstringvalueInCentsintegerUnit value of the item.
amountintegerQuantity of the item.
productobjectShow child attributesHide child attributes
idstringnamestring
offerobjectShow child attributesHide child attributes
idstringnamestring
paymentLinkobjectShow child attributesHide child attributes
idstringnamestring
participantsarray of objectsShow child attributesHide child attributes
businessobjectShow child attributesHide child attributes
idstringnamestring
paymentsarray of objectsPayments of the order. In order events,
pix,bankBilletandcreditCardalways come as objects, also for the methods that the payment did not use. The object of a method that was not used comes with all its fieldsnull.Show child attributesHide child attributes
idstringpaymentMethodstringPayment method, such as
credit-card,pixorbank-billet.statusstringvalueInCentsintegervaluePaidInCentsintegerfineValueInCentsintegerinterestValueInCentsintegerinstallmentsintegerpixobjectnullableShow child attributesHide child attributes
copyAndPasteCodestringnullableqrCodestringnullableexpireAtstring · date-timenullable
bankBilletobjectnullableShow child attributesHide child attributes
expireAtstring · date-timenullablebarCodestringnullablelinkstringnullablelinestringnullable
creditCardobjectnullableShow child attributesHide child attributes
last4NumbersstringflagstringexpiresAtYearintegerexpiresAtMonthintegerholderNamestringnicknamestring
refuseobjectnullableReason why the payment was refused.
Show child attributesHide child attributes
rawDescriptionstringtypestringnullable