Menu
Create coupons/generate
Create coupons/generate
POST
/V1/coupons/generateUse it in a workflow
- Add a step and choose the Adobe Commerce connector.
- Pick the Create coupons/generate action (under Promotions).
- Fill in the fields below, then reference the result from later steps as
{{createCouponsGenerate.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"couponSpec": {
"rule_id": 0,
"format": "string",
"quantity": 0,
"length": 0,
"prefix": "string",
"suffix": "string",
"delimiter_at_every": 0,
"delimiter": "string",
"extension_attributes": {}
}
}
Response
Returns 200 with a array<string>. Read it in later steps with {{createCouponsGenerate.response.data.<field>}}.
Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?