Commerce
Delete a discount
DELETEhttps:/ / zernio.com/ api/ v1/ commerce/ discounts/ {discountId}
Deletes the discount; its codes stop working at checkout. This cannot be undone. Needs discounts.write.
PlatformsShopify
Authentication
AuthorizationBearer tokenRequired
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Path parameters
discountIdstringRequired
Platform-native id.
Query parameters
accountIdstringRequired
Connected store SocialAccount id.
Responses
Success· the request worked
Errors· the request failed
Add codes to a discount
Adds up to 250 more codes to a code discount, for example one per influencer. The platform adds them in the background. Needs discounts.codes, which WooCommerce stores do not have.
List sales channels
Where products and collections can be published: the online store, Shop, POS and installed channel apps.