{"catalog_version":1,"app":"programmable-page","docs":"https://programmable.page/docs/webhooks","subscribe":"https://programmable.page/api/v1/webhooks","envelope":{"description":"Each delivery's body: { id (the event's id, the same at every webhook), type, createdAt (ms since 1970, UTC), created_at (ISO 8601 UTC), livemode, data }. Signed with x-programmable-signature (and programmable-page-signature): t=<unix seconds>,v1=<hex HMAC-SHA256(secret, \"<t>.<body>\")>; x-programmable-id is the delivery's id, the same on every retry."},"events":[{"type":"board.created","group":"Pages","description":"A page was made: in the app, through the API or MCP, from a template, or from a text or email.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m"}},{"type":"board.updated","group":"Pages","description":"A page changed. `fields` lists what changed, e.g. `content`, `data`, `title`, `answer`, `payment` (its bill was cancelled or restored; a cancel also sends `page.voided`), or `deletedAt` when it came back out of the Trash. `boardId` is the page's id (the same as `board.id`). `refs` says which records it became elsewhere, keyed by provider and kind (`refs.quickbooks.invoice.id`, `refs.xero.invoice.id`, `refs.quickbooks.payment.id`); a provider or kind with nothing is left out. `refs_all` lists every one, oldest first.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","fields":["data"],"refs":{"quickbooks":{"invoice":{"id":"147","number":"1042"},"payment":{"id":"212"}}},"refs_all":[{"provider":"quickbooks","kind":"invoice","id":"147","number":"1042","createdAt":1762416000000,"source":"page_sync"},{"provider":"quickbooks","kind":"payment","id":"212","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"board.deleted","group":"Pages","description":"A page was moved to the Trash, or deleted for good without going there first.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m"}},{"type":"board.generated","group":"Pages","description":"A page being written from a description is ready.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m"}},{"type":"board.generation_failed","group":"Pages","description":"A page being written from a description couldn't be made.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"error":{"type":"string"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","error":"The model didn't answer in time."}},{"type":"page.sent","group":"Pages","description":"You sent a page to someone by text or email. `to` is the phone number or email it went to; `customerId` the saved customer it went to (null when not saved). `boardId` is the page's id (the same as `board.id`). `refs` says which records it became elsewhere, keyed by provider and kind (`refs.quickbooks.invoice.id`, `refs.xero.invoice.id`, `refs.quickbooks.payment.id`); a provider or kind with nothing is left out. `refs_all` lists every one, oldest first. An invoice our sync is still adding to the books arrives in `accounting.synced`.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"channel":{"type":"string"},"to":{"type":"string"},"customerId":{"type":"string"},"at":{"type":"integer"},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","channel":"email","to":"sarah@example.com","customerId":"cus_8f3k2m9q1x7v4t","at":1762419600000,"refs":{"quickbooks":{"invoice":{"id":"147","number":"1042"},"payment":{"id":"212"}}},"refs_all":[{"provider":"quickbooks","kind":"invoice","id":"147","number":"1042","createdAt":1762416000000,"source":"page_sync"},{"provider":"quickbooks","kind":"payment","id":"212","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"page.voided","group":"Money","description":"You cancelled a page's bill (an invoice, a quote): nothing is owed and its Pay button is off. Sent once per cancel; `board.updated` with `fields: [\"payment\"]` is still sent too. `boardId` is the page's id (the same as `board.id`). `refs` says which records it became elsewhere, keyed by provider and kind (`refs.quickbooks.invoice.id`, `refs.xero.invoice.id`, `refs.quickbooks.payment.id`); a provider or kind with nothing is left out. `refs_all` lists every one, oldest first. Void your own copies by these ids; our QuickBooks or Xero sync voids the invoice it made by itself.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"at":{"type":"integer"},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","at":1762419600000,"refs":{"quickbooks":{"invoice":{"id":"147","number":"1042"},"payment":{"id":"212"}}},"refs_all":[{"provider":"quickbooks","kind":"invoice","id":"147","number":"1042","createdAt":1762416000000,"source":"page_sync"},{"provider":"quickbooks","kind":"payment","id":"212","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"text.status","group":"Pages","description":"A page you texted reached its final delivery status, as the carrier reported it: `delivered`, `undelivered` or `failed`. `errorCode` is Twilio's error code when there is one (e.g. `30003` unreachable, `30005` unknown number, `30006` landline, `30007` filtered by the carrier, `21610` they replied STOP). Sent once per text; `messageId` is the provider's message id.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"text":{"type":"object","properties":{"messageId":{"type":"string"},"to":{"type":"string"},"status":{"type":"string"},"errorCode":{"type":"string"},"sentAt":{"type":"integer"}}},"at":{"type":"integer"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","text":{"messageId":"SM0123456789abcdef0123456789abcdef","to":"+15550102030","status":"undelivered","errorCode":"30003","sentAt":1762419540000},"at":1762419600000}},{"type":"page.viewed","group":"Pages","description":"A page had its first visit of the day (UTC). Sent at most once per page per day, however many people open it, so it can't flood you. Link previewers, crawlers and your own previews in the app don't count.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"day":{"type":"string"},"at":{"type":"integer"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","day":"2025-11-06","at":1762419600000}},{"type":"quote.accepted","group":"Pages","description":"A customer accepted a quote or estimate.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"acceptance":{"type":"object","properties":{"name":{"type":"string"},"note":{"type":"string"},"acceptedAt":{"type":"integer"}}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","acceptance":{"name":"Sarah Lee","note":"Please start Monday.","acceptedAt":1762419600000}}},{"type":"quote.declined","group":"Pages","description":"A customer said \"not this time\" to a quote or estimate. `name` and `reason` are what they typed, or null. Follow-ups for it stop.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"decline":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":"string"},"declinedAt":{"type":"integer"}}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","decline":{"name":"Sarah Lee","reason":"We went with another quote.","declinedAt":1762419600000}}},{"type":"request.answered","group":"Pages","description":"A request page got its one answer: a reply, a payment or an acceptance. Carries the page's `ref`.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"answer":{"type":"object","properties":{"type":{"type":"string"},"event":{"type":"string"},"data":{"type":"object","properties":{"ok":{"type":"boolean"}}},"at":{"type":"integer"},"digest":{"type":"string"}}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","answer":{"type":"reply","event":"approve","data":{"ok":true},"at":1762419600000,"digest":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}}},{"type":"widget.event","group":"Replies and files","description":"A visitor sent something from a page that collects replies (a lead form, a choice, a message). `name` is the event name the page used, and `data` is what the page sent. A scored page with named results (the Instant estimate with `results`) adds `data.result`: `{ id, name, score }`, the result the visitor reached, so you can branch on `data.result.id` or `data.result.name`; it's absent otherwise. When the form showed an email-marketing consent box (the page's data has `marketingConsent`), `consent` sits beside `name` and `data`: `{ marketing, text, at }`. `marketing` is true only if the visitor ticked the box asking for marketing email (email only, never texts); `text` is the exact wording the box showed; `at` is when we received it (ISO 8601). We set it from the page's own data, never from what the page sent, so a page's script can't fake it or change the wording. `consent` is absent when the form had no box: treat absent like `marketing: false`.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"name":{"type":"string"},"data":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"message":{"type":"string"},"result":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"score":{"type":"integer"}}}}},"consent":{"type":"object","description":"The form's email-marketing consent box, set by programmable-page from the page's own data (never from what the page sent). Absent when the form had no box: treat that like marketing: false.","required":["marketing","text","at"],"properties":{"marketing":{"type":"boolean","description":"True only if the visitor ticked the box asking for marketing email. Email only: never consent to texts."},"text":{"type":"string","description":"The exact wording the box showed."},"at":{"type":"string","format":"date-time","description":"When programmable-page received the answer (ISO 8601 UTC)."}},"additionalProperties":false},"at":{"type":"integer"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","name":"lead","data":{"name":"Sarah Lee","email":"sarah@example.com","message":"Do you have Saturday slots?","result":{"id":"full-refit","name":"Full refit","score":18500}},"consent":{"marketing":true,"text":"Email me news and offers from Ada's Plumbing. I can unsubscribe at any time.","at":"2025-11-06T09:00:00.000Z"},"at":1762419600000}},{"type":"widget.upload","group":"Replies and files","description":"A visitor uploaded a file through a page; the file went to your connected storage.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"file":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"size":{"type":"integer"},"type":{"type":"string"},"url":{"type":"string"}}},"connectionId":{"type":"string"},"at":{"type":"integer"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","file":{"id":"f_3k9x2m","name":"photo.jpg","size":482133,"type":"image/jpeg","url":"https://storage.example.com/uploads/photo.jpg"},"connectionId":"conn_4m2x9k","at":1762419600000}},{"type":"booking.created","group":"Bookings","description":"A booking was made, by a customer on a booking page or by you. `start` and `end` are minutes after midnight on `date`; `by` is `customer` or `owner`. Sent for every booking, whoever made it (a customer's also arrives as `widget.event`). `boardId` is the booking page's id (the same as `board.id`). `refs` is the booking's own: `refs.google_calendar.calendar_event.id` (and `calendarId`) is its event in the connected calendar, plus any a workflow attached. `booking.calendarEventId` is the same id. The calendar event is often made just after this is sent: `calendar.synced` says when.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"booking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"date":{"type":"string"},"start":{"type":"integer"},"end":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"summary":{"type":"string"},"calendarEventId":{"type":["string","null"],"description":"Its event in the connected calendar (the same as refs.google_calendar.calendar_event.id); null when there's none."},"calendarProvider":{"type":["string","null"],"description":"That calendar's provider (google_calendar); null when there's no event."}}},"by":{"type":"string"},"at":{"type":"integer"},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","booking":{"id":"bk_7q2m9x4k","status":"booked","date":"2025-11-12","start":600,"end":660,"name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","summary":"Haircut","calendarEventId":null,"calendarProvider":null},"by":"customer","at":1762419600000,"refs":{},"refs_all":[]}},{"type":"booking.moved","group":"Bookings","description":"A booking was moved to another time. `previous` is where it was. `boardId` is the booking page's id (the same as `board.id`). `refs` is the booking's own: `refs.google_calendar.calendar_event.id` (and `calendarId`) is its event in the connected calendar, plus any a workflow attached. `booking.calendarEventId` is the same id.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"booking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"date":{"type":"string"},"start":{"type":"integer"},"end":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"summary":{"type":"string"},"calendarEventId":{"type":["string","null"],"description":"Its event in the connected calendar (the same as refs.google_calendar.calendar_event.id); null when there's none."},"calendarProvider":{"type":["string","null"],"description":"That calendar's provider (google_calendar); null when there's no event."}}},"previous":{"type":"object","properties":{"date":{"type":"string"},"start":{"type":"integer"},"end":{"type":"integer"}}},"by":{"type":"string"},"at":{"type":"integer"},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","booking":{"id":"bk_7q2m9x4k","status":"booked","date":"2025-11-12","start":720,"end":780,"name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","summary":"Haircut","calendarEventId":"7m3q9x2k4v8n1p5t0b6c","calendarProvider":"google_calendar"},"previous":{"date":"2025-11-12","start":600,"end":660},"by":"owner","at":1762419600000,"refs":{"google_calendar":{"calendar_event":{"id":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary"}}},"refs_all":[{"provider":"google_calendar","kind":"calendar_event","id":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"booking.cancelled","group":"Bookings","description":"A booking was cancelled, by the customer or by you. `boardId` is the booking page's id (the same as `board.id`). `refs` is the booking's own: `refs.google_calendar.calendar_event.id` (and `calendarId`) is its event in the connected calendar, plus any a workflow attached. `booking.calendarEventId` is the same id. They name the event as it was before our sync deleted it from the calendar.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"booking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"date":{"type":"string"},"start":{"type":"integer"},"end":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"summary":{"type":"string"},"calendarEventId":{"type":["string","null"],"description":"Its event in the connected calendar (the same as refs.google_calendar.calendar_event.id); null when there's none."},"calendarProvider":{"type":["string","null"],"description":"That calendar's provider (google_calendar); null when there's no event."}}},"by":{"type":"string"},"at":{"type":"integer"},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","booking":{"id":"bk_7q2m9x4k","status":"cancelled","date":"2025-11-12","start":600,"end":660,"name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","summary":"Haircut","calendarEventId":"7m3q9x2k4v8n1p5t0b6c","calendarProvider":"google_calendar"},"by":"customer","at":1762419600000,"refs":{"google_calendar":{"calendar_event":{"id":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary"}}},"refs_all":[{"provider":"google_calendar","kind":"calendar_event","id":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"calendar.synced","group":"Bookings","description":"Our Google Calendar sync made (`action: \"created\"`), moved (`moved`) or deleted (`deleted`) a booking's calendar event. `calendarEventId` and `calendarId` say which; `synced` is what it changed (provider, kind, the event's id and calendarId), the same shape as `accounting.synced`; `refs` is the booking's refs after the change (a deleted event is no longer in them). `board` is left out when the booking's page is gone.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"bookingId":{"type":"string"},"booking":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"date":{"type":"string"},"start":{"type":"integer"},"end":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"summary":{"type":"string"},"calendarEventId":{"type":["string","null"],"description":"Its event in the connected calendar (the same as refs.google_calendar.calendar_event.id); null when there's none."},"calendarProvider":{"type":["string","null"],"description":"That calendar's provider (google_calendar); null when there's no event."}}},"action":{"type":"string"},"provider":{"type":"string"},"calendarEventId":{"type":"string"},"calendarId":{"type":"string"},"synced":{"type":"object","properties":{"provider":{"type":"string"},"kind":{"type":"string"},"id":{"type":"string"},"calendarId":{"type":"string"}}},"at":{"type":"integer"},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","bookingId":"bk_7q2m9x4k","booking":{"id":"bk_7q2m9x4k","status":"booked","date":"2025-11-12","start":600,"end":660,"name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","summary":"Haircut","calendarEventId":"7m3q9x2k4v8n1p5t0b6c","calendarProvider":"google_calendar"},"action":"created","provider":"google_calendar","calendarEventId":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary","synced":{"provider":"google_calendar","kind":"calendar_event","id":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary"},"at":1762419600000,"refs":{"google_calendar":{"calendar_event":{"id":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary"}}},"refs_all":[{"provider":"google_calendar","kind":"calendar_event","id":"7m3q9x2k4v8n1p5t0b6c","calendarId":"primary","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"payment.completed","group":"Money","description":"A payment came in: through a page's Pay button (Stripe, on your own account), or marked paid by you (`method: \"offline\"`). `boardId` is the page's id (the same as `board.id`). `refs` says which records it became elsewhere, keyed by provider and kind (`refs.quickbooks.invoice.id`, `refs.xero.invoice.id`, `refs.quickbooks.payment.id`); a provider or kind with nothing is left out. `refs_all` lists every one, oldest first. The payment our books sync records arrives in `accounting.synced`.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"payment":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"description":{"type":"string"},"customerEmail":{"type":"string"},"paidAt":{"type":"integer"},"mode":{"type":"string"}}},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","payment":{"id":"pay_2n8x4k1q","amount":9500,"currency":"usd","description":"Invoice #1042","customerEmail":"sarah@example.com","paidAt":1762419600000,"mode":"live"},"refs":{"quickbooks":{"invoice":{"id":"147","number":"1042"},"payment":{"id":"212"}}},"refs_all":[{"provider":"quickbooks","kind":"invoice","id":"147","number":"1042","createdAt":1762416000000,"source":"page_sync"},{"provider":"quickbooks","kind":"payment","id":"212","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"payment.refunded","group":"Money","description":"You refunded all or part of a payment. Amounts are in minor units (cents). `boardId` is the page's id (the same as `board.id`). `refs` says which records it became elsewhere, keyed by provider and kind (`refs.quickbooks.invoice.id`, `refs.xero.invoice.id`, `refs.quickbooks.payment.id`); a provider or kind with nothing is left out. `refs_all` lists every one, oldest first.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"payment":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"customerEmail":{"type":"string"},"mode":{"type":"string"},"refundedAmount":{"type":"integer"}}},"refund":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"reason":{"type":"string"},"stripeRefundId":{"type":"string"},"createdAt":{"type":"integer"}}},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","payment":{"id":"pay_2n8x4k1q","amount":9500,"currency":"usd","customerEmail":"sarah@example.com","mode":"live","refundedAmount":2500},"refund":{"id":"rf_9x2k4m","amount":2500,"currency":"usd","reason":"requested_by_customer","stripeRefundId":"re_3Q…","createdAt":1762419600000},"refs":{"quickbooks":{"invoice":{"id":"147","number":"1042"},"payment":{"id":"212"}}},"refs_all":[{"provider":"quickbooks","kind":"invoice","id":"147","number":"1042","createdAt":1762416000000,"source":"page_sync"},{"provider":"quickbooks","kind":"payment","id":"212","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"payment.disputed","group":"Money","description":"A customer's bank opened, updated or decided a chargeback. `previous` is the status before (null when it just opened). `boardId` is the page's id (the same as `board.id`). `refs` says which records it became elsewhere, keyed by provider and kind (`refs.quickbooks.invoice.id`, `refs.xero.invoice.id`, `refs.quickbooks.payment.id`); a provider or kind with nothing is left out. `refs_all` lists every one, oldest first.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"payment":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"customerEmail":{"type":"string"},"mode":{"type":"string"}}},"dispute":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"reason":{"type":"string"},"status":{"type":"string"},"evidenceDue":{"type":"integer"}}},"previous":{},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","payment":{"id":"pay_2n8x4k1q","amount":9500,"currency":"usd","customerEmail":"sarah@example.com","mode":"live"},"dispute":{"id":"dp_1Q…","amount":9500,"currency":"usd","reason":"fraudulent","status":"needs_response","evidenceDue":1763024400000},"previous":null,"refs":{"quickbooks":{"invoice":{"id":"147","number":"1042"},"payment":{"id":"212"}}},"refs_all":[{"provider":"quickbooks","kind":"invoice","id":"147","number":"1042","createdAt":1762416000000,"source":"page_sync"},{"provider":"quickbooks","kind":"payment","id":"212","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"accounting.synced","group":"Money","description":"Our QuickBooks or Xero sync recorded a record in the books: the page's invoice (`kind: \"invoice\"`, made when it was sent or paid, or made again after a cancelled bill was restored), a payment against it (`payment`), a QuickBooks refund receipt (`refund`) or a Xero credit note (`credit_note`). `synced` is that record (provider, kind, id, number when there is one); `trigger` is the event it answered (`page.sent`, `payment.completed`, `payment.refunded`, `board.updated`) or `manual` (Send unpaid invoices, Retry). `refs` is the page's refs after it: `refs.quickbooks.invoice.id`, `refs.xero.invoice.id` (Xero's InvoiceID).","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"synced":{"type":"object","properties":{"provider":{"type":"string"},"kind":{"type":"string"},"id":{"type":"string"}}},"trigger":{"type":"string"},"at":{"type":"integer"},"refs":{"type":"object","description":"Which records in other systems this became, by provider then kind (the newest of each). A provider or kind with nothing is absent. A QuickBooks sandbox connection files its records under quickbooks_sandbox, so a workflow mapped to refs.quickbooks.… gets nothing from one while testing.","properties":{"quickbooks":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"quickbooks_sandbox":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"xero":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false}},"additionalProperties":false},"google_calendar":{"type":"object","properties":{"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":{"type":"object","properties":{"invoice":{"type":"object","description":"The newest invoice of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there: QuickBooks' Id, Xero's InvoiceID (a UUID)."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"payment":{"type":"object","description":"The newest payment of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"refund":{"type":"object","description":"The newest refund of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"credit_note":{"type":"object","description":"The newest credit note of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"number":{"type":"string","description":"The number people see (e.g. 1042, INV-0042), when there is one."}},"additionalProperties":false},"calendar_event":{"type":"object","description":"The newest calendar event of this provider.","required":["id"],"properties":{"id":{"type":"string","description":"The record's id there."},"calendarId":{"type":"string","description":"The calendar it is on (\"primary\", or …@group.calendar.google.com)."}},"additionalProperties":false}},"additionalProperties":false}},"refs_all":{"type":"array","description":"Every ref, oldest first: several payments on one invoice, an invoice made again after a restored bill.","items":{"type":"object","required":["provider","kind","id","createdAt","source"],"properties":{"provider":{"type":"string","description":"The connection's provider id as programmable.dev names it: quickbooks, quickbooks_sandbox, xero, google_calendar, or one a workflow attached."},"kind":{"type":"string","enum":["invoice","payment","refund","credit_note","calendar_event"]},"id":{"type":"string"},"number":{"type":"string"},"calendarId":{"type":"string"},"createdAt":{"type":"integer","description":"When it was recorded (ms since 1970)."},"source":{"type":"string","enum":["page_sync","api"],"description":"page_sync: programmable-page's own sync made it; api: attached with PUT …/refs."}},"additionalProperties":false}}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","synced":{"provider":"quickbooks","kind":"payment","id":"212"},"trigger":"payment.completed","at":1762419600000,"refs":{"quickbooks":{"invoice":{"id":"147","number":"1042"},"payment":{"id":"212"}}},"refs_all":[{"provider":"quickbooks","kind":"invoice","id":"147","number":"1042","createdAt":1762416000000,"source":"page_sync"},{"provider":"quickbooks","kind":"payment","id":"212","createdAt":1762419600000,"source":"page_sync"}]}},{"type":"subscription.updated","group":"Money","description":"A membership or retainer started, changed, fell behind or ended. `previous` is null when it just started.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"subscription":{"type":"object","properties":{"id":{"type":"string"},"boardId":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"interval":{"type":"string"},"status":{"type":"string"},"cancelAtPeriodEnd":{"type":"boolean"},"currentPeriodEnd":{"type":"integer"},"customerEmail":{"type":"string"},"createdAt":{"type":"integer"}}},"previous":{}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","subscription":{"id":"sub_6k2m9x","boardId":"k3v9xq2m","amount":4900,"currency":"usd","interval":"month","status":"active","cancelAtPeriodEnd":false,"currentPeriodEnd":1765011600000,"customerEmail":"sarah@example.com","createdAt":1762419600000},"previous":null}},{"type":"subscription.paid","group":"Money","description":"A membership or retainer payment came in: the first one (`first: true`, alongside `subscription.updated`) or a renewal. Amounts are in minor units (cents). `payment.completed` is not sent for these.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"board":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string"},"visibility":{"type":"string"},"status":{"type":"string"},"version":{"type":"integer"},"templateId":{"type":"string"},"publisherId":{"type":"string"},"ref":{"type":"string"},"viewUrl":{"type":"string"},"embedUrl":{"type":"string"},"data":{"type":"object","properties":{"customer":{"type":"object","properties":{"name":{"type":"string"}}},"total":{"type":"integer"}}}}},"boardId":{"type":"string"},"payment":{"type":"object","properties":{"id":{"type":"string"},"amount":{"type":"integer"},"currency":{"type":"string"},"customerEmail":{"type":"string"},"paidAt":{"type":"integer"},"mode":{"type":"string"}}},"subscription":{"type":"object","properties":{"id":{"type":"string"},"interval":{"type":"string"}}},"first":{"type":"boolean"}}},"sample":{"board":{"id":"k3v9xq2m","title":"Invoice #1042","kind":"html","visibility":"unlisted","status":"active","version":3,"templateId":"t7wp4r8n","publisherId":"pub_5d2c8a1f9e","ref":"order-1042","viewUrl":"https://programmable.page/v/k3v9xq2m","embedUrl":"https://programmable.page/b/k3v9xq2m","data":{"customer":{"name":"Sarah Lee"},"total":95}},"boardId":"k3v9xq2m","payment":{"id":"pay_7m3q9x2k","amount":4900,"currency":"usd","customerEmail":"sarah@example.com","paidAt":1762419600000,"mode":"live"},"subscription":{"id":"sub_6k2m9x","interval":"month"},"first":false}},{"type":"customer.created","group":"Customers","description":"A customer was saved: by you, by an import, by sending a page to someone new, or by saving who replied or booked.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"customer":{"type":"object","properties":{"id":{"type":"string"},"publisherId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"notes":{"type":"string"},"smsConsentAt":{"type":"integer"},"smsConsentMethod":{"type":"string"},"smsConsentBy":{"type":"string"},"smsConsentRef":{},"smsMarketingAt":{"type":"integer"},"emailMarketingAt":{"type":"integer"},"emailMarketingMethod":{"type":"string"},"emailMarketingText":{"type":"string"},"emailMarketingRef":{"type":"string"},"emailMarketingWithdrawnAt":{},"smsUnreachableAt":{},"smsUnreachableNote":{},"emailBouncedAt":{},"emailBouncedNote":{},"timeZone":{"type":"string"},"language":{},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}},"at":{"type":"integer"}}},"sample":{"customer":{"id":"cus_8f3k2m9q1x7v4t","publisherId":"pub_5d2c8a1f9e","name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","address":"12 High Street, Springfield","notes":"Prefers mornings.","smsConsentAt":1762333200000,"smsConsentMethod":"signed_form","smsConsentBy":"usr_3k9d2m","smsConsentRef":null,"smsMarketingAt":1762333200000,"emailMarketingAt":1762333200000,"emailMarketingMethod":"form_checkbox","emailMarketingText":"Email me news and offers from Ada's Plumbing. I can unsubscribe at any time.","emailMarketingRef":"k3v9xq2m","emailMarketingWithdrawnAt":null,"smsUnreachableAt":null,"smsUnreachableNote":null,"emailBouncedAt":null,"emailBouncedNote":null,"timeZone":"America/New_York","language":null,"createdAt":1762333200000,"updatedAt":1762419600000},"at":1762419600000}},{"type":"customer.updated","group":"Customers","description":"A customer's details changed (by you, an import filling in blanks, or a send or reply adding a phone or email). `fields` lists what changed.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"customer":{"type":"object","properties":{"id":{"type":"string"},"publisherId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"notes":{"type":"string"},"smsConsentAt":{"type":"integer"},"smsConsentMethod":{"type":"string"},"smsConsentBy":{"type":"string"},"smsConsentRef":{},"smsMarketingAt":{"type":"integer"},"emailMarketingAt":{"type":"integer"},"emailMarketingMethod":{"type":"string"},"emailMarketingText":{"type":"string"},"emailMarketingRef":{"type":"string"},"emailMarketingWithdrawnAt":{},"smsUnreachableAt":{},"smsUnreachableNote":{},"emailBouncedAt":{},"emailBouncedNote":{},"timeZone":{"type":"string"},"language":{},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}},"fields":{"type":"array","items":{"type":"string"}},"at":{"type":"integer"}}},"sample":{"customer":{"id":"cus_8f3k2m9q1x7v4t","publisherId":"pub_5d2c8a1f9e","name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","address":"12 High Street, Springfield","notes":"Prefers mornings.","smsConsentAt":1762333200000,"smsConsentMethod":"signed_form","smsConsentBy":"usr_3k9d2m","smsConsentRef":null,"smsMarketingAt":1762333200000,"emailMarketingAt":1762333200000,"emailMarketingMethod":"form_checkbox","emailMarketingText":"Email me news and offers from Ada's Plumbing. I can unsubscribe at any time.","emailMarketingRef":"k3v9xq2m","emailMarketingWithdrawnAt":null,"smsUnreachableAt":null,"smsUnreachableNote":null,"emailBouncedAt":null,"emailBouncedNote":null,"timeZone":"America/New_York","language":null,"createdAt":1762333200000,"updatedAt":1762419600000},"fields":["phone"],"at":1762419600000}},{"type":"customer.deleted","group":"Customers","description":"A customer was moved to the Trash. They can be restored for 30 days, then they're deleted for good (no further event).","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"customer":{"type":"object","properties":{"id":{"type":"string"},"publisherId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"notes":{"type":"string"},"smsConsentAt":{"type":"integer"},"smsConsentMethod":{"type":"string"},"smsConsentBy":{"type":"string"},"smsConsentRef":{},"smsMarketingAt":{"type":"integer"},"emailMarketingAt":{"type":"integer"},"emailMarketingMethod":{"type":"string"},"emailMarketingText":{"type":"string"},"emailMarketingRef":{"type":"string"},"emailMarketingWithdrawnAt":{},"smsUnreachableAt":{},"smsUnreachableNote":{},"emailBouncedAt":{},"emailBouncedNote":{},"timeZone":{"type":"string"},"language":{},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}},"at":{"type":"integer"}}},"sample":{"customer":{"id":"cus_8f3k2m9q1x7v4t","publisherId":"pub_5d2c8a1f9e","name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","address":"12 High Street, Springfield","notes":"Prefers mornings.","smsConsentAt":1762333200000,"smsConsentMethod":"signed_form","smsConsentBy":"usr_3k9d2m","smsConsentRef":null,"smsMarketingAt":1762333200000,"emailMarketingAt":1762333200000,"emailMarketingMethod":"form_checkbox","emailMarketingText":"Email me news and offers from Ada's Plumbing. I can unsubscribe at any time.","emailMarketingRef":"k3v9xq2m","emailMarketingWithdrawnAt":null,"smsUnreachableAt":null,"smsUnreachableNote":null,"emailBouncedAt":null,"emailBouncedNote":null,"timeZone":"America/New_York","language":null,"createdAt":1762333200000,"updatedAt":1762419600000},"at":1762419600000}},{"type":"customer.restored","group":"Customers","description":"A customer was taken back out of the Trash.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"customer":{"type":"object","properties":{"id":{"type":"string"},"publisherId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"address":{"type":"string"},"notes":{"type":"string"},"smsConsentAt":{"type":"integer"},"smsConsentMethod":{"type":"string"},"smsConsentBy":{"type":"string"},"smsConsentRef":{},"smsMarketingAt":{"type":"integer"},"emailMarketingAt":{"type":"integer"},"emailMarketingMethod":{"type":"string"},"emailMarketingText":{"type":"string"},"emailMarketingRef":{"type":"string"},"emailMarketingWithdrawnAt":{},"smsUnreachableAt":{},"smsUnreachableNote":{},"emailBouncedAt":{},"emailBouncedNote":{},"timeZone":{"type":"string"},"language":{},"createdAt":{"type":"integer"},"updatedAt":{"type":"integer"}}},"at":{"type":"integer"}}},"sample":{"customer":{"id":"cus_8f3k2m9q1x7v4t","publisherId":"pub_5d2c8a1f9e","name":"Sarah Lee","email":"sarah@example.com","phone":"+15550102030","address":"12 High Street, Springfield","notes":"Prefers mornings.","smsConsentAt":1762333200000,"smsConsentMethod":"signed_form","smsConsentBy":"usr_3k9d2m","smsConsentRef":null,"smsMarketingAt":1762333200000,"emailMarketingAt":1762333200000,"emailMarketingMethod":"form_checkbox","emailMarketingText":"Email me news and offers from Ada's Plumbing. I can unsubscribe at any time.","emailMarketingRef":"k3v9xq2m","emailMarketingWithdrawnAt":null,"smsUnreachableAt":null,"smsUnreachableNote":null,"emailBouncedAt":null,"emailBouncedNote":null,"timeZone":"America/New_York","language":null,"createdAt":1762333200000,"updatedAt":1762419600000},"at":1762419600000}},{"type":"job.finished","group":"Jobs","description":"A job (a PDF, a script, a bulk run) finished: `status` is `ok`, `failed`, `timeout`, `refused` or `cancelled`. `outputs` says what it made (a page, pages from a template, files to download until `expiresAt`). Its inputs and log are never sent.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"job":{"type":"object","properties":{"id":{"type":"string"},"recipeId":{"type":"string"},"status":{"type":"string"},"trigger":{"type":"string"},"error":{},"outputs":{"type":"object","properties":{"boardId":{"type":"string"},"instances":{"type":"array"},"summary":{},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"size":{"type":"integer"},"type":{"type":"string"},"expiresAt":{"type":"integer"}}}}}},"createdAt":{"type":"integer"},"startedAt":{"type":"integer"},"finishedAt":{"type":"integer"}}}}},"sample":{"job":{"id":"job_4k9x2m7q","recipeId":"invoice-pdf","status":"ok","trigger":"api","error":null,"outputs":{"boardId":"k3v9xq2m","instances":[],"summary":null,"files":[{"id":"f_8m2k4x","name":"invoice-1042.pdf","size":48213,"type":"application/pdf","expiresAt":1763024400000}]},"createdAt":1762419580000,"startedAt":1762419585000,"finishedAt":1762419600000}}},{"type":"ping","group":"Testing","description":"Sent when you press Test (or call `POST /api/webhooks/:id/test`), to check your endpoint. Not retried, whatever it answers. Send `{\"event\": \"<name>\"}` to that call instead to get any event's example below, with `livemode: false`.","data_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"subscriptionId":{"type":"string"},"message":{"type":"string"}}},"sample":{"subscriptionId":"wh_8k2m4x9q1v3t7n5p","message":"programmable-page webhook test"}}]}