Membership
Get a team's current membership program
Changed onReturns the one non-retired membership program for a team. Responds NOT_FOUND when the team sells no membership.
post/membership/programs/current
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Request body
object required
teamSlug, string required
Slug of the team whose current program is wanted
Example request
{
"teamSlug": "sash"
}Response
OK
object required
program, object required
An annual membership offer owned by a team
payment, object
How the membership is paid for. Absent when the team cannot take membership payments right now.
team, object required
Example response
{
"program": {
"name": "S.A.S.H Membership",
"price": 14999,
"currency": "AUD"
},
"team": {
"image": {
"src": "https://assets.session.services/my-image.jpg",
"alt": "My Image",
"width": 1080,
"height": 1080
}
}
}Changes
- breaking
the
teamSlugrequest property's minLength was increased from0to1 - warning
the
teamSlugrequest property's maxLength was set to128
- breaking
- breaking
the
program/currencyresponse property's maxLength was unset from3for the response status
5 more changes in this revision
- breaking