VitePOS Bridge icon

VitePOS Bridge

Use VitePOS automation bridge and analytics APIs

Order → Get Order

AI-generated

Summary

Fetches a single VitePOS order by ID from the connected WordPress/VitePOS site via the bridge REST API (GET /wp-json/vtab/v1/orders/{id}), optionally including batch data.

Inputs

  • Order ID (required) — ID of the order to retrieve; inserted directly into the request path (/orders/{id}).
  • Order Options > Include Batch Data — Boolean. When set, sent as include_batch_data=1 (or 0 if explicitly false) so the response can include batch information. Omitted from the request if the option isn't added.

Output shape

One JSON item per input item containing the order record as returned by the bridge API, plus a 'response' field with a short readable summary (e.g. 'Order 123 loaded.').

The 'response' text is prepended to the API fields; if the API response already has a 'response' key, the original is placed under 'raw'. API failures (status/success false) produce a failure message in 'response'. With Continue On Fail enabled, errors are returned as {error: message} for that item. Requires the VitePOS Bridge API credential (site URL).

Examples

Example 1: Look up an order referenced in an incoming webhook or WhatsApp message.

Resource: Order, Operation: Get Order, Order ID: {{ $json.order_id }}

Example 2: Retrieve an order with its stock batch allocations for auditing expiry/batch usage.

Order ID: 456; Order Options > Include Batch Data: true

Links

Discussion