checkoutToken is a query filter on the orders query (docs), but it’s not available as a selectable field. Is this intentional and/or what is the best way to retrieve the checkout token for a given order?
1 Like
This post is related to this prior thread. TL;DR - you have to link checkout sessions with an order in order to retrieve an order’s checkout tokens.
If you’re working within a checkout extension, the checkoutToken is available via the extension API context (e.g., useApi().checkoutToken).
As you noted, the most reliable approach for GraphQL-only apps is to capture and store the association between checkout sessions and orders at checkout time, rather than trying to retrieve it after the fact.