Register a contact for an event
Add a contact as a registrant of an event, with or without an invoice.
POST https://cotlet.dev/api/v1/wild-apricot/events/{event_id}/contacts/{contact_id}/for-event
Uses Add registrant on the event, picks the contact and the ticket type and saves. invoice chooses Generate invoice or Activate without invoice. An administrator can register people after the registration limit is reached. Wild Apricot sends no email for a manual registration, so send_notification is false unless you set it. Needs a full administrator, membership manager or events manager. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| event_id integer required | integer | Event ID from list_events. |
| contact_id integer required | integer | Contact ID from list_contacts. |
| ticket_type string required | string | Ticket type name of the event. |
| invoice enum | enum | generate_invoice or activate_without_invoice. Default: activate_without_invoice. |
| send_notification boolean | boolean | Send the event registration email to the registrant. Default: false. |
Request
curl -X POST https://cotlet.dev/api/v1/wild-apricot/events/1/contacts/1/for-event \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ticket_type":"ticket type"}' result = client.call("wild-apricot", "register_contact_for_event", {"event_id":1,"contact_id":1,"ticket_type":"ticket type"}) const result = await cotlet.call('wild-apricot', 'register_contact_for_event', {"event_id":1,"contact_id":1,"ticket_type":"ticket type"}); cotlet call wild-apricot register_contact_for_event --data '{"event_id":1,"contact_id":1,"ticket_type":"ticket type"}' Example response
{
"registration_id": 553190,
"event_id": 7244,
"contact_id": 48050,
"ticket_type": "Member",
"invoice": "none",
"notification_sent": false
}