Menu
Generate Unique Coupon Codes
Generate unique coupon codes
POST
/coupons/{coupon_id}/generateUse it in a workflow
- Add a step and choose the Recurly connector.
- Pick the Generate Unique Coupon Codes action (under unique_coupon_code).
- Fill in the fields below, then reference the result from later steps as
{{generateUniqueCouponCodes.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"number_of_unique_codes": 0
}
Response
Returns 201 with an object. Read it in later steps with {{generateUniqueCouponCodes.response.data.<field>}}.
{
"limit": 0,
"order": "string",
"sort": "string",
"begin_time": "2025-01-01T00:00:00Z"
}
Need more? See the Recurly guide for connection setup and behaviour shared by every action.
Was this page helpful?