Introducing our brand new Rules Engine —
Read the docs
LogoLogo
Core APIOther APIsChangelog
API reference
API reference
  • Introduction
  • Addresses
    • The address object
    • Create an address
    • List all addresses
    • Retrieve an address
    • Update an address
    • Delete an address
  • Adjustments
    • The adjustment object
    • Create an adjustment
    • List all adjustments
    • Retrieve an adjustment
    • Update an adjustment
    • Delete an adjustment
  • Adyen gateways
    • The adyen gateway object
    • Create an adyen gateway
    • List all adyen gateways
    • Retrieve an adyen gateway
    • Update an adyen gateway
    • Delete an adyen gateway
  • Adyen payments
    • The adyen payment object
    • Create an adyen payment
    • List all adyen payments
    • Retrieve an adyen payment
    • Update an adyen payment
    • Delete an adyen payment
  • Applications
    • The application object
    • Retrieve the application
  • Attachments
    • The attachment object
    • Create an attachment
    • List all attachments
    • Retrieve an attachment
    • Update an attachment
    • Delete an attachment
  • Authorizations
    • The authorization object
    • List all authorizations
    • Retrieve an authorization
    • Update an authorization
  • Avalara accounts
    • The avalara account object
    • Create an avalara account
    • List all avalara accounts
    • Retrieve an avalara account
    • Update an avalara account
    • Delete an avalara account
  • Axerve gateways
    • The axerve gateway object
    • Create an axerve gateway
    • List all axerve gateways
    • Retrieve an axerve gateway
    • Update an axerve gateway
    • Delete an axerve gateway
  • Axerve payments
    • The axerve payment object
    • Create an axerve payment
    • List all axerve payments
    • Retrieve an axerve payment
    • Update an axerve payment
    • Delete an axerve payment
  • Bing geocoders
    • The bing geocoder object
    • Create a bing geocoder
    • List all bing geocoders
    • Retrieve a bing geocoder
    • Update a bing geocoder
    • Delete a bing geocoder
  • Braintree gateways
    • The braintree gateway object
    • Create a braintree gateway
    • List all braintree gateways
    • Retrieve a braintree gateway
    • Update a braintree gateway
    • Delete a braintree gateway
  • Braintree payments
    • The braintree payment object
    • Create a braintree payment
    • List all braintree payments
    • Retrieve a braintree payment
    • Update a braintree payment
    • Delete a braintree payment
  • Bundles
    • The bundle object
    • Create a bundle
    • List all bundles
    • Retrieve a bundle
    • Update a bundle
    • Delete a bundle
  • Buy x pay y promotions
    • The buy x pay y promotion object
    • Create a buy x pay y promotion
    • List all buy x pay y promotions
    • Retrieve a buy x pay y promotion
    • Update a buy x pay y promotion
    • Delete a buy x pay y promotion
  • Captures
    • The capture object
    • List all captures
    • Retrieve a capture
    • Update a capture
  • Carrier accounts
    • The carrier account object
    • Create a carrier account
    • List all carrier accounts
    • Retrieve a carrier account
    • Update a carrier account
    • Delete a carrier account
  • Checkout.com gateways
    • The checkout.com gateway object
    • Create a checkout.com gateway
    • List all checkout.com gateways
    • Retrieve a checkout.com gateway
    • Update a checkout.com gateway
    • Delete a checkout.com gateway
  • Checkout.com payments
    • The checkout.com payment object
    • Create a checkout.com payment
    • List all checkout.com payments
    • Retrieve a checkout.com payment
    • Update a checkout.com payment
    • Delete a checkout.com payment
  • Cleanups
    • The cleanup object
    • Create a cleanup
    • List all cleanups
    • Retrieve a cleanup
    • Update a cleanup
    • Delete a cleanup
  • Coupon codes promotion rules
    • The coupon codes promotion rule object
    • Create a coupon codes promotion rule
    • List all coupon codes promotion rules
    • Retrieve a coupon codes promotion rule
    • Update a coupon codes promotion rule
    • Delete a coupon codes promotion rule
  • Coupon recipients
    • The coupon recipient object
    • Create a coupon recipient
    • List all coupon recipients
    • Retrieve a coupon recipient
    • Update a coupon recipient
    • Delete a coupon recipient
  • Coupons
    • The coupon object
    • Create a coupon
    • List all coupons
    • Retrieve a coupon
    • Update a coupon
    • Delete a coupon
  • Custom promotion rules
    • The custom promotion rule object
    • Create a custom promotion rule
    • List all custom promotion rules
    • Retrieve a custom promotion rule
    • Update a custom promotion rule
    • Delete a custom promotion rule
  • Customer addresses
    • The customer address object
    • Create a customer address
    • List all customer addresses
    • Retrieve a customer address
    • Update a customer address
    • Delete a customer address
  • Customer groups
    • The customer group object
    • Create a customer group
    • List all customer groups
    • Retrieve a customer group
    • Update a customer group
    • Delete a customer group
  • Customer password resets
    • The customer password reset object
    • Create a customer password reset
    • List all customer password resets
    • Retrieve a customer password reset
    • Update a customer password reset
    • Delete a customer password reset
  • Customer payment sources
    • The customer payment source object
    • Create a customer payment source
    • List all customer payment sources
    • Retrieve a customer payment source
    • Update a customer payment source
    • Delete a customer payment source
  • Customer subscriptions
    • The customer subscription object
    • Create a customer subscription
    • List all customer subscriptions
    • Retrieve a customer subscription
    • Update a customer subscription
    • Delete a customer subscription
  • Customers
    • The customer object
    • Create a customer
    • List all customers
    • Retrieve a customer
    • Update a customer
    • Delete a customer
  • Delivery lead times
    • The delivery lead time object
    • Create a delivery lead time
    • List all delivery lead times
    • Retrieve a delivery lead time
    • Update a delivery lead time
    • Delete a delivery lead time
  • Easypost pickups
    • The easypost pickup object
    • Create an easypost pickup
    • List all easypost pickups
    • Retrieve an easypost pickup
    • Update an easypost pickup
    • Delete an easypost pickup
  • Event callbacks
    • The event callback object
    • List all event callbacks
    • Retrieve an event callback
  • Events
    • The event object
    • List all events
    • Retrieve an event
    • Update an event
  • Exports
    • The export object
    • Create an export
    • List all exports
    • Retrieve an export
    • Update an export
    • Delete an export
  • External gateways
    • The external gateway object
    • Create an external gateway
    • List all external gateways
    • Retrieve an external gateway
    • Update an external gateway
    • Delete an external gateway
  • External payments
    • The external payment object
    • Create an external payment
    • List all external payments
    • Retrieve an external payment
    • Update an external payment
    • Delete an external payment
  • External promotions
    • The external promotion object
    • Create an external promotion
    • List all external promotions
    • Retrieve an external promotion
    • Update an external promotion
    • Delete an external promotion
  • External tax calculators
    • The external tax calculator object
    • Create an external tax calculator
    • List all external tax calculators
    • Retrieve an external tax calculator
    • Update an external tax calculator
    • Delete an external tax calculator
  • Fixed amount promotions
    • The fixed amount promotion object
    • Create a fixed amount promotion
    • List all fixed amount promotions
    • Retrieve a fixed amount promotion
    • Update a fixed amount promotion
    • Delete a fixed amount promotion
  • Fixed price promotions
    • The fixed price promotion object
    • Create a fixed price promotion
    • List all fixed price promotions
    • Retrieve a fixed price promotion
    • Update a fixed price promotion
    • Delete a fixed price promotion
  • Flex promotions
    • The flex promotion object
    • Create a flex promotion
    • List all flex promotions
    • Retrieve a flex promotion
    • Update a flex promotion
    • Delete a flex promotion
  • Free gift promotions
    • The free gift promotion object
    • Create a free gift promotion
    • List all free gift promotions
    • Retrieve a free gift promotion
    • Update a free gift promotion
    • Delete a free gift promotion
  • Free shipping promotions
    • The free shipping promotion object
    • Create a free shipping promotion
    • List all free shipping promotions
    • Retrieve a free shipping promotion
    • Update a free shipping promotion
    • Delete a free shipping promotion
  • Geocoders
    • The geocoder object
    • List all geocoders
    • Retrieve a geocoder
  • Gift card recipients
    • The gift card recipient object
    • Create a gift card recipient
    • List all gift card recipients
    • Retrieve a gift card recipient
    • Update a gift card recipient
    • Delete a gift card recipient
  • Gift cards
    • The gift card object
    • Create a gift card
    • List all gift cards
    • Retrieve a gift card
    • Update a gift card
    • Delete a gift card
  • Google geocoders
    • The google geocoder object
    • Create a google geocoder
    • List all google geocoders
    • Retrieve a google geocoder
    • Update a google geocoder
    • Delete a google geocoder
  • Imports
    • The import object
    • Create an import
    • List all imports
    • Retrieve an import
    • Update an import
    • Delete an import
  • In stock subscriptions
    • The in stock subscription object
    • Create an in stock subscription
    • List all in stock subscriptions
    • Retrieve an in stock subscription
    • Update an in stock subscription
    • Delete an in stock subscription
  • Inventory models
    • The inventory model object
    • Create an inventory model
    • List all inventory models
    • Retrieve an inventory model
    • Update an inventory model
    • Delete an inventory model
  • Inventory return locations
    • The inventory return location object
    • Create an inventory return location
    • List all inventory return locations
    • Retrieve an inventory return location
    • Update an inventory return location
    • Delete an inventory return location
  • Inventory stock locations
    • The inventory stock location object
    • Create an inventory stock location
    • List all inventory stock locations
    • Retrieve an inventory stock location
    • Update an inventory stock location
    • Delete an inventory stock location
  • Klarna gateways
    • The klarna gateway object
    • Create a klarna gateway
    • List all klarna gateways
    • Retrieve a klarna gateway
    • Update a klarna gateway
    • Delete a klarna gateway
  • Klarna payments
    • The klarna payment object
    • Create a klarna payment
    • List all klarna payments
    • Retrieve a klarna payment
    • Update a klarna payment
    • Delete a klarna payment
  • Line item options
    • The line item option object
    • Create a line item option
    • List all line item options
    • Retrieve a line item option
    • Update a line item option
    • Delete a line item option
  • Line items
    • The line item object
    • Create a line item
    • List all line items
    • Retrieve a line item
    • Update a line item
    • Delete a line item
  • Links
    • The link object
    • Create a link
    • List all links
    • Retrieve a link
    • Update a link
    • Delete a link
  • Manual gateways
    • The manual gateway object
    • Create a manual gateway
    • List all manual gateways
    • Retrieve a manual gateway
    • Update a manual gateway
    • Delete a manual gateway
  • Manual tax calculators
    • The manual tax calculator object
    • Create a manual tax calculator
    • List all manual tax calculators
    • Retrieve a manual tax calculator
    • Update a manual tax calculator
    • Delete a manual tax calculator
  • Markets
    • The market object
    • Create a market
    • List all markets
    • Retrieve a market
    • Update a market
    • Delete a market
  • Merchants
    • The merchant object
    • Create a merchant
    • List all merchants
    • Retrieve a merchant
    • Update a merchant
    • Delete a merchant
  • Notifications
    • The notification object
    • Create a notification
    • List all notifications
    • Retrieve a notification
    • Update a notification
    • Delete a notification
  • Order amount promotion rules
    • The order amount promotion rule object
    • Create an order amount promotion rule
    • List all order amount promotion rules
    • Retrieve an order amount promotion rule
    • Update an order amount promotion rule
    • Delete an order amount promotion rule
  • Order copies
    • The order copy object
    • Create an order copy
    • List all order copies
    • Retrieve an order copy
    • Update an order copy
    • Delete an order copy
  • Order factories
    • The order factory object
    • List all order factories
    • Retrieve an order factory
  • Order subscription items
    • The order subscription item object
    • Create an order subscription item
    • List all order subscription items
    • Retrieve an order subscription item
    • Update an order subscription item
    • Delete an order subscription item
  • Order subscriptions
    • The order subscription object
    • Create an order subscription
    • List all order subscriptions
    • Retrieve an order subscription
    • Update an order subscription
    • Delete an order subscription
  • Orders
    • The order object
    • Create an order
    • List all orders
    • Retrieve an order
    • Update an order
    • Delete an order
  • Organizations
    • The organization object
    • Retrieve the organization
  • Packages
    • The package object
    • Create a package
    • List all packages
    • Retrieve a package
    • Update a package
    • Delete a package
  • Parcel line items
    • The parcel line item object
    • Create a parcel line item
    • List all parcel line items
    • Retrieve a parcel line item
    • Update a parcel line item
    • Delete a parcel line item
  • Parcels
    • The parcel object
    • Create a parcel
    • List all parcels
    • Retrieve a parcel
    • Update a parcel
    • Delete a parcel
  • Payment gateways
    • The payment gateway object
    • List all payment gateways
    • Retrieve a payment gateway
  • Payment methods
    • The payment method object
    • Create a payment method
    • List all payment methods
    • Retrieve a payment method
    • Update a payment method
    • Delete a payment method
  • Payment options
    • The payment option object
    • Create a payment option
    • List all payment options
    • Retrieve a payment option
    • Update a payment option
    • Delete a payment option
  • Paypal gateways
    • The paypal gateway object
    • Create a paypal gateway
    • List all paypal gateways
    • Retrieve a paypal gateway
    • Update a paypal gateway
    • Delete a paypal gateway
  • Paypal payments
    • The paypal payment object
    • Create a paypal payment
    • List all paypal payments
    • Retrieve a paypal payment
    • Update a paypal payment
    • Delete a paypal payment
  • Percentage discount promotions
    • The percentage discount promotion object
    • Create a percentage discount promotion
    • List all percentage discount promotions
    • Retrieve a percentage discount promotion
    • Update a percentage discount promotion
    • Delete a percentage discount promotion
  • Pickups
    • The pickup object
    • List all pickups
    • Retrieve a pickup
  • Price frequency tiers
    • The price frequency tier object
    • Create a price frequency tier
    • List all price frequency tiers
    • Retrieve a price frequency tier
    • Update a price frequency tier
    • Delete a price frequency tier
  • Price list schedulers
    • The price list scheduler object
    • Create a price list scheduler
    • List all price list schedulers
    • Retrieve a price list scheduler
    • Update a price list scheduler
    • Delete a price list scheduler
  • Price lists
    • The price list object
    • Create a price list
    • List all price lists
    • Retrieve a price list
    • Update a price list
    • Delete a price list
  • Price tiers
    • The price tier object
    • List all price tiers
    • Retrieve a price tier
  • Price volume tiers
    • The price volume tier object
    • Create a price volume tier
    • List all price volume tiers
    • Retrieve a price volume tier
    • Update a price volume tier
    • Delete a price volume tier
  • Prices
    • The price object
    • Create a price
    • List all prices
    • Retrieve a price
    • Update a price
    • Delete a price
  • Promotion rules
    • The promotion rule object
    • List all promotion rules
    • Retrieve a promotion rule
  • Promotions
    • The promotion object
    • List all promotions
    • Retrieve a promotion
  • Recurring order copies
    • The recurring order copy object
    • Create a recurring order copy
    • List all recurring order copies
    • Retrieve a recurring order copy
    • Update a recurring order copy
    • Delete a recurring order copy
  • Refunds
    • The refund object
    • List all refunds
    • Retrieve a refund
    • Update a refund
  • Reserved stocks
    • The reserved stock object
    • List all reserved stocks
    • Retrieve a reserved stock
  • Resource errors
    • The resource error object
    • List all resource errors
    • Retrieve a resource error
  • Return line items
    • The return line item object
    • Create a return line item
    • List all return line items
    • Retrieve a return line item
    • Update a return line item
    • Delete a return line item
  • Returns
    • The return object
    • Create a return
    • List all returns
    • Retrieve a return
    • Update a return
    • Delete a return
  • Satispay gateways
    • The satispay gateway object
    • Create a satispay gateway
    • List all satispay gateways
    • Retrieve a satispay gateway
    • Update a satispay gateway
    • Delete a satispay gateway
  • Satispay payments
    • The satispay payment object
    • Create a satispay payment
    • List all satispay payments
    • Retrieve a satispay payment
    • Update a satispay payment
    • Delete a satispay payment
  • Shipments
    • The shipment object
    • Create a shipment
    • List all shipments
    • Retrieve a shipment
    • Update a shipment
    • Delete a shipment
  • Shipping categories
    • The shipping category object
    • Create a shipping category
    • List all shipping categories
    • Retrieve a shipping category
    • Update a shipping category
    • Delete a shipping category
  • Shipping method tiers
    • The shipping method tier object
    • List all shipping method tiers
    • Retrieve a shipping method tier
  • Shipping methods
    • The shipping method object
    • Create a shipping method
    • List all shipping methods
    • Retrieve a shipping method
    • Update a shipping method
    • Delete a shipping method
  • Shipping weight tiers
    • The shipping weight tier object
    • Create a shipping weight tier
    • List all shipping weight tiers
    • Retrieve a shipping weight tier
    • Update a shipping weight tier
    • Delete a shipping weight tier
  • Shipping zones
    • The shipping zone object
    • Create a shipping zone
    • List all shipping zones
    • Retrieve a shipping zone
    • Update a shipping zone
    • Delete a shipping zone
  • SKU list items
    • The SKU list item object
    • Create a SKU list item
    • List all SKU list items
    • Retrieve a SKU list item
    • Update a SKU list item
    • Delete a SKU list item
  • SKU list promotion rules
    • The SKU list promotion rule object
    • Create a SKU list promotion rule
    • List all SKU list promotion rules
    • Retrieve a SKU list promotion rule
    • Update a SKU list promotion rule
    • Delete a SKU list promotion rule
  • SKU lists
    • The SKU list object
    • Create a SKU list
    • List all SKU lists
    • Retrieve a SKU list
    • Update a SKU list
    • Delete a SKU list
  • SKU options
    • The SKU option object
    • Create a SKU option
    • List all SKU options
    • Retrieve a SKU option
    • Update a SKU option
    • Delete a SKU option
  • SKUs
    • The SKU object
    • Create a SKU
    • List all SKUs
    • Retrieve a SKU
    • Update a SKU
    • Delete a SKU
  • Stock items
    • The stock item object
    • Create a stock item
    • List all stock items
    • Retrieve a stock item
    • Update a stock item
    • Delete a stock item
  • Stock line items
    • The stock line item object
    • Create a stock line item
    • List all stock line items
    • Retrieve a stock line item
    • Update a stock line item
    • Delete a stock line item
  • Stock locations
    • The stock location object
    • Create a stock location
    • List all stock locations
    • Retrieve a stock location
    • Update a stock location
    • Delete a stock location
  • Stock reservations
    • The stock reservation object
    • Create a stock reservation
    • List all stock reservations
    • Retrieve a stock reservation
    • Update a stock reservation
    • Delete a stock reservation
  • Stock transfers
    • The stock transfer object
    • Create a stock transfer
    • List all stock transfers
    • Retrieve a stock transfer
    • Update a stock transfer
    • Delete a stock transfer
  • Stores
    • The store object
    • Create a store
    • List all stores
    • Retrieve a store
    • Update a store
    • Delete a store
  • Stripe gateways
    • The stripe gateway object
    • Create a stripe gateway
    • List all stripe gateways
    • Retrieve a stripe gateway
    • Update a stripe gateway
    • Delete a stripe gateway
  • Stripe payments
    • The stripe payment object
    • Create a stripe payment
    • List all stripe payments
    • Retrieve a stripe payment
    • Update a stripe payment
    • Delete a stripe payment
  • Stripe tax accounts
    • The stripe tax account object
    • Create a stripe tax account
    • List all stripe tax accounts
    • Retrieve a stripe tax account
    • Update a stripe tax account
    • Delete a stripe tax account
  • Subscription models
    • The subscription model object
    • Create a subscription model
    • List all subscription models
    • Retrieve a subscription model
    • Update a subscription model
    • Delete a subscription model
  • Tags
    • The tag object
    • Create a tag
    • List all tags
    • Retrieve a tag
    • Update a tag
    • Delete a tag
  • Tax calculators
    • The tax calculator object
    • List all tax calculators
    • Retrieve a tax calculator
  • Tax categories
    • The tax category object
    • Create a tax category
    • List all tax categories
    • Retrieve a tax category
    • Update a tax category
    • Delete a tax category
  • Tax rules
    • The tax rule object
    • Create a tax rule
    • List all tax rules
    • Retrieve a tax rule
    • Update a tax rule
    • Delete a tax rule
  • Taxjar accounts
    • The taxjar account object
    • Create a taxjar account
    • List all taxjar accounts
    • Retrieve a taxjar account
    • Update a taxjar account
    • Delete a taxjar account
  • Transactions
    • The transaction object
    • List all transactions
    • Retrieve a transaction
  • Versions
    • The version object
    • List all versions
    • Retrieve a version
  • Vertex accounts
    • The vertex account object
    • Create a vertex account
    • List all vertex accounts
    • Retrieve a vertex account
    • Update a vertex account
    • Delete a vertex account
  • Voids
    • The void object
    • List all voids
    • Retrieve a void
    • Update a void
  • Webhooks
    • The webhook object
    • Create a webhook
    • List all webhooks
    • Retrieve a webhook
    • Update a webhook
    • Delete a webhook
  • Wire transfers
    • The wire transfer object
    • Create a wire transfer
    • List all wire transfers
    • Retrieve a wire transfer
    • Update a wire transfer
    • Delete a wire transfer
