PEAK Create Invoice
AI-generatedSummary
Sends a POST request to the PEAK API to create an invoice using credentials and a custom JSON payload, signing requests with a timestamp and HMAC.
Inputs
- serverEnvironment (required) — Target server environment; 'production' routes to api.peakaccount.com, otherwise to peakengineapidev.azurewebsites.net.
- Body (required) — Raw JSON string to send as the request body; must represent an object. Can be mapped from previous node data using {{$}}.
- clientTokenOverride — Optional client token to use instead of the one from the PEAKApi credential.
Output shape
A list of items where each contains a 'success', 'statusCode', 'data', and 'headers' object with the API response and request metadata.
If 'Continue on Error' is enabled, failed items return an object with only an 'error' field. The node requires valid 'User-Token' and 'Client-Token' credentials.
Examples
Example 1: Create a production invoice
Select 'Production' environment, provide a JSON body with merchantId and items, and ensure valid credentials.
Example 2: Override the client token temporarily
Select the target environment, provide the JSON body, and set 'Client Token (override)' to bypass the credential's token.