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
Response
Codes queued
Changes
Changed in 2 of the 60 revisions of this API.2
- ○
removed the
platformenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
- ○
endpoint added
endpoint-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○