On this page
  1. Orders

The order object

A comprehensive list of the order resource's attributes and relationships

An order object is returned as part of the response body of each successful list, retrieve, create or update API call to the /api/orders endpoint.

Fields

Field
Type
Description

type

string

orders

id

string

The order unique identifier

links.self

string

The order endpoint URL

attributes.number

string

The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels.

attributes.affiliate_code

string

The affiliate code, if any, to track commissions using any third party services.

attributes.autorefresh

boolean

Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster).

attributes.place_async

boolean

Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards.

attributes.status

string

The order status. One of 'draft' (default), 'pending', 'editing', 'placing', 'placed', 'approved', or 'cancelled'.

attributes.payment_status

string

The order payment status. One of 'unpaid' (default), 'authorized', 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided', 'refunded', 'partially_refunded', or 'free'.

attributes.fulfillment_status

string

The order fulfillment status. One of 'unfulfilled' (default), 'in_progress', 'fulfilled', or 'not_required'.

attributes.guest

boolean

Indicates if the order has been placed as guest.

attributes.editable

boolean

Indicates if the order can be edited.

attributes.customer_email

string

The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email.

attributes.customer_password

string

The password of the associated customer. When creating or updating an order, this is a shortcut to sign up the associated customer.

attributes.language_code

string

