New Expense
Sent when an expense is recorded.
When it’s sent
- An expense is recorded.
type is NEW_EXPENSE. See the introduction to subscribe to this event and verify the X-Hub-Signature-256 signature.
amount is sent as a decimal string (for example "1250.00"), unlike the other amounts, which are numbers.Headers
HMAC SHA-256 of the raw request body, keyed with your Verify Token, as sha256=<hex>. Sent only when a Verify Token is set.
"sha256=3f1c5e…"
Body
Sent when an expense is recorded.
Payload version.
v1.0 "v1.0"
Event type.
NEW_EXPENSE "NEW_EXPENSE"
Expense ID.
"ckx1e0000001"
Expense name.
"Dental supplies"
Expense amount, as a decimal string.
"1250.00"
Main expense category.
COST_OF_REVENUE, OPERATING_EXPENSES, TAX, OTHER "OPERATING_EXPENSES"
Expense type. Uses your custom expense type name when one is set.
"Supplies"
Expense sub-type.
null
Notes.
null
Expense items.
Payments made for this expense.
Branch.
Response
Return any 2xx status within 5 seconds to acknowledge the event. Failed deliveries are not retried.