Skip to main content
Version: v3New

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 optionsv3
locationId stringrequired

Location id or sub-account id is required.

Possible values: non-empty

application/json

Bodyrequired

    contactIdstringrequired

    CRM contact id

    offerIdstringrequired

    Membership offer id

application/json

Success

Schema
    alreadyEnrolledbooleanrequired

    true when the contact already has a purchase for this offer in the location

    contactIdstringrequired
    offerIdstringrequired