PEAK Create Receipt
AI-generatedSummary
Sends a JSON payload to the PEAK API to create a receipt, authenticating with a User Token and a Client Token signed with the connect ID.
Inputs
- serverEnvironment (required) — Select the target server (UAT or Production).
- Body (required) — Raw JSON object to send. The merchantId and issueDate are typically required by the API.
- clientTokenOverride — Optional Client Token. If empty, uses the token from configured credentials. Useful when the token refreshes every 24 hours.
Output shape
A list of items, each containing a JSON object with success status, the API response data, and request headers.
If the node fails, the error message is included in the item's JSON.
Examples
Example 1: Create a production receipt for a merchant with ID 241027.
Server Environment: Production; JSON Body: {"merchantId": "241027", "issueDate": "2025-10-16", "items": []}
Example 2: Create a receipt in the UAT environment using a specific Client Token.
Server Environment: UAT; JSON Body: {"merchantId": "241027", "issueDate": "2025-10-16", "items": []}; Client Token Override: