Skip to main content
union

Requires customer_read_orders access scope or customer_read_draft_orders access scope.

The price value (fixed or percentage) for a discount application.

•OBJECT

A precise monetary value and its associated currency. Combines a decimal amount with a three-letter currency code to express prices, costs, and other financial values throughout the API. For example, 12.99 USD.

•Decimal!
non-null

A monetary value in decimal format, allowing for precise representation of cents or fractional currency. For example, 12.99.

•CurrencyCode!
non-null

The three-letter currency code that represents a world currency used in a store. Currency codes include standard standard ISO 4217 codes, legacy codes, and non-standard codes. For example, USD.

•OBJECT

Represents the value of the percentage pricing object.

•Float!
non-null

The percentage value of the object.


Was this section helpful?

Anchor to Fields with this unionFields with this union

•OBJECT

Captures the intentions of a discount that was automatically applied.

•INTERFACE

Captures the intentions of a discount source at the time of application.

•OBJECT

Captures the intentions of a discount code at the time that it is applied.

•OBJECT

Captures the intentions of a discount that was manually created.

•OBJECT

Captures the intentions of a discount that was created by a Shopify Script.


Was this section helpful?