Hi everyone,
When I ran the following query, Shopify response an error with message “Field customerJourneySummary doesn’t exist on type Order” but in the API document there is a customerJourneySummary field for the Order object.
I cant figure out why this is happened, please tell me where the problem is.
Thank you for your support!
Query:
graphQLquery = """
query ($orderID: ID!){
order(id: $orderID) {
id
customerJourneySummary {
firstVisit {
landingPage
referrerUrl
source
sourceType
}
lastVisit {
landingPage
referrerUrl
source
sourceType
}
ready
}
}
}
"""
Response text:
{
"errors": [
{
"message": "Field 'customerJourneySummary' doesn't exist on type 'Order'",
"locations": [
{
"line": 5,
"column": 21
}
],
"path": [
"query",
"order",
"customerJourneySummary"
],
"extensions": {
"code": "undefinedField",
"typeName": "Order",
"fieldName": "customerJourneySummary"
}
}
]
}
Document link: https://shopify.dev/docs/admin-api/graphql/reference/orders/order?api%5Bversion%5D=2020-10
