Handle Xero Webhook

Receive webhook events from Xero.

Xero sends an empty events list to validate the endpoint ("intent to receive"); a valid signature (checked in the route dependency) is enough for that handshake, so we simply acknowledge with 200. Real events are handed to a service that publishes a domain event per invoice for out-of-band processing.

post/_webhooks/xero

Headers

x-client-secretstring nullable

A secret token identifying the client connecting to the API

Example:Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP

A secret token identifying the client connecting to the API

Request body

firstEventSequenceinteger required
lastEventSequenceinteger required

Response

Successful Response

{"stackTrail":"paths:/_webhooks/xero:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes