Léo Delivery Attendance icon

Léo Delivery Attendance

Ferramentas de atendimento WhatsApp para o Léo Delivery.

Get Order Details

AI-generated

Summary

Fetches order details from the payments API using a merchant ID, customer phone number, and order code. Returns the API response in a success envelope for each input item.

Inputs

  • Merchant ID (required) — Store UUID. Defaults from $json.merchantId.
  • Customer Phone (required) — Customer phone in international format. Defaults from $json.customerPhone or $json.phone.
  • Message — Can supply the order code when the Order Code field is empty; defaults from $json.message or $json.text.
  • Order Code (required) — Order identifier sent as orderCode. Defaults from $json.orderCode, $json.code, or $json.message.

Output shape

A success envelope for each input item, with success, operation, data, and message fields.

Makes a GET request to the payments API’s /v1/internal/orders/details endpoint with merchant ID, customer phone, and order code query parameters. The returned operation field is lookup_order_status and the message describes a status lookup, despite the UI operation being Get Order Details. API errors are thrown as node errors.

Links

Discussion