VitePOS Bridge icon

VitePOS Bridge

Use VitePOS automation bridge and analytics APIs

Batch → Get Batch

AI-generated

Summary

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 response string 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 a response key, the original payload is nested under raw. If the API returns status/success false, response carries 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.

Links

Discussion