Skip to main content

findLastOrder

Returns the most recent order with the given number and customer email, optionally restricted to the given sales channels; null when none matches. Orders in the with_anomalies status are not returned.

findLastOrder(
channelCodes: [String!]
email: String!
number: String!
): Order

Arguments​

findLastOrder.channelCodes ● [String!] list scalar​

The codes of the sales channels to search in. Omit to search every channel.

findLastOrder.email ● String! non-null scalar​

The customer email address.

findLastOrder.number ● String! non-null scalar​

The order number (Order.number).

Type​

Order object​

An order acquired by OMS from a sales channel: header data and totals, billing, lines, shipping destinations, documents, payment transactions and repayment requests (returns).