Menu
Generate Unique Coupon Codes Sync
Generate unique coupon codes synchronously
POST
/coupons/{coupon_id}/generate_syncUse it in a workflow
- Add a step and choose the Recurly connector.
- Pick the Generate Unique Coupon Codes Sync action (under unique_coupon_code).
- Fill in the fields below, then reference the result from later steps as
{{generateUniqueCouponCodesSync.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 200 with an object. Read it in later steps with {{generateUniqueCouponCodesSync.response.data.<field>}}.
{
"object": "string",
"unique_coupon_codes": [
{
"id": "string",
"object": "string",
"code": "string",
"state": "expired",
"bulk_coupon_id": "string",
"bulk_coupon_code": "string",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z",
"redeemed_at": "2025-01-01T00:00:00Z",
"expired_at": "2025-01-01T00:00:00Z"
}
]
}
Need more? See the Recurly guide for connection setup and behaviour shared by every action.
Was this page helpful?