Commerce
Add codes to a discount
POSThttps:/ / zernio.com/ api/ v1/ commerce/ discounts/ {discountId}/ codes
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.
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.
Body
application/jsonWhat every request needs
accountIdstringRequired
codesarray of stringsRequired