Techdocs
Nosto
Search…
Introduction
Implementing Nosto
Implement on your website
Implement on native mobile
Implement on a physical store
Checking your setup
APIs
GraphQL
The Playground
Using the API
Testing and Debugging
Using Mutations
Using Queries
Querying Products
Querying Identities
Querying Orders
Querying Recommendations
Querying Segments
Querying Category Merchandising Products
For iOS & Android
For Headless
REST
Frontend
JS API
3rd party data integrations
3rd party data integrations
Visit Nosto
Issues
Magento
Magento 2
Shopware
Shopify
Prestashop
BigCommerce
PHP-SDK
Salesforce
Powered By
GitBook
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.
curl
-0
-
v
-
X
POST
https
:
//
api
.
nosto
.
com
/
v1
/
graphql
\
-
u
":<token>"
\
-
H
'
Content
-
Type
:
application
/
graphql
' \
-
d
@- <<
EOF
query
{
order
(
id
:
"M2_2"
)
{
number
reference
items
{
productId
skuId
unitPrice
priceCurrencyCode
quantity
}
recos
(
preview
:
true
,
image
:
VERSION_1_170_170
)
{
related
(
params
:
{
minProducts
:
1
,
maxProducts
:
5
})
{
primary
{
productId
name
price
}
}
}
}
}
EOF
Previous
Querying Identities
Next
Querying Recommendations
Last modified
2yr ago
Copy link