Name of the event received.
Commission Webhook Events
Listen to commission events to follow the part of each payment that goes to each business.
Each commission belongs to one business, in receiver, and that business receives the notification.
Commission Events
- commission.created — Commission created for a payment.
- commission.updated — Commission updated, such as a change of its
status. - commission.released — Commission released to the business, after the settlement of the installment. Its
statusisreleasedwhen the installment was fully settled, orpartialy-releasedwhen only part of it was settled so far. A commission that ispartialy-releasedcan be released again later, with a newcommission.released.
In commission.released, orderItem and recurrence are not sent. Use payment.id to find the order or the recurrence of the commission.
Commissions of a subscription
Every recurrence of a subscription has its own payment and its own commissions, so commission.released is sent for every recurrence.
installmentis the installment of the card payment, not the number of the recurrence. From the second recurrence on, each recurrence is charged in a single installment, so it is1.- To find the recurrence of a commission, match
payment.idwithpayments[].idof the recurrence events. The number of the recurrence isrecurrencein those events.
Events
commission.createdcommission.updatedcommission.released
Easyflow sends an HTTP request with this payload to the URL registered for your webhook.
Payloadrequired
Webhook payload with the data of the commission.
Content typeapplication/jsonobject
eventstringoccurredAtstring · date-timeDate and time when the notification was sent, in UTC.
payloadobjectData of the commission at the moment of the event. An object that is not available is absent.
Show child attributesHide child attributes
idstring · uuidCommission ID.
receiverobjectBusiness that receives the commission.
Show child attributesHide child attributes
idstring · uuidnamestring
receiverRolestringRole of the business in the sale.
statusstringStatus of the commission.
grossValueInCentsintegerGross value of the commission, in cents.
netValueInCentsintegerNet value of the commission, in cents.
taxInCentsintegerFees of the commission, in cents.
interestValueInCentsintegerInterest of the installments in the commission, in cents.
installmentintegerInstallment of the card payment that the commission refers to. It is not the number of the recurrence of a subscription.
settlementDatestringExpected settlement date of the installment.
paymentobjectPayment of the commission. Use
idto link the commission to an order payment or to a recurrence.Show child attributesHide child attributes
idstring · uuidPayment ID. In a subscription, it is equal to one of the
payments[].idof the recurrence.externalIdstringstatusstringpaymentMethodstringvalueInCentsintegervaluePaidInCentsintegerinstallmentsintegermethodReferenceCodestringdescriptionstringproviderstring
orderItemobjectOrder item of the commission, when it comes from an order. Not sent in
commission.released.Show child attributesHide child attributes
idstring · uuidorderIdstring · uuidexternalReferenceIdstringorderItemTypestringnamestringquantityintegerunitValueInCentsinteger
recurrenceobjectRecurrence of the commission, when it comes from a subscription. Not sent in
commission.released.Show child attributesHide child attributes
idstring · uuidsubscriptionIdstring · uuidrecurrenceintegerstatusstringbillingDatestring · date-timedueDatestring · date-timerecurrenceValueInCentsinteger
planDetailsobjectShow child attributesHide child attributes
planNamestringdescriptionstring
releasedAtstring · date-timeWhen the commission was released. Set in
commission.released.releasedRatioPercentagenumberPercentage of the value of the installment that was settled. Sent in
commission.releasedwhen Easyflow knows the original value of the installment.installmentFeesobjectFees of the installment, in cents. Absent when they are not available.
Show child attributesHide child attributes
mdrInCentsintegerfixedFeeInCentsintegeranticipationInCentsintegerotherFeesInCentsintegertotalFeesInCentsintegersellerAbsorbedInterestInCentsintegerinstallmentPaidByBuyerInCentsintegernullable
createdAtstring · date-timeupdatedAtstring · date-time