Discount Codes Resource

Discounts Resource

This resource is used to interact with the discounts functionality.

Methods

AddDiscount

Adds a discount code to the cart

Arguments
code
string
(required)
Examples
__nylaResources.discounts.addDiscount('YOUR_SHOPIFY_DISCOUNT_CODE')