Trigger batch coupon generation (idempotent)
Requires ADMIN. Only draft/generating pools are eligible. Enqueues via INCENTIVE_COUPON_GENERATION queue.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project (tenant) identifier. Row-level tenant isolation is enforced on every query.
Responses
Section titled “Responses”Job already queued (idempotent hit).
object
Generation job enqueued.
object
Example
{ "status": "queued"}Missing/invalid path input (e.g. projectId) or invalid JSON body.
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (401 via requireAuthenticated) or insufficient project role (403).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or cross-tenant — same 404).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Pool status not eligible for generation (error=pool_not_eligible).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Invalid pool (error=invalid_pool).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}Generation queue binding unavailable (error=queue_unavailable).
object
Human-readable error message.
Examplegenerated
{ "error": "example", "message": "example"}