Registration API
Register attendees for events
Overview
The Registration API allows you to register attendees for your events. When you register an attendee, an order is automatically created and the attendee receives a confirmation email.
Endpoints
Register attendee
POST
/registrationRegister an attendee for an event. This creates an order and sends a confirmation email to the attendee.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
event_id | UUID | Yes | Event ID |
email | String | Yes | Attendee email |
first_name | String | Yes | Attendee first name |
last_name | String | Yes | Attendee last name |
ticket_id | UUID | Yes | Ticket type ID |
quantity | Integer | No | Number of tickets (default: 1) |
promo_code | String | No | Promo code for discount |
Example request
curl -X POST "https://eventnerds.com/api/developer/v1/registration" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event_id": "EVENT_ID",
"email": "attendee@example.com",
"first_name": "John",
"last_name": "Doe",
"ticket_id": "TICKET_ID",
"quantity": 1,
"promo_code": "EARLYBIRD"
}'Response
{
"success": true,
"data": {
"id": "uuid",
"event_id": "uuid",
"attendee_id": "uuid",
"order_number": "ORD-12345",
"status": "completed",
"total": 299.00,
"created_at": "2025-01-15T10:00:00Z"
}
}