post https://{accountName}.{environment}.com.br/api/rnb/pvt/coupons
Generates a massive amount of coupons
Request object has the following properties:
Attribute | Type | Description |
---|---|---|
utmSource | string | Coupon UTM Source |
utmCampaign | string | Coupon UTM Campaign |
couponCode | string | Coupon Code |
isArchived | boolean | Field that archive or unarchive a Coupon |
maxItemsPerClient | integer | The customer may purchase up a number of products, using this coupon in one or more purchases |
expirationIntervalPerUse | string | Renew each coupon usage after a number of days |
Request body example
{
"utmSource": "cupom",
"utmCampaign": null,
"couponCode": "ctest",
"isArchived": false,
"maxItemsPerClient": 1,
"expirationIntervalPerUse": "00:00:00"
}
Response object has the following properties:
Attribute | Type | Description |
---|---|---|
coupon | string | Generated Coupons |
Response body
[
"ctest-wzcp5lwt7yz1s7n",
"ctest-rb6smoassp2xe71",
"ctest-vpw84ag9tfi8khv",
"ctest-ne26wgmidp5ctht",
"ctest-127ng0ox09tho5l",
"ctest-qsowch8c8s7jipo",
"ctest-6acbsst6zpss75l",
"ctest-0bksc2tzh5ai946",
"ctest-4jjx8u2rrqj4ck9",
"ctest-hxiox1isdp6padl"
]