The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly.

attributes.currency_code

string

The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.

attributes.tax_included

boolean

Indicates if taxes are included in the order amounts, automatically inherited from the order's price list.

attributes.tax_rate

float

The tax rate for this order (if calculated).

attributes.freight_taxable

boolean

Indicates if taxes are applied to shipping costs.

attributes.payment_method_taxable

boolean

Indicates if taxes are applied to payment methods costs.

attributes.adjustment_taxable

boolean

Indicates if taxes are applied to positive adjustments.

attributes.gift_card_taxable

boolean

Indicates if taxes are applied to purchased gift cards.

attributes.requires_billing_info

boolean

Indicates if the billing address associated to this order requires billing info to be present.

attributes.country_code

string

The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping or billing addresses.

attributes.shipping_country_code_lock

string

The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products.

attributes.coupon_code

string

The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order.

attributes.gift_card_code

string

The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order.

attributes.subtotal_amount_cents

integer

The sum of all the SKU line items total amounts, in cents.

attributes.subtotal_amount_float

float

The sum of all the SKU line items total amounts, float.

attributes.formatted_subtotal_amount

string

The sum of all the SKU line items total amounts, formatted.

attributes.shipping_amount_cents

integer

The sum of all the shipping costs, in cents.

attributes.shipping_amount_float

