Create Receipt
AI-generatedSummary
Send a JSON payload to the PEAK API to create a receipt in the specified server environment.
Inputs
- Server Environment (required) — Select the target environment for the receipt creation request, either UAT or Production.
- JSON Body (required) — Provide the raw JSON payload representing the receipt details. This must be a valid JSON object and can be mapped dynamically from previous nodes using expressions like {{$json}}.
- Client Token (override) — Optionally specify a client token to override the credential-stored token, useful when tokens refresh frequently (e.g. every 24 hours).
Output shape
a list with one item containing a JSON object that includes success status, HTTP status code, response data from PEAK API, and request headers; or an error object if the request fails and Continue On Fail is enabled.
The operation sends a POST request to the PEAK receipts endpoint with the given payload and authentication headers. If the override client token is not provided, the node uses the token stored in the PEAKApi credentials. Invalid JSON body or missing tokens result in errors unless Continue On Fail is enabled, in which case error information is returned for the corresponding item.
Examples
Example 1: Creating a receipt in UAT environment
Set Server Environment to UAT, provide the JSON Body for the receipt, optionally override Client Token, and execute the node to send receipt creation request.