<- Object

Object

All versions ->

OrderReturnDiscountBeta

Represents a discount being returned that applies to one or more return line items in an order.

Fixed-amount, order-scoped discounts are distributed across all non-zero return line item totals. The amount distributed to each return line item is relative to that item’s contribution to the order subtotal.

Link to section

Properties

Link to section

uid

string

A unique ID that identifies the returned discount only within this order.

Link to section

source_discount_uid

string

The discount uid from the order that contains the original application of this discount.

Link to section

catalog_object_id

string

Link to section

catalog_version

integer(64-bit)

The version of the catalog object that this discount references.

Link to section

name

string

The discount's name.

Link to section

type

string

The type of the discount. If it is created by the API, it is FIXED_PERCENTAGE or FIXED_AMOUNT.

Discounts that do not reference a catalog object ID must have a type of FIXED_PERCENTAGE or FIXED_AMOUNT.

Link to section

percentage

string

The percentage of the tax, as a string representation of a decimal number. A value of "7.25" corresponds to a percentage of 7.25%.

percentage is not set for amount-based discounts.

Link to section

amount_money

The total declared monetary amount of the discount.

amount_money is not set for percentage-based discounts.

Link to section

applied_money

Read only The amount of discount actually applied to this line item. When an amount-based discount is at the order level, this value is different from amount_money because the discount is distributed across the line items.

Link to section

scope

string

Indicates the level at which the OrderReturnDiscount applies. For ORDER scoped discounts, the server generates references in applied_discounts on all OrderReturnLineItems. For LINE_ITEM scoped discounts, the discount is only applied to OrderReturnLineItems with references in their applied_discounts field.