float

The sum of all the shipping costs, float.

attributes.formatted_shipping_amount

string

The sum of all the shipping costs, formatted.

attributes.payment_method_amount_cents

integer

The payment method costs, in cents.

attributes.payment_method_amount_float

float

The payment method costs, float.

attributes.formatted_payment_method_amount

string

The payment method costs, formatted.

attributes.discount_amount_cents

integer

The sum of all the discounts applied to the order, in cents (negative amount).

attributes.discount_amount_float

float

The sum of all the discounts applied to the order, float.

attributes.formatted_discount_amount

string

The sum of all the discounts applied to the order, formatted.

attributes.adjustment_amount_cents

integer

The sum of all the adjustments applied to the order, in cents.

attributes.adjustment_amount_float

float

The sum of all the adjustments applied to the order, float.

attributes.formatted_adjustment_amount

string

The sum of all the adjustments applied to the order, formatted.

attributes.gift_card_amount_cents

integer

The sum of all the gift_cards applied to the order, in cents.

attributes.gift_card_amount_float

float

The sum of all the gift_cards applied to the order, float.

attributes.formatted_gift_card_amount

string

The sum of all the gift_cards applied to the order, formatted.

attributes.total_tax_amount_cents

integer

The sum of all the taxes applied to the order, in cents.

