Actions32
- Analytics Actions
- Batch Actions
- Customer Actions
- Order Actions
- Product Actions
- Purchase Actions
- Raw Request Actions
- System Actions
- Vendor Actions
- WhatsApp Actions
Batch → Get Batch
AI-generatedSummary
Fetches a single VitePOS batch record by its ID through the VitePOS Bridge REST API on your WordPress site (GET /wp-json/vtab/v1/batches/{batchId}).
Inputs
- batchId (required) — ID of the batch to retrieve. It is inserted directly into the request path, so supply the numeric or string batch ID as VitePOS knows it.
Output shape
One output item per input item. Its JSON is the bridge API's response for the batch, with a human-readable response string added at the top.
The
responsestring is the generic text 'Batch request completed.', because the summary text is only built for the Batch Status operation. If the API response already has aresponsekey, the original payload is nested underraw. If the API returns status/success false,responsecarries its message. With Continue On Fail enabled, a failed item returns{error: message}. Requires the viteposBridgeApi credential, which supplies the site URL.
Examples
Example 1: Look up a batch's expiry date and remaining quantity after a stock alert.
Resource: Batch; Operation: Get Batch; Batch ID: {{$json.batch_id}}
Example 2: Check a specific batch before updating it.
Resource: Batch; Operation: Get Batch; Batch ID: 42, then feed the output into an Update Batch node.