Skip to content

feat!: add payments webhook endpoint and schema - #851

Open
gcxero wants to merge 2 commits into
XeroAPI:masterfrom
gcxero:ECOAM-6030
Open

gcxero wants to merge 2 commits into
XeroAPI:masterfrom
gcxero:ECOAM-6030

Conversation

@gcxero

@gcxero gcxero commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Adds the Payments webhook to xero-webhooks.yaml, including the PAYMENT event category, PaymentWebhookEvent schema, and create- and update-event examples aligned with the Prepayment and Overpayment webhook pattern.

Changes

  • New webhooks payment endpoint
  • PaymentWebhookEvent with data.PaymentType, data.Status, and data.UpdatedDateUTCString
  • PAYMENT added to eventCategory enum

@gcxero
gcxero marked this pull request as draft September 30, 2026 23:35
@gcxero
gcxero marked this pull request as ready for review September 30, 2026 23:36
gcxero added 2 commits October 1, 2026 09:41
BREAKING CHANGE: adds PAYMENT 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 payment 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