DiscountCode {shopifyr}R Documentation

DiscountCode Functions

Description

DiscountCode Functions

Usage

createDiscountCode(priceRuleId, code, ...)

modifyDiscountCode(priceRuleId, discountCode, ...)

getDiscountCodes(priceRuleId, ...)

getDiscountCode(priceRuleId, discountCodeId, ...)

getDiscountCodeLocation(code, ...)

deleteDiscountCode(priceRuleId, discountCodeId, ...)

createDiscountCodesCreationJob(priceRuleId, codes, ...)

getDiscountCodesCreationJob(priceRuleId, batchId, ...)

getDiscountCodesFromCreationJob(priceRuleId, batchId, ...)

Arguments

priceRuleId

a PriceRule id

code

one discount code string

...

additional request parameters

discountCode

a list containing DiscountCode fields

discountCodeId

a DiscountCode id number

codes

one or more discount code strings

batchId

an id of a DiscountCode batch job

Value

a list containing a DiscountCode fields or a list of DiscountCodes

References

Shopify API DiscountCode documentation: https://help.shopify.com/api/reference/discounts/discountcode


[Package shopifyr version 1.0.0 Index]