List purchasable membership offerings
curl --request GET \
--url https://api.letsdothis.com/v0/membership-offerings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-offerings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/membership-offerings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"schemeId": "<string>",
"tier": {
"id": "<string>",
"title": "<string>",
"description": "<string>"
},
"plan": {
"id": "<string>",
"title": "<string>",
"numberOfAdults": 123,
"numberOfChildren": 123,
"maxChildAge": 123,
"maxTotalMembers": 123,
"primaryMemberType": "<string>",
"enforceAgeLimits": true,
"description": "<string>"
},
"currentPrice": {
"id": "<string>",
"offeringId": "<string>",
"isCurrent": true,
"createdAt": "<string>",
"purchaseType": "ONE_TIME",
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"fee": {
"value": 123,
"currencyCode": "<string>"
},
"orderProcessingFee": {
"value": 123,
"currencyCode": "<string>"
},
"total": {
"value": 123,
"currencyCode": "<string>"
},
"billingInterval": "day",
"billingIntervalCount": 123,
"detailsAvailable": true,
"retiredAt": "<string>"
},
"benefits": [
{
"title": "<string>",
"type": "PRICE_ADJUSTMENT",
"restrictions": {
"eventIds": [
"<string>"
],
"eventOccurrenceIds": [
"<string>"
],
"raceIds": [
"<string>"
],
"ticketSlugs": [
"<string>"
],
"bookingItemIds": [
"<string>"
]
},
"adjustmentType": "ABSOLUTE_PRICE",
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"percentage": 123,
"maxUses": 123,
"discountAppliesToBookingFee": true,
"resetsOnRenewal": true
}
],
"benefitsMarkdown": "<string>"
}
],
"page": {
"totalResults": 506,
"first": "eyJpZCI6IjYzOTljMjAwMTVkNjBhZTNmZjI4ZjI0YyIsInVwZGF0ZWRBdCI6IjIwMjItMTItMTRUMTI6MzA6NTkuMjE3WiJ9",
"last": "eyJpZCI6IjY1NGNkZDIxZDlhMTU3ODdiNzFkMTM0YSIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNzI0WiJ9",
"prev": "",
"next": "eyJpZCI6IjY0NzBkNTkwM2RjOWE5OWJhMTA0Y2ZhYiIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNjE4WiJ9"
}
}{
"code": "MEMBERSHIP_INVALID_REQUEST",
"statusCode": 400,
"message": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}Memberships
List purchasable membership offerings
Lists the membership offerings on sale in one of your schemes, with each one’s tier, how many adults and children it covers, its benefits and its current price.
The price is what a new member or a plan change would cost now; an existing policy can be on an older price. Disabled schemes, and offerings without a complete price, are left out.
GET
/
v0
/
membership-offerings
List purchasable membership offerings
curl --request GET \
--url https://api.letsdothis.com/v0/membership-offerings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-offerings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/membership-offerings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "<string>",
"schemeId": "<string>",
"tier": {
"id": "<string>",
"title": "<string>",
"description": "<string>"
},
"plan": {
"id": "<string>",
"title": "<string>",
"numberOfAdults": 123,
"numberOfChildren": 123,
"maxChildAge": 123,
"maxTotalMembers": 123,
"primaryMemberType": "<string>",
"enforceAgeLimits": true,
"description": "<string>"
},
"currentPrice": {
"id": "<string>",
"offeringId": "<string>",
"isCurrent": true,
"createdAt": "<string>",
"purchaseType": "ONE_TIME",
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"fee": {
"value": 123,
"currencyCode": "<string>"
},
"orderProcessingFee": {
"value": 123,
"currencyCode": "<string>"
},
"total": {
"value": 123,
"currencyCode": "<string>"
},
"billingInterval": "day",
"billingIntervalCount": 123,
"detailsAvailable": true,
"retiredAt": "<string>"
},
"benefits": [
{
"title": "<string>",
"type": "PRICE_ADJUSTMENT",
"restrictions": {
"eventIds": [
"<string>"
],
"eventOccurrenceIds": [
"<string>"
],
"raceIds": [
"<string>"
],
"ticketSlugs": [
"<string>"
],
"bookingItemIds": [
"<string>"
]
},
"adjustmentType": "ABSOLUTE_PRICE",
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"percentage": 123,
"maxUses": 123,
"discountAppliesToBookingFee": true,
"resetsOnRenewal": true
}
],
"benefitsMarkdown": "<string>"
}
],
"page": {
"totalResults": 506,
"first": "eyJpZCI6IjYzOTljMjAwMTVkNjBhZTNmZjI4ZjI0YyIsInVwZGF0ZWRBdCI6IjIwMjItMTItMTRUMTI6MzA6NTkuMjE3WiJ9",
"last": "eyJpZCI6IjY1NGNkZDIxZDlhMTU3ODdiNzFkMTM0YSIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNzI0WiJ9",
"prev": "",
"next": "eyJpZCI6IjY0NzBkNTkwM2RjOWE5OWJhMTA0Y2ZhYiIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNjE4WiJ9"
}
}{
"code": "MEMBERSHIP_INVALID_REQUEST",
"statusCode": 400,
"message": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}This endpoint is in beta: its request and response contract can still change while it’s being developed.
Authorizations
Query Parameters
Response
A page of the offerings on sale in the scheme, each with its current price.
Where you are in a paginated list.
Pass next as page[after] to get the next page, or prev as page[before] to get the previous one. An empty cursor means there are no more pages in that direction. Treat cursors as opaque strings.
Show child attributes
Show child attributes
Example:
{
"totalResults": 506,
"first": "eyJpZCI6IjYzOTljMjAwMTVkNjBhZTNmZjI4ZjI0YyIsInVwZGF0ZWRBdCI6IjIwMjItMTItMTRUMTI6MzA6NTkuMjE3WiJ9",
"last": "eyJpZCI6IjY1NGNkZDIxZDlhMTU3ODdiNzFkMTM0YSIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNzI0WiJ9",
"prev": "",
"next": "eyJpZCI6IjY0NzBkNTkwM2RjOWE5OWJhMTA0Y2ZhYiIsInVwZGF0ZWRBdCI6IjIwMjMtMTEtMTNUMTU6MTE6MTIuNjE4WiJ9"
}
Was this page helpful?