attributes.total_tax_amount_float

float

The sum of all the taxes applied to the order, float.

attributes.formatted_total_tax_amount

string

The sum of all the taxes applied to the order, formatted.

attributes.subtotal_tax_amount_cents

integer

The taxes applied to the order's subtotal, in cents.

attributes.subtotal_tax_amount_float

float

The taxes applied to the order's subtotal, float.

attributes.formatted_subtotal_tax_amount

string

The taxes applied to the order's subtotal, formatted.

attributes.shipping_tax_amount_cents

integer

The taxes applied to the order's shipping costs, in cents.

attributes.shipping_tax_amount_float

float

The taxes applied to the order's shipping costs, float.

attributes.formatted_shipping_tax_amount

string

The taxes applied to the order's shipping costs, formatted.

attributes.payment_method_tax_amount_cents

integer

The taxes applied to the order's payment method costs, in cents.

attributes.payment_method_tax_amount_float

float

The taxes applied to the order's payment method costs, float.

attributes.formatted_payment_method_tax_amount

string

The taxes applied to the order's payment method costs, formatted.

attributes.adjustment_tax_amount_cents

integer

The taxes applied to the order adjustments, in cents.

attributes.adjustment_tax_amount_float

float

The taxes applied to the order adjustments, float.

attributes.formatted_adjustment_tax_amount

