Magento2 Search for Orders by Email

This action is used to get order information from Magento2.

https://adobe-commerce.redoc.ly/2.4.7-admin/tag/orders#operation/GetV1Orders

We are using the following query parameters in this action:

  • searchCriteria[0][0][field] = customer_email
  • searchCriteria[0][0][value] = {Email}

Inputs

In order to use the action in your flow you need to provide it with the following inputs:

InputTypeDescription
Magento HostCredentialsMagento Host / Domain Name
Access TokenCredentialsThe access token required to execute API calls with Magento2
Max Order ResultsOptional NumberMax number of orders to return. Defaults to 2
EmailStringThe customer's email used to place the order

Outputs

OutputTypeDecription
SuccessBooleanTrue if managed to find an order; False if no orders found.
Shipment FoundBooleanTrue if shipment found from order, False if no Shipments found
OrderObjectRaw order data
List of OrdersListList of orders with order number and order date

Did this page help you?