Léo Delivery Attendance icon

Léo Delivery Attendance

Ferramentas de atendimento WhatsApp para o Léo Delivery.

List Customer Orders

AI-generated

Summary

Requests the customer’s orders for a merchant from the payments API. Provide the merchant ID and the customer’s phone number in international format; the node returns the API response in a success envelope.

Inputs

  • Merchant ID (required) — Store UUID sent as the merchantId query parameter. Defaults to the incoming item’s merchantId.
  • Customer Phone (required) — Customer phone number in international format, sent as the customerPhone query parameter. Defaults to the incoming item’s customerPhone or phone.

Output shape

A success envelope for each input item, returned on the first output: { success: true, operation: "list_customer_orders", data, message }.

The request is a GET to the payments service’s /v1/internal/orders endpoint. The operation message says it is unavailable in the current backend, but the implementation still makes the request and wraps its response as a success. The second output is only used for unsuccessful get_merchant_by_whatsapp_instance results.

Links

Discussion