HI @madhupatel!
You can use the order query and pass the legacy_id as id.
For example, if the legacy_id was 117902188, the query would be something like:
query {
order(id: "117902188") {
request_id
complexity
data {
id
legacy_id
order_number
shop_name
fulfillment_status
order_date
profile
required_ship_date
shipping_lines {
carrier
method
price
}
shipping_address {
first_name
last_name
address1
address2
city
state
state_code
zip
country
}
tags
line_items(first: 2) {
edges {
node {
id
sku
quantity
product_name
fulfillment_status
quantity_allocated
backorder_quantity
barcode
}
cursor
}
}
shipments {
id
order_id
user_id
warehouse_id
address {
name
address1
address2
city
state
country
zip
}
shipped_off_shiphero
dropshipment
}
returns {
id
reason
status
}
}
}
}
You can also check for the id of that order using the uuid query, for example:
query {
uuid(legacy_id: 117902188, entity: Order) {
request_id
complexity
data {
legacy_id
id
}
}
}