VitePOS Bridge icon

VitePOS Bridge

Use VitePOS automation bridge and analytics APIs

Customer → Get Customer

AI-generated

Summary

Fetches a single VitePOS customer record by ID through the bridge's REST API (GET /wp-json/vtab/v1/customers/{id}) on the WordPress site from the credentials.

Inputs

  • Customer ID (required) — ID of the customer to load. It is inserted directly into the request path (/customers/{id}). It is not URL-encoded or validated.

Output shape

One output item per input item. It holds the bridge API's JSON response, with a response field added at the top.

response is a readable summary, such as "Customer 123 loaded." The ID comes from the response's id or customer_id, or from data.id if the API nests the record under data. If the API response is not an object, or already has a response key, the original payload is placed under raw instead. If the API returns status:false or success:false, response carries its message. Errors throw, unless Continue On Fail is on, in which case the item contains {error: message}. The call is read-only and sends no query string or body.

Examples

Example 1: Look up a customer's details after a WhatsApp message supplies their customer ID.

Resource: Customer, Operation: Get Customer, Customer ID: {{ $json.customer_id }}

Example 2: Fetch a fixed customer record for a report.

Resource: Customer, Operation: Get Customer, Customer ID: 42

Links

Discussion