Techdocs
Search…
Querying Orders
You can query orders using the GraphQL orders endpoint. So long as you are able to specify the order number or an external order reference, you will be able to query the order.
1
curl -0 -v -X POST https://api.nosto.com/v1/graphql \
2
-u ":<token>" \
3
-H 'Content-Type: application/graphql' \
4
-d @- << EOF
5
query {
6
order(id: "M2_2") {
7
number
8
reference
9
items {
10
productId
11
skuId
12
unitPrice
13
priceCurrencyCode
14
quantity
15
}
16
recos(preview: true, image: VERSION_1_170_170) {
17
related(params: {
18
minProducts: 1,
19
maxProducts: 5
20
}) {
21
primary {
22
productId
23
name
24
price
25
}
26
}
27
}
28
}
29
}
30
EOF
Copied!
Last modified 1yr ago
Copy link