Actions32
- Analytics Actions
- Batch Actions
- Customer Actions
- Order Actions
- Product Actions
- Purchase Actions
- Raw Request Actions
- System Actions
- Vendor Actions
- WhatsApp Actions
Customer → Get Customer
AI-generatedSummary
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.
responseis 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 underdata. If the API response is not an object, or already has aresponsekey, the original payload is placed underrawinstead. If the API returns status:false or success:false,responsecarries 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