Skip to content

Membership

A typical configuration will have a single active membership record and a number of historic (lapsed) records. However, some configurations allow for multiple active memberships. If you are seeking to determine the membership status of a user, check your configuration, but usually it is sufficient to look for the first active membership.

http https://api.sheepcrm.com/api/v1/$FLOCK/user/{username}/membership/ "Authorization: Bearer $APP_API_TOKEN"
HTTP/1.1 200 OK
{
"List of all memberships"
}
ParameterRequiredDescription
membership_typeYesThe URI of the membership type to create
start_dateNoWhen the membership should start (default: today)
amountNoMembership price (if not the list price)
currencyNoMembership currency (if not the list currency)
statusNoStarting status for the membership
member_orgNoUse to create an organisational membership for the member
http POST https://api.sheepcrm.com/api/v1/$FLOCK/user/{username}/membership/ "Authorization: Bearer $APP_API_TOKEN" membership_type=/example/membership_type/1234abc/
HTTP/1.1 201 CREATED
{
}
http https://api.sheepcrm.com/api/v1/$FLOCK/user/{username}/membership/{membership_uid}/ "Authorization: Bearer $APP_API_TOKEN"
HTTP/1.1 200 OK
{
"Single Membership"
}
http https://api.sheepcrm.com/api/v1/$FLOCK/user/{username}/membership/{membership_uid}/linked/ "Authorization: Bearer $APP_API_TOKEN"
HTTP/1.1 200 OK
{
...
}
http https://api.sheepcrm.com/api/v1/$FLOCK/user/{username}/membership/{membership_uid}/linked/{link_uid}/ "Authorization: Bearer $APP_API_TOKEN"
HTTP/1.1 200 OK
{
...
}