Skip to content

feat: add prepayments webhook endpoint and schema - #824

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

feat: add prepayments webhook endpoint and schema#824
MikeLiuty wants to merge 8 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 added 5 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.
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.

1 participant