Grant a free membership
Changed onStaff give a member a complimentary membership on the keyring they hand over. The keyring's serial becomes the member number. Requires membership.write.
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Request body
The serial printed on the keyring being handed over. It becomes the member number.
The member's email. Their existing account is used, or a new one is created that they sign in to with this email.
When the free membership ends. Null for no end date. See defaultMembershipGrantEnd().
Example request
{
"memberNumber": 42
}Response
OK
A membership pass with its owner, for staff
Membership pass ID
Sequential number identifying the pass within its program. The first pass receives 200.
True while the pass is ACTIVE and its paid term has not ended
End of the latest paid annual term
Present when renewal is scheduled to stop. Benefits continue until paidThrough.
True while the current term was granted by staff for free. It never renews; a paidThrough of MEMBERSHIP_NO_END means it has no end date.
Absent when the user account no longer exists
Example response
{
"memberNumber": 200
}Changes
- breaking
the
firstNamerequest property's minLength was increased from0to1 - breaking
the
lastNamerequest property's minLength was increased from0to1 - breaking
the
emailrequest property format changed from no format toemail
8 more changes in this revision
- breaking