Get a contact
One contact with the application fields, membership tab, balance and event registrations.
GET https://cotlet.dev/api/v1/wild-apricot/contacts/{contact_id}
read
Returns the contact record: the fields on the profile, the Membership tab (level, status, member since, renewal due), the contact balance and the event registrations from the Events tab. balance is the amount still owed across open invoices. Use it before approve_membership_application to see whether the applicant has paid.
Parameters
| Name | Type | Description |
|---|---|---|
| contact_id integer required | integer | Contact ID from list_contacts. |
Request
curl https://cotlet.dev/api/v1/wild-apricot/contacts/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("wild-apricot", "get_contact", {"contact_id":1}) const result = await cotlet.call('wild-apricot', 'get_contact', {"contact_id":1}); cotlet call wild-apricot get_contact --data '{"contact_id":1}' Example response
{
"contact_id": 48213,
"name": "Nora Elwood",
"email": "nora@example.com",
"fields": {
"Organization": "Elwood Cycles",
"City": "Portland"
},
"membership": {
"level": "Individual",
"status": "Pending - New",
"member_since": null,
"renewal_due": null
},
"balance": 0,
"event_registrations": [
{
"event_id": 7210,
"name": "Saturday group ride",
"ticket_type": "Member"
}
]
}