Skip to content
  • Type to search every guide, endpoint and MCP tool.
POST

Validate invite code

/v1/events/{event_id}/invite-codes/validate

Scope prep_manage

Check a comp code WITHOUT redeeming it — so the form can say "this comps your seat" before the person commits.

Without this the only way to find out whether an invite code works was to submit the registration, which redeems it and creates the attendee. That left the public form unable to do for a comp what it already does for a discount: confirm the code, then change the button from "Continue to payment" to "Confirm registration". Checking and spending are separate here for the same reason they are for promo codes — someone who types a code to see whether it works and then abandons the form must not have burned a seat, and on a multi-use code must not have spent one of its redemptions.

Reasons match redemption's own guard (active AND redemptions < max_redemptions) so the preview cannot say yes to something the redemption would then refuse.

Parameters

event_idstring · pathRequired

Request body (JSON)

codestringRequired
The code.

Responses

200Successful Response
422The request did not validate.
401The key is missing, unknown, revoked or expired.
403The key lacks the scope this call needs, or the organisation is not on Enterprise.
429Over the request rate. Wait for Retry-After seconds.