Membership

End a free membership

Changed on

Ends a complimentary membership now. The member keeps their number. Paid memberships end through a refund or cancellation instead. Requires membership.write.

post/membership/members/{passId}/end

Request

  • Base URL
    https://api.session.services
  • Auth
    API key in header x-tenant-id

Path parameters

passId, string required

Request body

object required
teamId, string required

Response

OK

object required

A membership pass with its owner, for staff

id, string required

Membership pass ID

programId, string required
teamId, string required
userId, string required
memberNumber, integer required

Sequential number identifying the pass within its program. The first pass receives 200.

state, 'ACTIVE' | 'SUSPENDED' | 'INACTIVE' required
active, boolean required

True while the pass is ACTIVE and its paid term has not ended

paidThrough, string date-time required

End of the latest paid annual term

cancelAt, string date-time

Present when renewal is scheduled to stop. Benefits continue until paidThrough.

complimentary, boolean required

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.

createdAt, string date-time required
member, object

Absent when the user account no longer exists

Example response

{
  "memberNumber": 200
}

Changes

    • warning

      for the path request parameter passId, the maxLength was set to 128

    • warning

      the teamId request property's maxLength was set to 128

    • breaking

      the cancelAt response's property format changed from date-time to no format for status

    4 more changes in this revision