string

The taxes applied to the order adjustments, formatted.

attributes.total_amount_cents

integer

The order's total amount, in cents.

attributes.total_amount_float

float

The order's total amount, float.

attributes.formatted_total_amount

string

The order's total amount, formatted.

attributes.total_taxable_amount_cents

integer

The order's total taxable amount, in cents (without discounts).

attributes.total_taxable_amount_float

float

The order's total taxable amount, float.

attributes.formatted_total_taxable_amount

string

The order's total taxable amount, formatted.

attributes.subtotal_taxable_amount_cents

integer

The order's subtotal taxable amount, in cents (equal to subtotal_amount_cents when prices don't include taxes).

attributes.subtotal_taxable_amount_float

float

The order's subtotal taxable amount, float.

attributes.formatted_subtotal_taxable_amount

string

The order's subtotal taxable amount, formatted.

attributes.shipping_taxable_amount_cents

integer

The order's shipping taxable amount, in cents (equal to shipping_amount_cents when prices don't include taxes).

attributes.shipping_taxable_amount_float

float

The order's shipping taxable amount, float.

attributes.formatted_shipping_taxable_amount

string

The order's shipping taxable amount, formatted.

attributes.payment_method_taxable_amount_cents

integer

The order's payment method taxable amount, in cents (equal to payment_method_amount_cents when prices don't include taxes).

