Create Expense
AI-generatedSummary
Send a JSON payload to the PEAK API to create a new expense record in the specified server environment (UAT or Production).
Inputs
- Server Environment (required) — Select the target PEAK API server environment to send the request to, either 'UAT' or 'Production'.
- JSON Body (required) — Provide the raw JSON payload for creating the expense, which must parse as an object. Supports mapping from previous nodes using expressions like {{$json}}.
- Client Token (override) — Optionally override the client token used for authentication; useful if the token frequently refreshes (every 24 hours). If not provided, the token from credentials is used.
Output shape
a single JSON object containing success status, HTTP status code (200), the response data from PEAK API, and request headers used
Returns an array with one item containing a JSON object per input item. On failure, returns an error message for the failed item if 'Continue On Fail' is enabled; otherwise, throws an error stopping the workflow.