Webhook events

Payload objects

The objects webhook event payloads are built from, field by field.

Each event's data is built from these. A field whose type links here holds that object.

Money

FieldTypePresenceDescription
amountintegeralwaysAmount in the currency minor unit; see minorUnitExponent
currencystringalwaysMatches ^[A-Z]{3}$.

PositiveMoney

FieldTypePresenceDescription
amountintegeralwaysAmount in the currency minor unit; see minorUnitExponent
currencystringalwaysMatches ^[A-Z]{3}$.

SignedMoney

FieldTypePresenceDescription
amountintegeralwaysSigned minor units; the sign is the direction of the movement
currencystringalwaysMatches ^[A-Z]{3}$.

BalanceImpact

FieldTypePresenceDescription
deltaSignedMoneyalwaysThe one signed amount on this wire: a movement has a direction, a price has none.
effectiveAtstring · RFC 3339 UTCalwaysWhen it lands on the payable, which is not always occurredAt.
payoutIdstringalways, may be nullThe payout that settles it; null until one is scheduled.

Address

FieldTypePresenceDescription
line1stringalways, may be null
line2stringalways, may be null
citystringalways, may be null
statestringalways, may be null
postalCodestringalways, may be null
countrystringalways, may be nullMatches ^[A-Z]{2}$.

Customer

FieldTypePresenceDescription
idstringalways
emailstring · e-mailalways, may be null
namestringalways, may be null
companyNamestringalways, may be null
taxNumberstringalways, may be null
taxNumberTypestringalways, may be null
addressAddressalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null
usernamestringalways, may be null
referencestringalways, may be null
typeenumalways, may be nullWhether the buyer bought as a person or a company; companyName alone cannot say which. One of individual, company.
firstNamestringalways, may be null
lastNamestringalways, may be null
phoneDialCodestringalways, may be null
phoneNumberstringalways, may be null

Order

FieldTypePresenceDescription
idstringalways
numberstringalways
statusenumalwaysOne of created, pending, paid, failed, refunded, partially_refunded, cancelled.
totalMoneyalways
subtotalMoneyalways, may be null
taxMoneyalways, may be null
feeMoneyalways, may be null
discountMoneyalways, may be null
discountCodestringalways, may be nullThe coupon this order was priced with — the merchant's own artefact, filtered per order.
taxBreakdownTaxBreakdownEntry[]always, may be nullPer (jurisdiction, rate, behaviour); Σ tax == tax. Null where none was computed.
reverseChargebooleanalways, may be null
totalItemsintegeralways, may be null
countrystringalways, may be nullMatches ^[A-Z]{2}$.
checkoutIdstringalways, may be null
subscriptionIdstringalways, may be null
lastPaymentIdstringalways, may be null
lastPaymentNumberstringalways, may be null
invoiceNumberstringalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null

OrderLine

FieldTypePresenceDescription
idstringalways, may be null
productIdstringalways
priceIdstringalways, may be null
quantityintegeralways
unitPriceMoneyalways, may be null
listTotalMoneyalways
netMoneyalways, may be null
taxMoneyalways, may be null
grossMoneyalways, may be null
taxRatePercentstringalways, may be nullThe rate this line was taxed at; tax / net where one rate priced it. Matches ^\d{1,3}(?:\.\d{1,4})?$.
taxBehaviorenumalways, may be nullOne of inclusive, exclusive.
taxTypestringalways, may be null
discountMoneyalways, may be nullA non-negative magnitude already subtracted from the line's tax base, never after tax.
namestringalways, may be null
variantstringalways, may be null
variantReferencestringalways, may be null
productReferencestringalways, may be null
priceReferencestringalways, may be null
planstringalways, may be null
productTypestringalways, may be null
customFieldsobject · free-form keysalways, may be nullThe buyer's answers to the merchant's own checkout fields, as the merchant labelled them. Merchant-authored keys, so no schema can name them; values are carried verbatim, within the checkout's own input bounds: one resolved form per line, a field key, an answer.

Payment

FieldTypePresenceDescription
idstringalways
numberstringalways, may be null
statusenumalways, may be nullOne of created, pending, paid, failed, refunded, partially_refunded, cancelled.
typeenumalways, may be nullOne of one_time, subscription_initial, subscription_update, subscription_interval, subscription_extra, claim_free.
amountMoneyalwaysThe amount charged, gross of tax: the PSP's own amount. tax is the whole tax inside it.
taxMoneyalways, may be null
feeMoneyalways, may be null
discountMoneyalways, may be null
orderIdstringalways, may be null
orderNumberstringalways, may be null
subscriptionIdstringalways, may be null
checkoutIdstringalways, may be null
discountCodestringalways, may be null
invoiceNumberstringalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null
couponobjectalways, may be nullThe discount the charged cart was priced with, whole; discount is only what it took off.

Subscription

FieldTypePresenceDescription
idstringalways
orderIdstringalways, may be null
orderNumberstringalways, may be null
orderStatusenumalways, may be nullOne of created, pending, paid, failed, refunded, partially_refunded, cancelled.
statusenumalwaysOne of trialing, active, past_due, paused, cancelled, expired, incomplete, unpaid.
productIdstringalways, may be null
priceIdstringalways, may be null
amountMoneyalways, may be null
currentPeriodStartstring · RFC 3339 UTCalways, may be null
currentPeriodEndstring · RFC 3339 UTCalways, may be null
cancelAtPeriodEndbooleanalways
cancelledAtstring · RFC 3339 UTCalways, may be null
trialStartstring · RFC 3339 UTCalways, may be null
trialEndstring · RFC 3339 UTCalways, may be null
lastPaymentIdstringalways, may be null
lastPaymentNumberstringalways, may be null
invoiceNumberstringalways, may be nullThe MoR document for the cycle that last settled; the same reference the order carries.
createdAtstring · RFC 3339 UTCalways, may be null