attributes.payment_method_taxable_amount_float

float

The order's payment method taxable amount, float.

attributes.formatted_payment_method_taxable_amount

string

The order's payment method taxable amount, formatted.

attributes.adjustment_taxable_amount_cents

integer

The order's adjustment taxable amount, in cents (equal to discount_adjustment_cents when prices don't include taxes).

attributes.adjustment_taxable_amount_float

float

The order's adjustment taxable amount, float.

attributes.formatted_adjustment_taxable_amount

string

The order's adjustment taxable amount, formatted.

attributes.total_amount_with_taxes_cents

integer

The order's total amount (when prices include taxes) or the order's total + taxes amount (when prices don't include taxes, e.g. US Markets or B2B).

attributes.total_amount_with_taxes_float

float

The order's total amount with taxes, float.

attributes.formatted_total_amount_with_taxes

string

The order's total amount with taxes, formatted.

attributes.fees_amount_cents

integer

The fees amount that is applied by Commerce Layer, in cents.

attributes.fees_amount_float

float

The fees amount that is applied by Commerce Layer, float.

attributes.formatted_fees_amount

string

The fees amount that is applied by Commerce Layer, formatted.

attributes.duty_amount_cents

integer

The duty amount that is calculated by external services, in cents.

attributes.duty_amount_float

float

The duty amount that is calculated by external services, float.

attributes.formatted_duty_amount

string

The duty amount that is calculated by external services, formatted.

attributes.place_total_amount_cents

integer

The total amount at place time, in cents, which is used internally for editing.

attributes.place_total_amount_float

float

The total amount at place time, float.

attributes.formatted_place_total_amount

string

The total amount at place time, formatted.

attributes.skus_count

integer

The total number of SKUs in the order's line items. This can be useful to display a preview of the customer shopping cart content.

attributes.line_item_options_count

integer

The total number of line item options. This can be useful to display a preview of the customer shopping cart content.

attributes.shipments_count

integer

The total number of shipments. This can be useful to manage the shipping method(s) selection during checkout.

attributes.tax_calculations_count

integer

The total number of tax calculations. This can be useful to monitor external tax service usage.

attributes.validations_count

integer

The total number of external validation performed. This can be useful to monitor if external validation has been triggered.

attributes.errors_count

integer

The total number of resource errors.

attributes.payment_source_details

object

An object that contains the shareable details of the order's payment source.

attributes.token

string

A unique token that can be shared more securely instead of the order's id.

attributes.cart_url

string

The cart url on your site. If present, it will be used on our hosted checkout application.

attributes.return_url

string

The return url on your site. If present, it will be used on our hosted checkout application.

attributes.terms_url

string

The terms and conditions url on your site. If present, it will be used on our hosted checkout application.

attributes.privacy_url

string

The privacy policy url on your site. If present, it will be used on our hosted checkout application.

attributes.checkout_url

string

The checkout url that was automatically generated for the order. Send the customers to this url to let them checkout the order securely on our hosted checkout application.

attributes._archive

boolean

Send this attribute if you want to archive the order.

attributes._unarchive

boolean

Send this attribute if you want to unarchive the order.

attributes._pending

boolean

Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels.

attributes._place

boolean

Send this attribute if you want to place the order.

attributes._cancel

boolean

Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided.

attributes._approve

boolean

Send this attribute if you want to approve a placed order. Cannot be passed by sales channels.

attributes._approve_and_capture

boolean

Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels.

attributes._authorize

boolean

Send this attribute if you want to authorize the order's payment source.

attributes._authorization_amount_cents

integer

Send this attribute as a value in cents if you want to overwrite the amount to be authorized.

attributes._capture

boolean

Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels.

attributes._refund

boolean

Send this attribute if you want to refund a captured order. Cannot be passed by sales channels.

attributes._fulfill

boolean

Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered, alternatively order must be approved). Cannot be passed by sales channels.

attributes._update_taxes

boolean

Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market).

attributes._nullify_payment_source

boolean

Send this attribute if you want to nullify the payment source for this order.

attributes._fix_payment_source

boolean

Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready to be approved. A tentative to fix the payment source is done before approval automatically. Cannot be passed by sales channels.

attributes._billing_address_clone_id

string

The id of the address that you want to clone to create the order's billing address.

attributes._shipping_address_clone_id

string

The id of the address that you want to clone to create the order's shipping address.

