PEAK icon

PEAK

Interact with the PEAK Accounting API

Actions11

Invoice → Create Expense

AI-generated

Summary

Send a raw JSON payload to create a new expense record in the PEAK Accounting system.

Inputs

  • Server Environment (required) — Selects the target PEAK server environment, either UAT or Production.
  • JSON Body (required) — Provide the raw JSON payload representing the expense details, which can be mapped from previous nodes.
  • Client Token — Optionally provide a client token, typically obtained from a prior Create Client Token operation, to authorize the request.

Output shape

a single JSON object containing the response from the PEAK API for the created expense

The output is a single JSON response paired with the input item. The JSON Body must be a valid JSON object string. If the client token is not supplied, the node throws an error explaining that the token is required.

Examples

Example 1: Creating an expense record

Set Server Environment to 'Production', map a properly structured JSON object to JSON Body containing the expense details, and optionally supply a Client Token from a previous node to authenticate the request.

Links

Discussion