With a little help from Zuora engineers there's working promo code request. Most of the parameters are self-explanatory but you need to make sure that fields ratePlan.productRatePlanId and ratePlanGroups.productRatePlanId are pointing to valid rate plan ids. POST https://promotion-codes.apps.zuora.com/api/v1/tools/promos Request: { "code": "TEST-PROMO", "campaign": "Testing Creation", "availableQuantity": 999999999, "effectiveFrom": "2018-05-30T16:00:00.000-06:00", "effectiveTo": "2019-06-02T06:00:00.000-06:00", "initialQuantity": 999999999, "effectiveFrom": "2018-06-14T05:00:00.000-06:00", "effectiveTo": "2019-06-15T05:00:00.000-06:00", "discount": { "type": "percent", "ratePlan": { "productRatePlanId": <RATE_PLAN_ID> } }, "customFields": { "test1": { "type": "string", "value": "", "required": false, "validateRequirement": false }, "test2": { "type": "string", "value": "", "required": false, "validateRequirement": false }, "test3": { "type": "string", "value": "", "required": false, "validateRequirement": false } }, "ratePlanGroups": [ [ { "productRatePlanId": "<PRODUCT_RATE_PLAN_ID>" } ] ] }
... View more