attributes._customer_payment_source_id

string

The id of the customer payment source (i.e. credit card) that you want to use as the order's payment source.

attributes._shipping_address_same_as_billing

boolean

Send this attribute if you want the shipping address to be cloned from the order's billing address.

attributes._billing_address_same_as_shipping

boolean

Send this attribute if you want the billing address to be cloned from the order's shipping address.

attributes._commit_invoice

boolean

Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara).

attributes._refund_invoice

boolean

Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara).

attributes._save_payment_source_to_customer_wallet

boolean

Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source.

attributes._save_shipping_address_to_customer_address_book

boolean

Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address.

attributes._save_billing_address_to_customer_address_book

boolean

Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address.

attributes._refresh

boolean

Send this attribute if you want to manually refresh the order.

attributes._validate

boolean

Send this attribute if you want to trigger the external validation for the order.

attributes._create_subscriptions

boolean

Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency.

attributes._start_editing

boolean

Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount. Cannot be passed by sales channels.

attributes._stop_editing

boolean

Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels.

attributes.placed_at

datetime

Time at which the order was placed.

attributes.approved_at

datetime

Time at which the order was approved.

attributes.cancelled_at

datetime

Time at which the order was cancelled.

attributes.payment_updated_at

datetime

Time at which the order's payment status was last updated.

attributes.fulfillment_updated_at

datetime

Time at which the order's fulfillment status was last updated.

attributes.refreshed_at

datetime

Last time at which the order was refreshed.

attributes.archived_at

datetime

Time at which the resource has been archived.

attributes.subscription_created_at

datetime

Time at which the order has been marked to create a subscription from its recurring line items.

attributes.circuit_state

string

The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.

attributes.circuit_failure_count

integer

The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.

attributes._reset_circuit

boolean

Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.

attributes._add_tags

string

Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.

attributes._remove_tags

string

Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.

attributes.created_at

datetime

Time at which the resource was created.

attributes.updated_at

datetime

Time at which the resource was last updated.

attributes.reference

string

A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever.

attributes.reference_origin

string

Any identifier of the third party system that defines the reference code.

attributes.metadata

object

Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format.

relationships.market

object

The associated market.

relationships.customer

object

The associated customer.

relationships.shipping_address

object

The customer's shipping address.

relationships.billing_address

object

The customer's billing address.

relationships.store

object

The associated store.

relationships.default_shipping_method

object

The shipping method to use as default for shipments.

relationships.default_payment_method

object

The payment method to use as default.

relationships.available_payment_methods

array

The available payment methods for the order. Useful to present the customer with a list of choices during the checkout. Only enabled payment methods are included in the list.

relationships.available_customer_payment_sources

array

The available customer payment sources for the order. Useful to present the customer with a list of choices during the checkout.

relationships.available_free_skus

array

The available SKUs eligible as free gifts once added to the order. Useful to present the customer with a list of possible free gifts during the checkout. The list is filled by SKUs which belongs to matching free gift promotions.

relationships.available_free_bundles

array

The available bundles eligible as free gifts once added to the order. Useful to present the customer with a list of possible free gifts during the checkout. The list is filled by bundles which belongs to matching free gift promotions.

relationships.payment_method

object

The associated payment method.

relationships.payment_source

object

The associated payment source.

relationships.discount_engine_item

object

The associated external engine applied discount.

relationships.line_items

array

The associated line items.

relationships.line_item_options

array

The associated line item options.

relationships.stock_reservations

array

The associated stock reservations.

relationships.stock_line_items

array

The associated stock line items.

relationships.stock_transfers

array

The associated stock transfers.

relationships.shipments

array

The associated shipments (automatically generated based on the inventory model).

relationships.payment_options

array

The associated payment options.

relationships.transactions

array

The associated transactions.

relationships.authorizations

array

The associated authorizations.

relationships.captures

array

The associated captures.

relationships.voids

array

The associated voids.

relationships.refunds

array

The associated refunds.

relationships.returns

array

The associated returns.

relationships.order_subscription

object

The target order associated subscription.

relationships.order_subscriptions

array

The source order associated subscriptions.

relationships.order_factories

array

The associated order copies.

relationships.order_copies

array

The associated order copies.

relationships.recurring_order_copies

array

The associated recurring order copies.

relationships.attachments

array

The associated attachments.

relationships.notifications

array

The associated notifications.

relationships.links

array

The associated links.

relationships.resource_errors

array

The associated resource errors.

relationships.events

array

The associated events.

relationships.tags

array

The associated tags. Cannot be passed by sales channels.

relationships.versions

array

The associated changes.

meta.mode

string

The resource environment (can be one of test or live)

PreviousOrdersNextCreate an order

Last updated 1 month ago