I’ve tried to get order detail by checkout id using a storefront access token. but it returns null. I got the proper response when I call the admin API. I’ve checked the access scope for that token, it has all the required scope. Kindly help me to fix this issue.
Sample query and response below :
query:
{node(
id: "CHECKOUT_ID_HERE"
) {
... on Checkout {
id
createdAt
completedAt
order {
id
}
}
}
}
Response :
{
"data": {
"node": {
"id": "CHECKOUT_ID_HERE",
"createdAt": "2022-10-20T09:33:08Z",
"orderStatusUrl": null,
"completedAt": null,
"order": null,
}
}
}