Objects
The documentation below describes the API as of version 9.x of the script.
Public properties or functions that are not in the discountNinja.api
namespace should be considered obsolete and will be removed in the next major version release.
Using undocumented functions or objects will result in issues as custom code that relies on those functions or objects may break in the future when Discount Ninja's script is automatically updated.
Product variant price info
|
| The discount amount, expressed in cents. |
|
| The offer token, Shopify discount code or promotion code associated with the applied discount. |
|
| The discounted price, expressed in cents. |
|
|
|
|
|
|
|
| The token of the offer associated with the applied discount. |
|
| The original price (i.e. the price before discounts are applied), expressed in cents. |
|
| The discount percentage. |
|
| The handle of the product associated with the object. |
|
| The id of the selected selling plan for subscription products. |
|
| The token of the promotion associated with the applied discount. |
|
| The id of the selected variant. |
Last updated