Fetching an Order
Orders can be fetched in multiple ways in Crystallize, either by using the order ID or via the customer identifier. This section explains how you can fetch an order with the help of an order ID. We recommend reading more about the order object before fetching an order.
Once you have generated the access tokens, you can use the following endpoint to query the Order API:
Get Order Details Query
Fetching an order is fairly simple. All you need to do is provide an order ID to the query and then fetch the fields you would like the information for. The example query below fetches the name of the customer and the items contained in the order.
The above query is only fetching the most basic details. You can use any of the fields mentioned in the order object section to retrieve more information.