Skip to content

feat: add prepayments webhook endpoint and schema - #824

Open
MikeLiuty wants to merge 11 commits into
XeroAPI:masterfrom
MikeLiuty:ecoam-5825-add-prepayment-webhook
Open

feat: add prepayments webhook endpoint and schema#824
MikeLiuty wants to merge 11 commits into
XeroAPI:masterfrom
MikeLiuty:ecoam-5825-add-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

@MikeLiuty
MikeLiuty marked this pull request as ready for review August 11, 2026 22:42
Tianyang Liu and others added 6 commits August 13, 2026 10:04
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.
…ce payments

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.
…ce payments

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.
…ce payments

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.
@ryanNexus
ryanNexus enabled auto-merge September 3, 2026 22:08

@ryanNexus ryanNexus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@ryanNexus

Copy link
Copy Markdown
Contributor

no file diff shown after merging main but will merge in anyway

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants