Expense webhook

Receive automated updates on expense status changes.

With our expense webhook service, you can subscribe a webhook to specific expense events (status changes).

The events for which you can receive notifications are:

  • ExpenseSubmitted
  • ExpenseRecalled
  • ExpenseDeleted
  • ExpenseApproved
  • ExpenseControlled
  • ExpenseUnapproved
  • ExpenseRejected

For example, this gives you the option to pick up expenses that have gone through the approval flow and are ready to be booked.

When receiving an event, the following details will be listed:

  "eventTimestamp"
  "expenseId"
  "userId"
  "companyId"
  "eventType"
  "correlationId"

Using the ExpenseId, you can perform a GET request to pick up that specific expense and book it in your ERP.

If the expense was booked successfully, you can now set that expense as reported in Rydoo via our PUT request.

Provide Your Webhook URL
To enable API webhook events and receive updates in real-time, please provide your webhook URL. This URL will be used to send event notifications directly to your system whenever changes occur. Ensure the URL is accessible and can process incoming events securely. To have this functionality activated, don't hesitate to reach out to your CSM or [email protected].


🚧

Webhook limitation for Rydoo Cards

The webhook functionality is currently not compatible in combination with Rydoo Cards. Please do not hesitate to reach out to us at [email protected] in case of any questions about this limitation.


Multiple VAT in webhook-based integrations

Rydoo now supports the possibility to assign multiple VAT rates to a single expense. Please find below a high-level overview of what happens when this feature is enabled:

  • Rydoo behavior: a single expense can have multiple VAT rates. When multiple VAT rates are applied, Rydoo creates multiple child expenses (one per VAT rate) linked to a single parent expense in the back-end. While users will still only see the main expense (=parent expense) in Rydoo UI, the data base will actually contain multiple child expenses, one per VAT rate, with all other expense data still the same.
  • Integration behavior: For multiple VAT expenses, only one webhook notification is sent, always for the parent expense. No separate notifications are emitted for child expenses. Additional properties have been added to the response of endpoint GET /v3/expenses/{expenseId} to identify the use of multiple tax rates and linked child expenses. These child expenses can then again be further retrieved with the endpoint.

The API response exposes the VAT breakdown in regular.taxRates[] and the split role in regular.softSplitTypeproperties. For parent multiple VAT expenses, each VAT line includes expenseGuid and xpdReference of the child expense, so you can identify and target the related child expense when needed. The existing singular tax fields remain for compatibility, but regular.taxRates[] is the recommended field for multiple VAT scenarios.

Changing expense status via API

For updating the status of an expense with multiple VAT in Rydoo (=parent Expense), either the parent expenseGuid or child expenseGuid can be used:

  • Example: PUT /v3/expenses/parentExpenseGuid/report
  • Result: the parent expense is reported and its related VAT children are reported with it.

Or

  • Example: PUT /v3/expenses/childExpenseGuid/report
  • Result: the child expense is reported, and the parent and all sibling VAT children are also reported with it.

The same logic will apply for setting expenses to Reimbursed. Once the parent expense is marked as reimbursed, it will remain reimbursed even if a rejected status is later sent for another child expense.

Best practice

The typical integration flow with above logic in place would look like:

  1. Receive webhook notification containing the parent expenseId
  2. GET /v3/expenses/{expenseId} to retrieve the full expense including regular.taxRates[] and child expenseGuids
  3. Action the expense using the parent or child expenseId as needed

If you want to act on the full multiple VAT expense, use the parent expense id. If you want to act on one specific VAT child, use regular.taxRates[].expenseGuid.

To activate the “Multiple VAT” feature in your Rydoo account, please contact your customer success manager.