Commerce

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.

post/v1/commerce/discounts/{discountId}/codes

Path parameters

discountIdstring required

Platform-native id.

Request body

accountIdstring required
codesstring[] required

Response

Codes queued

pendingboolean

Changes

Changed in 2 of the 60 revisions of this API.2