The Order Object
Orders are a core part of Crystallize. The order object has the following key components - Customer, Cart, Payment, Total, and other additional information. Let's take a look at each of these!
Once a customer places an order, the order is pushed to Crystallize. Here, we store the following information - name, birthdate, contact details, and addressees (shipping and billing address). The example below shows how the Customer type looks like:
Cart information includes details regarding the products purchased. This implies it includes particulars such as - name of the product, variants, sku, images, quantity, price related information, subscription data, etc.
The total field gives you price related information including the gross price, net amount, currency, discount, and tax. Here is how you can query this field:
Metadata and Additional Information
An order can contain more information aside from the what is contained in the fields discussed above. Any meta information provided with the order can be accessed via the meta field. Same goes for any additional information as well.