BankTransaction lifecycle webhooks include an optional category object on data when the transaction is categorized to a ledger account. category includes the account id, optional stable_name, and display_name. This is typically present on BankTransaction.updated after categorization.
BankTransaction.document_attached fires when a document, such as a receipt or invoice, is attached to a bank transaction. BankTransaction.document_archived fires when that document is archived. Use these events to know whether a transaction has a document without polling List transaction documents. The current document IDs are also in document_ids on the bank transaction.
The payload does not contain the email body or attachments. The id is stable for the received message.
email.message_received
Bookkeeping webhooks notify you about onboarding completion, first-month purchase date changes, and bookkeeping context events. A bookkeeping context event is a normalized audit-style event, so many bookkeeping actions share the same webhook type, bookkeeping_event.created; use data.resource_type and data.action to distinguish what happened.
Sent at the end of a business’s Layer bookkeeping onboarding call, when their bookkeeping configuration’s onboarding_date is set for the first time.Example payload:
The ID of the bookkeeping configuration that completed onboarding
data.onboarding_date
string (date)
The date when bookkeeping onboarding was completed, in YYYY-MM-DD format
data.first_month_purchased_date
string (date) or null
The business’s first purchased bookkeeping month, in YYYY-MM-DD format. null when no first-month-purchased value is set on the bookkeeping configuration.
data.activation_at
string (date-time)
The business’s activation timestamp, in ISO 8601 format. Always present.
The bookkeeping_onboarding.completed webhook fires when Layer updates the business’s bookkeeping configuration at the end of their onboarding call.
This webhook only fires when the onboarding_date transitions from unset (null) to a value. Subsequent updates to onboarding_date do not trigger additional webhooks.
Sent when a business’s first purchased bookkeeping month changes on its bookkeeping configuration. Use this to keep your records in sync when Layer sets or updates the first_month_purchased_date.Example payload:
The bookkeeping_purchase_date.update webhook fires whenever a business’s first_month_purchased_date changes.
first_month_purchased_date can change more than once, so you may receive this event multiple times for the same business with each event having a unique id.
Sent when Layer records a bookkeeping context event for a business. Examples include transaction categorizations, task updates, period status changes, connected account changes, adjustment entries, closing date updates, and catchup bookkeeping requests.Example payload:
Catchup bookkeeping requests use bookkeeping_event.created, not a separate webhook type.
To identify a request, check that data.resource_type is BOOKKEEPING_CONFIGURATION and data.action is CATCHUP_BOOKKEEPING_REQUESTED.Example payload:
data.resource_id identifies the bookkeeping configuration.
data.previous_state contains the previous requested date. It is omitted when no previous date was set.
data.new_state contains the new requested date. Both dates use YYYY-MM-DD format.
data.changed_fields is ["user_requested_catchup_date"], and data.actor is USER.
This event records a request. It does not confirm a purchase or change first_month_purchased_date.
The requested date alone does not create bookkeeping periods.
actor can be USER, AI_BOOKKEEPER, MANUAL_BOOKKEEPER, SYSTEM, or UNKNOWN.
External account events use the external_accounts.* namespace.
These events include the current count of external accounts that need repair for the business.Example payload:
The external account event type (e.g., external_accounts.account.connected).
business_id
string (UUID)
The Layer business ID
business_external_id
string or null
Your external identifier for the business, if set
data.provider
string
The external account provider (e.g., plaid).
data.at
string (date-time)
ISO 8601 timestamp when the event occurred.
data.link_id
string (UUID)
Layer’s internal ID for the external account link.
data.external_link_id
string
The provider’s ID for the link (e.g., Plaid Item ID).
data.account_ids
array
Layer IDs of the affected external accounts.
data.external_account_ids
array
Provider IDs of the affected external accounts.
data.accounts_needing_repair_count
integer
Number of external accounts across the business that currently need repair. Only counts accounts where the parent bank account has notify_when_disconnected enabled. Excludes archived accounts.
The plaid.link.token_created webhook fires whenever Layer mints a Plaid link token for a business. This corresponds to the user initiating the Plaid Link flow (e.g. clicking “Add Account” or starting an update-mode reconnect). The event fires before the user selects an institution or completes the flow, so it can be used as a click-level signal. To know when a connection is actually established, listen for external_accounts.link.connected.
Call booking events use the call_booking.* namespace. They notify you when a call booked through Calendly is scheduled, rescheduled, or canceled.Example payload:
The call booking event type (for example, call_booking.scheduled).
business_id
string (UUID) or null
Always included. The Layer business ID if the booking is made for a specific business. Null when no business is identified at the time of booking.
business_external_id
string or null
Your external identifier, if set, when the booking is made for a specific business. Null when no business is identified at the time of booking.
data.calendly_event_uri
string or null
Calendly scheduled-event API URI for the call.
data.event_type_uri
string or null
Event type API URI identifying the kind of booking. Always included; null for older bookings without a stored URI. Reschedules use the new booking’s event type.
data.invitee_name
string or null
Name of the invitee who booked the call. Contains personally identifiable information (PII).
data.invitee_email
string or null
Email of the invitee who booked the call. Contains PII.
data.event_start_at
string (date-time)
ISO 8601 start time of the call. Required.
data.event_end_at
string (date-time) or null
ISO 8601 end time of the call.
data.purpose
string
Purpose of the call: BOOKKEEPING_ONBOARDING or ADHOC. Required.
data.previous_calendly_event_id
string or null
Calendly event ID of the booking that was replaced. Populated only on call_booking.rescheduled.
data.tracking
object or null
Provider tracking data captured when this booking was made. Always included; null when no tracking data is available.
Calendly bookings can include utm_source, utm_medium, utm_campaign, utm_content, utm_term, and salesforce_uuid in data.tracking. Arbitrary query parameters are not available. To pass your own reference through a Calendly booking link, use one of these available UTM parameters.
call_booking.rescheduled fires when an existing booking moves to a new time.
call_booking.canceled fires when an existing booking is canceled without being rescheduled.
Business-specific fields (business_id and business_external_id) will be populated if a call booking can be identified as that specific business via parameters on the call booking URL. business_external_id is populated only if the business has an external ID. Both fields will be null if the business cannot be identified.
A reschedule is delivered as a single call_booking.rescheduled event. Layer does not also send call_booking.canceled and call_booking.scheduled events for the same reschedule.
Export events use the export.* namespace and notify you when an async export finishes.These events are client-scoped: the payload includes id, type, and data, and does not include top-level business_id / business_external_id.Example payload:
After export.completed, call Fetch export to retrieve the download_url.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Layer","colors":{"primary":"#5ba183","light":"#7e9be5","dark":"#5ba183"},"logo":{"light":"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6","dark":"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6","href":"http://layerfi.com"},"favicon":"https://mintcdn.com/layerfinancialtechnologiesinc/0_c_qPO4Af3kMlwQ/favicon.png?fit=max\u0026auto=format\u0026n=0_c_qPO4Af3kMlwQ\u0026q=85\u0026s=ec8ea64f9b358b7cf5fac926e2a06566","api":{"openapi":["openApiSpec.json"],"playground":{"display":"simple"},"mdx":{"auth":{"method":"bearer"},"server":"https://sandbox.layerfi.com"}},"appearance":{"default":"light","strict":true},"background":{"color":{"dark":"#090014"}},"navbar":{"links":[{"href":"https://dashboard.layerfi.com/sign-in","label":"Log in"}],"primary":{"type":"button","label":"Contact Sales","href":"https://www.layerfi.com/contact"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"layerfinancialtechnologiesinc","hasAudioNarration":false,"actualSubdomain":"layerfinancialtechnologiesinc","customDomains":["docs.layerfi.com"],"gitSource":{"type":"github","owner":"layer-fi","repo":"api-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af4abf25cc09d51b130bb12","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"API Reference","count":381},{"language":"default","tag":"Financial Activity","count":261},{"language":"default","tag":"Businesses","count":66},{"language":"default","tag":"Accounts Receivable","count":64},{"language":"default","tag":"Accounts Payable","count":47},{"language":"default","tag":"Integrations","count":41},{"language":"default","tag":"Accounting Reports","count":41},{"language":"default","tag":"Bank Transactions","count":33},{"language":"default","tag":"Guides","count":32},{"language":"default","tag":"Embedded Components","count":31}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-details/webhooks-event-catalog","slug":"/api-details/webhooks-event-catalog","pageMetadata":{"title":"Webhooks event catalog","sidebarTitle":"Event catalog","description":null,"href":"/api-details/webhooks-event-catalog"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Tab,Table,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`event-types`,children:`Event Types`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Data Entity Events`,id:`data-entity-events`,\"data-child-heading-ids\":`[\"events-with-additional-metadata\",\"bank-transaction-document-events\"]`,children:[_jsxs(_components.p,{children:[`Data entity events follow `,_jsx(_components.code,{children:`EntityName.operation`}),` and generally use thin payloads.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer_created_7bcef4fd-9458-49d0-a7e7-589f5e6f2683_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Customer.created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entity_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7bcef4fd-9458-49d0-a7e7-589f5e6f2683\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entity_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"cust_2001\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Entity`}),_jsx(_components.th,{children:`Events`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`#events-with-additional-metadata`,children:`BankTransaction`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`BankTransaction.created`}),`, `,_jsx(_components.code,{children:`BankTransaction.updated`}),`, `,_jsx(_components.code,{children:`BankTransaction.archived`}),`, `,_jsxs(_components.a,{href:`#bank-transaction-document-events`,children:[_jsx(_components.code,{children:`BankTransaction.document_attached`}),`, `,_jsx(_components.code,{children:`BankTransaction.document_archived`})]})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Bill`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Bill.created`}),`, `,_jsx(_components.code,{children:`Bill.updated`}),`, `,_jsx(_components.code,{children:`Bill.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`BillPayment`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`BillPayment.created`}),`, `,_jsx(_components.code,{children:`BillPayment.updated`}),`, `,_jsx(_components.code,{children:`BillPayment.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Business`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Business.created`}),`, `,_jsx(_components.code,{children:`Business.updated`}),`, `,_jsx(_components.code,{children:`Business.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.a,{href:`#events-with-additional-metadata`,children:`BusinessTask`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`BusinessTask.created`}),`, `,_jsx(_components.code,{children:`BusinessTask.updated`}),`, `,_jsx(_components.code,{children:`BusinessTask.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Customer`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Customer.created`}),`, `,_jsx(_components.code,{children:`Customer.updated`}),`, `,_jsx(_components.code,{children:`Customer.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`CustomerCredit`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CustomerCredit.created`}),`, `,_jsx(_components.code,{children:`CustomerCredit.updated`}),`, `,_jsx(_components.code,{children:`CustomerCredit.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`CustomerPayout`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CustomerPayout.created`}),`, `,_jsx(_components.code,{children:`CustomerPayout.updated`}),`, `,_jsx(_components.code,{children:`CustomerPayout.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`CustomerRefund`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CustomerRefund.created`}),`, `,_jsx(_components.code,{children:`CustomerRefund.updated`}),`, `,_jsx(_components.code,{children:`CustomerRefund.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`GeneralLedgerAccount`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`GeneralLedgerAccount.created`}),`, `,_jsx(_components.code,{children:`GeneralLedgerAccount.updated`}),`, `,_jsx(_components.code,{children:`GeneralLedgerAccount.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Invoice`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Invoice.created`}),`, `,_jsx(_components.code,{children:`Invoice.updated`}),`, `,_jsx(_components.code,{children:`Invoice.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`InvoicePayment`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`InvoicePayment.created`}),`, `,_jsx(_components.code,{children:`InvoicePayment.updated`}),`, `,_jsx(_components.code,{children:`InvoicePayment.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`InvoiceWriteOff`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`InvoiceWriteOff.created`}),`, `,_jsx(_components.code,{children:`InvoiceWriteOff.updated`}),`, `,_jsx(_components.code,{children:`InvoiceWriteOff.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`TaxProfile`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`TaxProfile.created`}),`, `,_jsx(_components.code,{children:`TaxProfile.updated`}),`, `,_jsx(_components.code,{children:`TaxProfile.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`TimeEntry`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`TimeEntry.created`}),`, `,_jsx(_components.code,{children:`TimeEntry.updated`}),`, `,_jsx(_components.code,{children:`TimeEntry.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Trip`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Trip.created`}),`, `,_jsx(_components.code,{children:`Trip.updated`}),`, `,_jsx(_components.code,{children:`Trip.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Vehicle`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Vehicle.created`}),`, `,_jsx(_components.code,{children:`Vehicle.updated`}),`, `,_jsx(_components.code,{children:`Vehicle.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Vendor`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Vendor.created`}),`, `,_jsx(_components.code,{children:`Vendor.updated`}),`, `,_jsx(_components.code,{children:`Vendor.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`VendorCredit`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`VendorCredit.created`}),`, `,_jsx(_components.code,{children:`VendorCredit.updated`}),`, `,_jsx(_components.code,{children:`VendorCredit.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`VendorPayout`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`VendorPayout.created`}),`, `,_jsx(_components.code,{children:`VendorPayout.updated`}),`, `,_jsx(_components.code,{children:`VendorPayout.archived`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`VendorRefund`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`VendorRefund.created`}),`, `,_jsx(_components.code,{children:`VendorRefund.updated`}),`, `,_jsx(_components.code,{children:`VendorRefund.archived`})]})]})]})]}),_jsx(Heading,{level:`3`,id:`events-with-additional-metadata`,children:`Events with additional metadata`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`BankTransaction`}),` lifecycle webhooks include an optional `,_jsx(_components.code,{children:`category`}),` object on `,_jsx(_components.code,{children:`data`}),` when the transaction is categorized to a ledger account. `,_jsx(_components.code,{children:`category`}),` includes the account `,_jsx(_components.code,{children:`id`}),`, optional `,_jsx(_components.code,{children:`stable_name`}),`, and `,_jsx(_components.code,{children:`display_name`}),`. This is typically present on `,_jsx(_components.code,{children:`BankTransaction.updated`}),` after categorization.`]}),_jsx(Expandable,{title:`BankTransaction example payload`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BankTransaction_updated_7bcef4fd-9458-49d0-a7e7-589f5e6f2683_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BankTransaction.updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entity_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7bcef4fd-9458-49d0-a7e7-589f5e6f2683\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entity_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"webhook-txn-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"category\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"00000000-0000-0000-0000-000000000002\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stable_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MATERIALS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"display_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Materials for Sold Goods\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(Heading,{level:`3`,id:`bank-transaction-document-events`,children:`Bank transaction document events`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`BankTransaction.document_attached`}),` fires when a document, such as a receipt or invoice, is attached to a bank transaction. `,_jsx(_components.code,{children:`BankTransaction.document_archived`}),` fires when that document is archived. Use these events to know whether a transaction has a document without polling `,_jsx(_components.a,{href:`/api-reference/v1/list-transaction-documents`,children:`List transaction documents`}),`. The current document IDs are also in `,_jsx(_components.code,{children:`document_ids`}),` on the bank transaction.`]}),_jsx(Expandable,{title:`BankTransaction document example payload`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bank_transaction_document_attached_9b2f4c1e-3a7d-4e8b-a1c2-5d6e7f8a9b0c_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BankTransaction.document_attached\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bank_transaction_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7bcef4fd-9458-49d0-a7e7-589f5e6f2683\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bank_transaction_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"webhook-txn-1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"document_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9b2f4c1e-3a7d-4e8b-a1c2-5d6e7f8a9b0c\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"document_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RECEIPT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"file_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"receipt.pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`BusinessTask`}),` lifecycle webhooks include the current active task count for the business in addition to the standard lifecycle entity fields.`]}),_jsx(Expandable,{title:`BusinessTask example payload`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BusinessTask_created_7bcef4fd-9458-49d0-a7e7-589f5e6f2683_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BusinessTask.created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entity_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7bcef4fd-9458-49d0-a7e7-589f5e6f2683\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"entity_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"open_task_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]}),_jsxs(Tab,{title:`User Activity Events`,id:`user-activity-events`,children:[_jsxs(_components.p,{children:[`User activity events use the `,_jsx(_components.code,{children:`activity.*`}),` namespace.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"activity_categorize_bank_transaction_44bb48bd-4af1-4e6f-a38a-fb24e5575dc7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"activity.categorize_bank_transaction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"transaction_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"34db2910-5919-4985-8e7f-56dd83e76ed5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"categorization_method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"API\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"categorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"matchType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"INVOICE_PAYMENT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31T16:42:11Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.categorize_bank_transaction`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.load_pnl`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.load_balance_sheet`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.load_cashflow_statement`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.create_custom_account`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.archive_custom_account`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.reactivate_custom_account`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.upload_custom_account_csv`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_pnl_csv`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_pnl_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_pnl_comparison_csv`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_pnl_month_over_month`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_pnl_line_item_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_balance_sheet_csv`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_balance_sheet_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_cashflow_csv`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_cashflow_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_transactions_csv`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_transactions_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_pnl_pdf`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_trial_balance_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_ar_aging_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_business_expenses_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_business_income_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_business_mileage_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_personal_expenses_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_personal_income_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_personal_mileage_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_time_tracking_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.export_schedule_c_excel`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`activity.generate_tax_packet`})}),`\n`]})]}),_jsxs(Tab,{title:`SMS Events`,id:`sms-events`,children:[_jsxs(_components.p,{children:[`SMS events use the `,_jsx(_components.code,{children:`sms.*`}),` namespace.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sms_message_received_SM1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sms.message_received\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SM1234567890\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"direction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RECEIVED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Classify this as utilities\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"phone_number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"+15551234567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"delivery_status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31T16:48:55Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`sms.message_received`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`sms.message_delivered`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`sms.message_delivery_failed`})}),`\n`]})]}),_jsxs(Tab,{title:`Email Events`,id:`email-events`,children:[_jsxs(_components.p,{children:[`Email events use the `,_jsx(_components.code,{children:`email.*`}),` namespace. `,_jsx(_components.code,{children:`email.message_received`}),` fires for a newly received, direct email from a known sender.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email_message_received_7bcef4fd-9458-49d0-a7e7-589f5e6f2683\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email.message_received\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7bcef4fd-9458-49d0-a7e7-589f5e6f2683\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"thread_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"direction\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RECEIVED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"from_address\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"person@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subject\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Question about my books\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31T16:48:55Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The payload does not contain the email body or attachments. The `,_jsx(_components.code,{children:`id`}),` is stable for the received message.`]}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`email.message_received`})}),`\n`]})]}),_jsxs(Tab,{title:`Bookkeeping Events`,id:`bookkeeping-events`,\"data-child-heading-ids\":`[\"event-types-2\",\"bookkeeping_onboarding-completed\",\"payload-fields\",\"when-this-webhook-fires\",\"bookkeeping_purchase_date-update\",\"payload-fields-2\",\"when-this-webhook-fires-2\",\"bookkeeping_event-created\",\"bookkeeping-context-fields\",\"bookkeeping-context-actions\",\"catchup-bookkeeping-requests\",\"actors\"]`,children:[_jsxs(_components.p,{children:[`Bookkeeping webhooks notify you about onboarding completion, first-month purchase date changes, and bookkeeping context events. A bookkeeping context event is a normalized audit-style event, so many bookkeeping actions share the same webhook type, `,_jsx(_components.code,{children:`bookkeeping_event.created`}),`; use `,_jsx(_components.code,{children:`data.resource_type`}),` and `,_jsx(_components.code,{children:`data.action`}),` to distinguish what happened.`]}),_jsx(Heading,{level:`2`,id:`event-types-2`,children:`Event types`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`bookkeeping_onboarding.completed`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`bookkeeping_purchase_date.update`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`bookkeeping_event.created`})}),`\n`]}),_jsx(Heading,{level:`2`,id:`bookkeeping_onboarding-completed`,children:_jsx(_components.code,{children:`bookkeeping_onboarding.completed`})}),_jsxs(_components.p,{children:[`Sent at the end of a business’s Layer bookkeeping onboarding call, when their bookkeeping configuration’s `,_jsx(_components.code,{children:`onboarding_date`}),` is set for the first time.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_onboarding_completed_a43f6b83-8932-4ced-b6b1-0199313274ca_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_onboarding.completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bookkeeping_configuration_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a43f6b83-8932-4ced-b6b1-0199313274ca\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"onboarding_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-07\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_month_purchased_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-01-01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"activation_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-01-01T05:00:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`payload-fields`,children:`Payload Fields`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier for this webhook event`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`bookkeeping_onboarding.completed`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`The Layer business ID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_external_id`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Your external identifier for the business, if set`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.bookkeeping_configuration_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`The ID of the bookkeeping configuration that completed onboarding`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.onboarding_date`})}),_jsx(_components.td,{children:`string (date)`}),_jsxs(_components.td,{children:[`The date when bookkeeping onboarding was completed, in `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` format`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.first_month_purchased_date`})}),_jsx(_components.td,{children:`string (date) or null`}),_jsxs(_components.td,{children:[`The business’s first purchased bookkeeping month, in `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` format. `,_jsx(_components.code,{children:`null`}),` when no first-month-purchased value is set on the bookkeeping configuration.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.activation_at`})}),_jsx(_components.td,{children:`string (date-time)`}),_jsx(_components.td,{children:`The business’s activation timestamp, in ISO 8601 format. Always present.`})]})]})]}),_jsx(Heading,{level:`3`,id:`when-this-webhook-fires`,children:`When This Webhook Fires`}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`bookkeeping_onboarding.completed`}),` webhook fires when Layer updates the business’s bookkeeping configuration at the end of their onboarding call.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`This webhook only fires when the `,_jsx(_components.code,{children:`onboarding_date`}),` transitions from unset (null) to a value. Subsequent updates to `,_jsx(_components.code,{children:`onboarding_date`}),` do not trigger additional webhooks.`]})}),_jsx(Heading,{level:`2`,id:`bookkeeping_purchase_date-update`,children:_jsx(_components.code,{children:`bookkeeping_purchase_date.update`})}),_jsxs(_components.p,{children:[`Sent when a business’s first purchased bookkeeping month changes on its bookkeeping configuration. Use this to keep your records in sync when Layer sets or updates the `,_jsx(_components.code,{children:`first_month_purchased_date`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_purchase_date_update_00000000-0000-0000-0000-000000000002_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_purchase_date.update\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"bookkeeping_configuration_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"00000000-0000-0000-0000-000000000002\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"first_month_purchased_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`payload-fields-2`,children:`Payload Fields`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier for this webhook event`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`bookkeeping_purchase_date.update`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`The Layer business ID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_external_id`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Your external identifier for the business, if set`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.bookkeeping_configuration_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`The ID of the bookkeeping configuration whose purchase date changed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.first_month_purchased_date`})}),_jsx(_components.td,{children:`string (date) or null`}),_jsxs(_components.td,{children:[`The business’s first purchased bookkeeping month, in `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` format. `,_jsx(_components.code,{children:`null`}),` when the first-month-purchased value has been cleared.`]})]})]})]}),_jsx(Heading,{level:`3`,id:`when-this-webhook-fires-2`,children:`When This Webhook Fires`}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`bookkeeping_purchase_date.update`}),` webhook fires whenever a business’s `,_jsx(_components.code,{children:`first_month_purchased_date`}),` changes.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`first_month_purchased_date`}),` can change more than once, so you may receive this event multiple times for the same business with each event having a unique `,_jsx(_components.code,{children:`id`}),`.`]})}),_jsx(Heading,{level:`2`,id:`bookkeeping_event-created`,children:_jsx(_components.code,{children:`bookkeeping_event.created`})}),_jsx(_components.p,{children:`Sent when Layer records a bookkeeping context event for a business. Examples include transaction categorizations, task updates, period status changes, connected account changes, adjustment entries, closing date updates, and catchup bookkeeping requests.`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_event_created_4d2df66e-ae15-4241-9f6b-9c4bdf19f83e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_event.created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4d2df66e-ae15-4241-9f6b-9c4bdf19f83e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BOOKKEEPING_PERIOD\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"77d54b21-d7d7-4bfc-8f33-2845e4f8e07a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PERIOD_STATUS_CHANGED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bookkeeper status changed period\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"MANUAL_BOOKKEEPER\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31T16:52:44Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"accounting_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31T04:59:59.999999999Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"previous_state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"TO_DO\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"new_state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DONE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"changed_fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`bookkeeping-context-fields`,children:`Bookkeeping context fields`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`Unique bookkeeping context event ID.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resource_type`})}),_jsx(_components.td,{children:`Bookkeeping resource affected by the event.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resource_id`})}),_jsx(_components.td,{children:`ID of the affected resource, when applicable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`action`})}),_jsx(_components.td,{children:`Specific bookkeeping action that occurred.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`summary`})}),_jsx(_components.td,{children:`Human-readable event summary.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`actor`})}),_jsx(_components.td,{children:`Actor that caused the event.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`count`})}),_jsx(_components.td,{children:`Count associated with batch events, when applicable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`event_at`})}),_jsx(_components.td,{children:`Timestamp when the event occurred.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`accounting_date`})}),_jsx(_components.td,{children:`Accounting-effective timestamp, when applicable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`previous_state`})}),_jsx(_components.td,{children:`Previous value or state, when applicable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`new_state`})}),_jsx(_components.td,{children:`New value or state, when applicable.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`changed_fields`})}),_jsxs(_components.td,{children:[`Fields changed by the action, when applicable. Setting a bookkeeping start date returns `,_jsx(_components.code,{children:`[\"bookkeeping_start_date\"]`}),`.`]})]})]})]}),_jsx(Heading,{level:`3`,id:`bookkeeping-context-actions`,children:`Bookkeeping context actions`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Resource type`}),_jsx(_components.th,{children:`Actions`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BANK_TRANSACTION`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CATEGORIZED`}),`, `,_jsx(_components.code,{children:`RECATEGORIZED`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BANK_TRANSACTION_BATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`BATCH_CATEGORIZED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TASK`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`TASK_CREATED`}),`, `,_jsx(_components.code,{children:`TASK_ANSWERED`}),`, `,_jsx(_components.code,{children:`TASK_COMPLETED`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BOOKKEEPING_PERIOD`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PERIOD_STATUS_CHANGED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BOOKKEEPING_STEP`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`STEP_COMPLETED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CONNECTED_ACCOUNT`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`ACCOUNT_CONNECTED`}),`, `,_jsx(_components.code,{children:`ACCOUNT_DISCONNECTED`}),`, `,_jsx(_components.code,{children:`ACCOUNT_NEEDS_REPAIR`}),`, `,_jsx(_components.code,{children:`ACCOUNT_REPAIRED`}),`, `,_jsx(_components.code,{children:`ACCOUNT_CREATED`}),`, `,_jsx(_components.code,{children:`ACCOUNT_ARCHIVED`}),`, `,_jsx(_components.code,{children:`ACCOUNT_REACTIVATED`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ADJUSTMENT_ENTRY`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`CUSTOM_ENTRY_CREATED`}),`, `,_jsx(_components.code,{children:`CLOSING_ACTION_CREATED`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ACCOUNTING_CONFIGURATION`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CLOSING_DATE_UPDATED`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BOOKKEEPING_CONFIGURATION`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`BOOKKEEPING_START_DATE_UPDATED`}),`, `,_jsx(_components.code,{children:`CATCHUP_BOOKKEEPING_REQUESTED`})]})]})]})]}),_jsx(Heading,{level:`3`,id:`catchup-bookkeeping-requests`,children:`Catchup bookkeeping requests`}),_jsxs(_components.p,{children:[`Catchup bookkeeping requests use `,_jsx(_components.code,{children:`bookkeeping_event.created`}),`, not a separate webhook type.\nTo identify a request, check that `,_jsx(_components.code,{children:`data.resource_type`}),` is `,_jsx(_components.code,{children:`BOOKKEEPING_CONFIGURATION`}),` and `,_jsx(_components.code,{children:`data.action`}),` is `,_jsx(_components.code,{children:`CATCHUP_BOOKKEEPING_REQUESTED`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`18`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`18`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_event_created_4d2df66e-ae15-4241-9f6b-9c4bdf19f83e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bookkeeping_event.created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"4d2df66e-ae15-4241-9f6b-9c4bdf19f83e\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BOOKKEEPING_CONFIGURATION\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"resource_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a43f6b83-8932-4ced-b6b1-0199313274ca\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CATCHUP_BOOKKEEPING_REQUESTED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"summary\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"User requested catchup bookkeeping\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"actor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USER\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-15T04:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"previous_state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"new_state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2023-07-01\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"changed_fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_requested_catchup_date\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`data.resource_id`}),` identifies the bookkeeping configuration.\n`,_jsx(_components.code,{children:`data.previous_state`}),` contains the previous requested date. It is omitted when no previous date was set.\n`,_jsx(_components.code,{children:`data.new_state`}),` contains the new requested date. Both dates use `,_jsx(_components.code,{children:`YYYY-MM-DD`}),` format.\n`,_jsx(_components.code,{children:`data.changed_fields`}),` is `,_jsx(_components.code,{children:`[\"user_requested_catchup_date\"]`}),`, and `,_jsx(_components.code,{children:`data.actor`}),` is `,_jsx(_components.code,{children:`USER`}),`.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`This event records a request. It does not confirm a purchase or change `,_jsx(_components.code,{children:`first_month_purchased_date`}),`.\nThe requested date alone does not create bookkeeping periods.`]})}),_jsx(Heading,{level:`3`,id:`actors`,children:`Actors`}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`actor`}),` can be `,_jsx(_components.code,{children:`USER`}),`, `,_jsx(_components.code,{children:`AI_BOOKKEEPER`}),`, `,_jsx(_components.code,{children:`MANUAL_BOOKKEEPER`}),`, `,_jsx(_components.code,{children:`SYSTEM`}),`, or `,_jsx(_components.code,{children:`UNKNOWN`}),`.`]})]}),_jsxs(Tab,{title:`External Account Events`,id:`external-account-events`,\"data-child-heading-ids\":`[\"payload-fields-3\",\"event-types-3\"]`,children:[_jsxs(_components.p,{children:[`External account events use the `,_jsx(_components.code,{children:`external_accounts.*`}),` namespace.\nThese events include the current count of external accounts that need repair for the business.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"external_accounts_account_connected_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"external_accounts.account.connected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plaid\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31T16:50:29Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"link_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"719b0d31-ba7b-4f1b-982a-c6334b0a544b\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_link_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plaid_item_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"account_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"92762148-f10b-42a5-b37f-b1e23fa3faca\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"external_account_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"plaid_account_456\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"accounts_needing_repair_count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`payload-fields-3`,children:`Payload Fields`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier for this webhook event.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The external account event type (e.g., `,_jsx(_components.code,{children:`external_accounts.account.connected`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`The Layer business ID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_external_id`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Your external identifier for the business, if set`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.provider`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The external account provider (e.g., `,_jsx(_components.code,{children:`plaid`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.at`})}),_jsx(_components.td,{children:`string (date-time)`}),_jsx(_components.td,{children:`ISO 8601 timestamp when the event occurred.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.link_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`Layer’s internal ID for the external account link.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.external_link_id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`The provider’s ID for the link (e.g., Plaid Item ID).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.account_ids`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Layer IDs of the affected external accounts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.external_account_ids`})}),_jsx(_components.td,{children:`array`}),_jsx(_components.td,{children:`Provider IDs of the affected external accounts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.accounts_needing_repair_count`})}),_jsx(_components.td,{children:`integer`}),_jsxs(_components.td,{children:[`Number of external accounts across the business that currently need repair. Only counts accounts where the parent bank account has `,_jsx(_components.code,{children:`notify_when_disconnected`}),` enabled. Excludes archived accounts.`]})]})]})]}),_jsx(Heading,{level:`3`,id:`event-types-3`,children:`Event types`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.link.connected`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.link.disconnected`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.link.archived`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.link.reactivated`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.link.needs_repair`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.link.repaired`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.account.connected`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.account.archived`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.account.reactivated`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.account.needs_repair`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`external_accounts.account.repaired`})}),`\n`]})]}),_jsxs(Tab,{title:`Plaid Events`,id:`plaid-events`,\"data-child-heading-ids\":`[\"payload-fields-4\",\"when-this-webhook-fires-3\"]`,children:[_jsxs(_components.p,{children:[`Plaid-specific events use the `,_jsx(_components.code,{children:`plaid.*`}),` namespace.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plaid_link_token_created_Aim3b8jJC9eRyfy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"plaid.link.token_created\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-03-31T16:50:29Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"plaid_request_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Aim3b8jJC9eRyfy\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`plaid.link.token_created`})}),`\n`]}),_jsx(Heading,{level:`3`,id:`payload-fields-4`,children:`Payload Fields`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier for this webhook event. Suffixed with the Plaid request id.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Always `,_jsx(_components.code,{children:`plaid.link.token_created`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_id`})}),_jsx(_components.td,{children:`string (UUID)`}),_jsx(_components.td,{children:`The Layer business ID`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_external_id`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Your external identifier for the business, if set`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.created_at`})}),_jsx(_components.td,{children:`string (date-time)`}),_jsx(_components.td,{children:`When the link token was created`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.plaid_request_id`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The Plaid `,_jsx(_components.code,{children:`request_id`}),` returned by Plaid for the link-token-create call. Useful when correlating with Plaid logs or support tickets.`]})]})]})]}),_jsx(Heading,{level:`3`,id:`when-this-webhook-fires-3`,children:`When This Webhook Fires`}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`plaid.link.token_created`}),` webhook fires whenever Layer mints a Plaid link token for a business. This corresponds to the user initiating the Plaid Link flow (e.g. clicking “Add Account” or starting an update-mode reconnect). The event fires before the user selects an institution or completes the flow, so it can be used as a click-level signal. To know when a connection is actually established, listen for `,_jsx(_components.code,{children:`external_accounts.link.connected`}),`.`]})]}),_jsxs(Tab,{title:`Call Booking Events`,id:`call-booking-events`,\"data-child-heading-ids\":`[\"event-types-4\",\"payload-fields-5\",\"when-this-webhook-fires-4\"]`,children:[_jsxs(_components.p,{children:[`Call booking events use the `,_jsx(_components.code,{children:`call_booking.*`}),` namespace. They notify you when a call booked through Calendly is scheduled, rescheduled, or canceled.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`21`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_booking_scheduled_00000000-0000-0000-0000-000000000001_03f6c94f-574d-42ca-a6cd-fecf2a2aeccb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"call_booking.scheduled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_external_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"biz_101\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"calendly_event_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.calendly.com/scheduled_events/76b3fb2d-b5d8-4d60-b969-cef8bd2900de\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_type_uri\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.calendly.com/event_types/8a30f193-5ca9-4c2a-8718-420d43fda157\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invitee_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jane Provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"invitee_email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"jane@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_start_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T12:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event_end_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2024-01-15T12:30:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"purpose\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BOOKKEEPING_ONBOARDING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"previous_calendly_event_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tracking\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"utm_source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"layer\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"utm_content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"business_id:8e7a359e-7af5-4f6e-b786-6ddfd1807c32\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"utm_term\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"partner-reference-42\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(Heading,{level:`3`,id:`event-types-4`,children:`Event types`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`call_booking.scheduled`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`call_booking.rescheduled`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`call_booking.canceled`})}),`\n`]}),_jsx(Heading,{level:`3`,id:`payload-fields-5`,children:`Payload Fields`}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Unique identifier for this webhook event.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`The call booking event type (for example, `,_jsx(_components.code,{children:`call_booking.scheduled`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_id`})}),_jsx(_components.td,{children:`string (UUID) or null`}),_jsx(_components.td,{children:`Always included. The Layer business ID if the booking is made for a specific business. Null when no business is identified at the time of booking.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`business_external_id`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Your external identifier, if set, when the booking is made for a specific business. Null when no business is identified at the time of booking.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.calendly_event_uri`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Calendly scheduled-event API URI for the call.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.event_type_uri`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Event type API URI identifying the kind of booking. Always included; null for older bookings without a stored URI. Reschedules use the new booking’s event type.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.invitee_name`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Name of the invitee who booked the call. Contains personally identifiable information (PII).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.invitee_email`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{children:`Email of the invitee who booked the call. Contains PII.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.event_start_at`})}),_jsx(_components.td,{children:`string (date-time)`}),_jsx(_components.td,{children:`ISO 8601 start time of the call. Required.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.event_end_at`})}),_jsx(_components.td,{children:`string (date-time) or null`}),_jsx(_components.td,{children:`ISO 8601 end time of the call.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.purpose`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[`Purpose of the call: `,_jsx(_components.code,{children:`BOOKKEEPING_ONBOARDING`}),` or `,_jsx(_components.code,{children:`ADHOC`}),`. Required.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.previous_calendly_event_id`})}),_jsx(_components.td,{children:`string or null`}),_jsxs(_components.td,{children:[`Calendly event ID of the booking that was replaced. Populated only on `,_jsx(_components.code,{children:`call_booking.rescheduled`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`data.tracking`})}),_jsx(_components.td,{children:`object or null`}),_jsx(_components.td,{children:`Provider tracking data captured when this booking was made. Always included; null when no tracking data is available.`})]})]})]}),_jsxs(_components.p,{children:[`Calendly bookings can include `,_jsx(_components.code,{children:`utm_source`}),`, `,_jsx(_components.code,{children:`utm_medium`}),`, `,_jsx(_components.code,{children:`utm_campaign`}),`, `,_jsx(_components.code,{children:`utm_content`}),`, `,_jsx(_components.code,{children:`utm_term`}),`, and `,_jsx(_components.code,{children:`salesforce_uuid`}),` in `,_jsx(_components.code,{children:`data.tracking`}),`. Arbitrary query parameters are not available. To pass your own reference through a Calendly booking link, use one of these available UTM parameters.`]}),_jsx(Heading,{level:`3`,id:`when-this-webhook-fires-4`,children:`When This Webhook Fires`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`call_booking.scheduled`}),` fires for a new booking.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`call_booking.rescheduled`}),` fires when an existing booking moves to a new time.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`call_booking.canceled`}),` fires when an existing booking is canceled without being rescheduled.`]}),`\n`]}),_jsxs(_components.p,{children:[`Business-specific fields (`,_jsx(_components.code,{children:`business_id`}),` and `,_jsx(_components.code,{children:`business_external_id`}),`) will be populated if a call booking can be identified as that specific business via parameters on the call booking URL. `,_jsx(_components.code,{children:`business_external_id`}),` is populated only if the business has an external ID. Both fields will be null if the business cannot be identified.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`A reschedule is delivered as a single `,_jsx(_components.code,{children:`call_booking.rescheduled`}),` event. Layer does not also send `,_jsx(_components.code,{children:`call_booking.canceled`}),` and `,_jsx(_components.code,{children:`call_booking.scheduled`}),` events for the same reschedule.`]})})]}),_jsxs(Tab,{title:`Export Events`,id:`export-events`,children:[_jsxs(_components.p,{children:[`Export events use the `,_jsx(_components.code,{children:`export.*`}),` namespace and notify you when an `,_jsx(_components.a,{href:`/guides/async-reports`,children:`async export`}),` finishes.`]}),_jsxs(_components.p,{children:[`These events are `,_jsx(_components.strong,{children:`client-scoped`}),`: the payload includes `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`type`}),`, and `,_jsx(_components.code,{children:`data`}),`, and does not include top-level `,_jsx(_components.code,{children:`business_id`}),` / `,_jsx(_components.code,{children:`business_external_id`}),`.`]}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example payload:`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"export_completed_00000000-0000-0000-0000-000000000006\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"export.completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"export_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"00000000-0000-0000-0000-000000000006\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"business_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"export_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"billing_report\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"completed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`export.completed`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`export.failed`})}),`\n`]}),_jsxs(_components.p,{children:[`After `,_jsx(_components.code,{children:`export.completed`}),`, call `,_jsx(_components.a,{href:`/api-reference/v1/fetch-export`,children:`Fetch export`}),` to retrieve the `,_jsx(_components.code,{children:`download_url`}),`.`]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Webhooks event catalog","sidebarTitle":"Event catalog","description":null,"href":"/api-details/webhooks-event-catalog"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Event Types","slug":"event-types","depth":2,"children":[{"title":"Events with additional metadata","slug":"events-with-additional-metadata","depth":3,"children":[],"tabId":"data-entity-events"},{"title":"Bank transaction document events","slug":"bank-transaction-document-events","depth":3,"children":[],"tabId":"data-entity-events"}]},{"title":"Event types","slug":"event-types-2","depth":2,"children":[],"tabId":"bookkeeping-events"},{"title":"bookkeeping_onboarding.completed","slug":"bookkeeping_onboarding-completed","depth":2,"children":[{"title":"Payload Fields","slug":"payload-fields","depth":3,"children":[],"tabId":"bookkeeping-events"},{"title":"When This Webhook Fires","slug":"when-this-webhook-fires","depth":3,"children":[],"tabId":"bookkeeping-events"}],"tabId":"bookkeeping-events"},{"title":"bookkeeping_purchase_date.update","slug":"bookkeeping_purchase_date-update","depth":2,"children":[{"title":"Payload Fields","slug":"payload-fields-2","depth":3,"children":[],"tabId":"bookkeeping-events"},{"title":"When This Webhook Fires","slug":"when-this-webhook-fires-2","depth":3,"children":[],"tabId":"bookkeeping-events"}],"tabId":"bookkeeping-events"},{"title":"bookkeeping_event.created","slug":"bookkeeping_event-created","depth":2,"children":[{"title":"Bookkeeping context fields","slug":"bookkeeping-context-fields","depth":3,"children":[],"tabId":"bookkeeping-events"},{"title":"Bookkeeping context actions","slug":"bookkeeping-context-actions","depth":3,"children":[],"tabId":"bookkeeping-events"},{"title":"Catchup bookkeeping requests","slug":"catchup-bookkeeping-requests","depth":3,"children":[],"tabId":"bookkeeping-events"},{"title":"Actors","slug":"actors","depth":3,"children":[],"tabId":"bookkeeping-events"}],"tabId":"bookkeeping-events"},{"title":"Payload Fields","slug":"payload-fields-3","depth":3,"children":[],"tabId":"external-account-events"},{"title":"Event types","slug":"event-types-3","depth":3,"children":[],"tabId":"external-account-events"},{"title":"Payload Fields","slug":"payload-fields-4","depth":3,"children":[],"tabId":"plaid-events"},{"title":"When This Webhook Fires","slug":"when-this-webhook-fires-3","depth":3,"children":[],"tabId":"plaid-events"},{"title":"Event types","slug":"event-types-4","depth":3,"children":[],"tabId":"call-booking-events"},{"title":"Payload Fields","slug":"payload-fields-5","depth":3,"children":[],"tabId":"call-booking-events"},{"title":"When This Webhook Fires","slug":"when-this-webhook-fires-4","depth":3,"children":[],"tabId":"call-booking-events"}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/layerfinancialtechnologiesinc/9c1eae5d582125a5/scripts/validate-docs-links.js","/_mintlify/custom/layerfinancialtechnologiesinc/b18193903b896216/scripts/validate-local-images.js"],"subdomain":"layerfinancialtechnologiesinc","siteName":"Layer","title":"Webhooks event catalog - Layer","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T17:55:15.669Z","originalFileLocation":"api-details/webhooks-event-catalog.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Layer\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Webhooks event catalog - Layer\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Layer\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.layerfi.com/api-details/webhooks-event-catalog\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://layerfinancialtechnologiesinc.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Webhooks+event+catalog\u0026amp;theme=105dd9e593effe53a54eaf85\u0026amp;signature=0ee8cb45e9e9629ed78e743d020f88e44d8d538db826a3459a6fd8d210d80968\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Webhooks event catalog - Layer\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://layerfinancialtechnologiesinc.mintlify.site/_mintlify/api/og/v2?division=Webhooks\u0026amp;title=Webhooks+event+catalog\u0026amp;theme=105dd9e593effe53a54eaf85\u0026amp;signature=0ee8cb45e9e9629ed78e743d020f88e44d8d538db826a3459a6fd8d210d80968\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/layerfinancialtechnologiesinc/8S-c4lWpUCPfDahX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Layer\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5ba183\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.layerfi.com/api-details/webhooks-event-catalog\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-details/webhooks-event-catalog.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.layerfi.com/#organization\",\"name\":\"Layer\",\"url\":\"https://docs.layerfi.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/layerfinancialtechnologiesinc/vN7_-byPIlUr9WYu/logo/layer_logo.svg?fit=max\u0026auto=format\u0026n=vN7_-byPIlUr9WYu\u0026q=85\u0026s=731d805a8bf32985beb197f69ae937e6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.layerfi.com#website\",\"name\":\"Layer\",\"url\":\"https://docs.layerfi.com\",\"publisher\":{\"@id\":\"https://docs.layerfi.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog#webpage\",\"url\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog\",\"name\":\"Webhooks event catalog\",\"dateModified\":\"2026-11-11T17:55:15.669Z\",\"isPartOf\":{\"@id\":\"https://docs.layerfi.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API details\",\"item\":\"https://docs.layerfi.com/api-details/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Webhooks\",\"item\":\"https://docs.layerfi.com/api-details/webhooks\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Webhooks event catalog\",\"item\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog#article\",\"headline\":\"Webhooks event catalog\",\"name\":\"Webhooks event catalog\",\"url\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog\",\"mainEntityOfPage\":{\"@id\":\"https://docs.layerfi.com/api-details/webhooks-event-catalog#webpage\"},\"dateModified\":\"2026-11-11T17:55:15.669Z\",\"publisher\":{\"@id\":\"https://docs.layerfi.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.layerfi.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Layer\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Layer\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-details/webhooks-event-catalog.md","siteName":"Layer","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"Overview","href":"/overview"},{"title":"Quickstart","href":"/guides/quickstart"},{"title":"Key concepts","href":"/guides/key-concepts"}]},{"group":"Integration steps","pages":[{"title":"Onboard a business","href":"/guides/business-onboarding"},{"group":"Import financial data","pages":[{"title":"Overview","href":"/guides/importing-financial-data-overview"},{"title":"Bank data","href":"/guides/importing-bank-data"},{"title":"Sales / AR data","href":"/guides/importing-sales-ar-data"},{"title":"Validate a sales data backfill","href":"/guides/validating-sales-data-backfills"},{"title":"Bill / AP data","href":"/guides/importing-bill-ap-data"},{"title":"Payroll data","href":"/guides/importing-payroll-data"},{"group":"Loans","pages":[{"title":"Loan data","href":"/guides/importing-loan-data"},{"title":"Backfilling existing loans","href":"/guides/loans/backfilling-existing-loans"},{"title":"Term loans","href":"/guides/loans/term-loans"},{"title":"Merchant cash advances (MCAs)","href":"/guides/loans/merchant-cash-advances"},{"title":"Flex loans","href":"/guides/loans/flex-loans"},{"title":"Lines of credit","href":"/guides/loans/lines-of-credit"},{"title":"Leases","href":"/guides/loans/leases"},{"title":"Equipment financing","href":"/guides/loans/equipment-financing"}]},{"title":"Asset data","href":"/guides/importing-asset-data"}]},{"group":"Surface accounting UIs","pages":[{"title":"Overview","href":"/guides/surface-accounting-uis-overview"},{"title":"Embed Layer React components","href":"/guides/embedded-components"},{"title":"Build custom UIs","href":"/guides/build-custom-uis"},{"title":"Build custom Plaid account linking","href":"/guides/custom-plaid-account-linking"},{"title":"Accounting reports","href":"/guides/reporting"},{"title":"Generating async reports","href":"/guides/async-reports"}]}]},{"group":"API details","pages":[{"title":"Authentication","href":"/api-details/authentication"},{"title":"JSON data","href":"/api-details/json-data"},{"title":"Idempotency","href":"/api-details/idempotency"},{"title":"Pagination","href":"/api-details/pagination"},{"title":"Rate limiting","href":"/api-details/rate-limiting"},{"group":"Webhooks","pages":[{"title":"Webhooks","sidebarTitle":"Setup","description":null,"href":"/api-details/webhooks"},{"title":"Webhooks event catalog","sidebarTitle":"Event catalog","href":"/api-details/webhooks-event-catalog"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/v1/list-businesses"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/banking/plaid"}]},{"tab":"Embedded Components","pages":[{"title":"Embedded Components","href":"/embedded-components/layerprovider-context"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/insights/mcp-server"}]},{"tab":"Status","href":"https://status.layerfi.com/"}]},"basePath":"","title":"Webhooks event catalog - Layer","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":[],"chunks":[]}