Sale
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.
Anchor to FieldsFields
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
Anchor to Types implemented inTypes implemented in
- •OBJECT
A sale that includes an additional fee charge.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •OBJECT
A sale event that results in an adjustment to the order price.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •OBJECT
A sale that includes a duty charge.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •OBJECT
A sale associated with a fee.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •OBJECT
A sale associated with a gift card.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineItemline•Line
Item Item! non-null The line item associated with the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •OBJECT
A sale associated with a product.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineItemline•Line
Item Item! non-null The line item for the associated sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •OBJECT
A sale associated with a shipping charge.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •OBJECT
A sale that is associated with a tip.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineItemline•Line
Item Item! non-null The line item associated with the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The type of line associated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.
- •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.
- Anchor to actionTypeaction•Sale
Type Action Type! non-null The type of order action represented by the sale.
- •ID!non-null
The unique ID of the sale.
- Anchor to lineTypeline•Sale
Type Line Type! non-null The line type assocated with the sale.
- Anchor to quantityquantity•Int
The number of units ordered or intended to be returned.
- Anchor to taxestaxes•[Sale
Tax!]! non-null The individual taxes associated with the sale.
- Anchor to totalAmounttotal•Money
Amount V2! non-null The total sale amount after taxes and discounts.
- Anchor to totalDiscountAmountAfterTaxestotal•Money
Discount Amount After Taxes V2! non-null The total amount of discounts allocated to the sale after taxes.
- Anchor to totalDiscountAmountBeforeTaxestotal•Money
Discount Amount Before Taxes V2! non-null The total discounts allocated to the sale before taxes.
- Anchor to totalTaxAmounttotal•Money
Tax Amount V2! non-null The total tax amount for the sale.