Skip to content

order object ​

Last updated View as Markdown

A completed order. Available in the thankyou, upsell and customer-order templates, and from customer.orders and customer.last_order.

Properties ​


NameTypeDescription
idstringOrder identifier
refstringOrder reference, for example 1042
namestringOrder reference with a #, for example #1042
created_atstringThe date of the order, in ISO 8601
financial_statusstringPayment status slug, for example paid or pending
fulfillment_statusstringShipping status slug, for example fulfilled or unfulfilled, or nil
customer_urlstringThe URL of the order page in the customer account
shipping_addressaddress object or nullThe shipping address
paymentStatusstringHuman-readable payment status
paymentStatusSlugstringMachine-readable payment status slug
gatewayTypestringPayment gateway used
shippingCoststringShipping cost. 0 or null means free shipping
sub_totalnumberOrder items subtotal
totalnumberOrder total, including VAT, shipping, and any coupon discount
total_tax_amountnumberTotal tax amount
vatnumberVAT rate as a fraction (for example, 0.2 for 20%)
order_variantsarray of order_variant objectThe purchased product variants
couponcoupon object or nullThe coupon applied to the order, if any
metafieldsarrayOrder metafields