Skip to content

feat!: add prepayments webhook endpoint and schema - #838

Merged
the-chris-mitchell merged 4 commits into
XeroAPI:masterfrom
MikeLiuty:ecoam-5825-add-new-prepayment-webhook
Aug 12, 2026
Merged

feat!: add prepayments webhook endpoint and schema#838
the-chris-mitchell merged 4 commits into
XeroAPI:masterfrom
MikeLiuty:ecoam-5825-add-new-prepayment-webhook

Conversation

@MikeLiuty

Copy link
Copy Markdown
Contributor

Description

Adds the Prepayments webhook to xero-webhooks.yaml, including the PREPAYMENT event category, PrepaymentWebhookEvent schema, and a create-event example aligned with the Credit Notes webhook pattern.

Changes
New webhooks/prepayments endpoint (publishPrepaymentEvent)
PrepaymentWebhookEvent with data.Type, data.Status, and data.UpdatedDateUTCString
PREPAYMENT added to eventCategory enum

https://xero.atlassian.net/browse/ECOAM-5825

Tianyang Liu and others added 4 commits August 13, 2026 10:55
BREAKING CHANGE: adds PREPAYMENT as a new eventCategory oneOf value in
xero-webhooks.yaml. Existing strict schema validators may reject this
new enum value in webhook payloads; this is expected since subscribers
must explicitly opt in to prepayment events.
…bhook' into ecoam-5825-add-new-prepayment-webhook
@the-chris-mitchell
the-chris-mitchell merged commit 12454e4 into XeroAPI:master Aug 12, 2026
5 checks passed
@xero-public-bot

Copy link
Copy Markdown

🎉 This PR is included in version 17.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants