Skip to main content
enum

The possible line types of a sale record. A sale can be an adjustment, which occurs when a refund is issued for a line item that is either more or less than the total value of the line item. Examples include restocking fees and goodwill payments. In such cases, Shopify generates a sales agreement with sale records for each line item that is returned or refunded, and an additional sale record for the adjustment, for example a restocking fee. The sale records for the returned or refunded items represent the reversal of the original line item sale value. The additional adjustment sale record represents the difference between the original total value of all line items that were refunded, and the actual amount refunded.

An additional fee.

A sale adjustment.

A duty charge.

A fee charge.

A gift card.

A product that was purchased, returned, or exchanged.

A shipping charge.

A tip given by the customer.

An unknown sale line type. This represents new types that may be added in future versions.


Was this section helpful?

•OBJECT

A sale that includes an additional fee charge.

•OBJECT

A sale event that results in an adjustment to the order price.

•OBJECT

A sale that includes a duty charge.

•OBJECT

A sale associated with a fee.

•OBJECT

A sale associated with a gift card.

•OBJECT

A sale associated with a product.

•INTERFACE

A record of an individual sale associated with a sales agreement. Every monetary value in an order's sales data is represented in the smallest unit of the currency. When amounts are divided across multiple line items, such as taxes or order discounts, the amounts might not divide evenly across all of the line items on the order. To address this, the remaining currency units that couldn't be divided evenly are allocated one at a time, starting with the first line item, until they are all accounted for. In aggregate, the values sum up correctly. In isolation, one line item might have a different tax or discount amount than another line item of the same price, before taxes and discounts. This is because the amount could not be divided evenly across the items. The allocation of currency units across line items is immutable. After they are allocated, currency units are never reallocated or redistributed among the line items.

•OBJECT

A sale associated with a shipping charge.

•OBJECT

A sale that is associated with a tip.

•OBJECT

This represents new sale types that have been added in future API versions. You may update to a more recent API version to receive additional details about this sale.


Was this section helpful?