latestOpenAPI 3.0.32026-08-215925112.0 MB

36be0dca14e7

api
coupons

Generate coupons for coupon series

post/api/coupon/generate

Request body

couponSeriesIdstring required

The ID of the coupon series.

sellerIdstring required

The ID of the seller.

couponAmountinteger required

The amount of coupons to generate

couponCodePrefixstring nullable

The prefix of the coupon code

Response

OK

status'success' | 'partial' required

The status of the request

couponAmountinteger required

The amount of coupons to generate

couponIdsstring[] required

The IDs of the generated coupons