Enroll Contact
POST/courses/enrollments
Grant a contact access to a membership offer. Requires a Location token with courses.write. Send Version: v3. Uses POST smart-list/user with source public_api (not the queued attach-offer-user path). Returns 200 when already enrolled and 201 when newly attached. Login tokens are never returned. checkoutFrom public_api is not in membership paidSources, so these grants are omitted from Net Revenue paid filters. Default-offer rows return 404.
Request
Version stringrequired
API Version
Available options
v3locationId stringrequired
Location id or sub-account id is required.
Possible values: non-empty
- application/json
- Body
- Example (auto)
Bodyrequired
contactIdstringrequired
CRM contact id
offerIdstringrequired
Membership offer id
{
"contactId": "abc123ContactId",
"offerId": "c3d4e5f6-7890-4123-cdef-123456789012"
}
Success
- application/json
- Schema
- Example (auto)
Schema
alreadyEnrolledbooleanrequired
true when the contact already has a purchase for this offer in the location
contactIdstringrequired
offerIdstringrequired
{
"alreadyEnrolled": true,
"contactId": "abc123ContactId",
"offerId": "c3d4e5f6-7890-4123-cdef-123456789012"
}