Dispute

FieldTypePresenceDescription
idstringalways
amountPositiveMoneyalways
statusenumalwaysOne of needs_response, under_review, won, lost, closed.
kindenumalwaysOne of chargeback, inquiry, retrieval, fraud_warning.
reasonstringalways, may be null
networkReasonCodestringalways, may be null
feeMoneyalways, may be null
orderIdstringalways, may be null
paymentIdstringalways, may be null
customerIdstringalways, may be null
evidenceDueAtstring · RFC 3339 UTCalways, may be null
evidenceSubmittedAtstring · RFC 3339 UTCalways, may be null
closedAtstring · RFC 3339 UTCalways, may be null
updatedAtstring · RFC 3339 UTCalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null

Payout

FieldTypePresenceDescription
idstringalways
statusenumalwaysOne of scheduled, paid, failed.
grossMoneyalways
feeMoneyalways
refundMoneyalways
netMoneyalways
periodStartstring · RFC 3339 UTCalways, may be nullThe order date range this payout settles, which is how a merchant matches it to sales.
periodEndstring · RFC 3339 UTCalways, may be null
arrivalAtstring · RFC 3339 UTCalways, may be nullWhen the funds are expected to land, or landed.
failureCodestringalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null
disputeobjectalways, may be null

Refund

FieldTypePresenceDescription
idstringalways
amountPositiveMoneyalways
cumulativeMoneyalwaysEverything refunded against this order so far, this refund included.
netMoneyalways, may be null
taxMoneyalways, may be null
taxBreakdownTaxBreakdownEntry[]always, may be nullPer (jurisdiction, rate, behaviour); Σ tax == refund.tax. A VAT return is filed on it.
reasonstringalways, may be null
statusenumalwaysOne of pending, succeeded, failed.
failureCodestringalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null

Fulfilment

What Fungies delivers on an order: only the lines it delivers, never one the merchant ships.

FieldTypePresenceDescription
linesFulfilmentLine[]always

FulfilmentLine

FieldTypePresenceDescription
offerIdstringalways
quantityintegeralways
stateenumalwaysOne of active, owed, suspended, revoked.
keyIdsstring[]always

Checkout

FieldTypePresenceDescription
idstringalways
statusenumalwaysOne of created, details, pricing, intent_created, action_required, mandate, paid, failed, expired, cancelled.
subtotalMoneyalways, may be null
taxMoneyalways, may be null
discountMoneyalways, may be null
totalMoneyalways, may be null
taxCountrystringalways, may be nullMatches ^[A-Z]{2}$.
orderIdstringalways, may be null
totalItemsintegeralways, may be null
pricedAtstring · RFC 3339 UTCalways, may be null
completedAtstring · RFC 3339 UTCalways, may be null
expiresAtstring · RFC 3339 UTCalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null

CheckoutPause

FieldTypePresenceDescription
idstringalways
reasonenumalwaysOne of decline_brake.
pausedAtstring · RFC 3339 UTCalways
resumesAtstring · RFC 3339 UTCalwaysWhen every attempt the pause counted has left the window: treat it as the lift. Checkouts are admitted from then on (or earlier if the ratio falls back), and checkout_resumed is written only at the first one, so it can arrive long after.
resumedAtstring · RFC 3339 UTCalways, may be nullNull until the pause ends.
resumeReasonenumalways, may be nullOne of declines_aged_out, operator_cleared.
declineCountintegeralways, may be nullThe issuer declines, insufficient funds and suspected fraud in the window at the pause; null on the resume, which reads no window.
attemptCountintegeralways, may be nullEvery settled attempt in the window at the pause, the ratio's denominator; null on the resume.
windowSecondsintegeralways

Workspace

FieldTypePresenceDescription
idstringalways
slugstringalways
namestringalways
statusenumalways, may be nullOne of pending_activation, active, rejected, banned, archived.

WebhookEndpoint

FieldTypePresenceDescription
idstringalwaysMatches ^whe_[0-9A-HJKMNP-TV-Z]{26}$.
urlstring · URLalways
statusenumalwaysOne of active, disabled.
enabledbooleanalways
apiVersionstringalwaysMatches ^(v1|\d{4}-\d{2}-\d{2})$.
descriptionstringalways, may be null
consecutiveFailuresintegeralways
disabledReasonenumalways, may be nullOne of consecutive_failures, staff_action.
disabledAtstring · RFC 3339 UTCalways, may be null
createdAtstring · RFC 3339 UTCalways, may be null

TaxBreakdownEntry

FieldTypePresenceDescription
countrystringalwaysMatches ^[A-Z]{2}$.
regionstringalways, may be null
taxTypestringalways, may be null
taxRatePercentstringalwaysMatches ^\d{1,3}(?:\.\d{1,4})?$.
taxBehaviorenumalwaysOne of inclusive, exclusive.
taxableMoneyalways
taxMoneyalways