List the offerings a policy could change to
curl --request GET \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change-options \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change-options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"options": [
{
"offeringId": "<string>",
"tierTitle": "<string>",
"planTitle": "<string>",
"price": {
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"intervalUnit": "<string>",
"intervalCount": 123
},
"currentPrice": {
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"intervalUnit": "<string>",
"intervalCount": 123
},
"eligible": true,
"refusals": [
{
"reason": "<string>",
"details": {}
}
],
"direction": "<string>",
"timingOptions": [
{
"timing": "NOW",
"notBefore": "2023-11-07T05:31:56Z",
"effectiveAt": "2023-11-07T05:31:56Z",
"amountDueNow": {
"value": 123,
"currencyCode": "<string>"
}
}
]
}
]
}{
"code": "MEMBERSHIP_INVALID_REQUEST",
"statusCode": 400,
"message": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}{
"code": "MEMBERSHIP_OFFERING_CHANGES_UNAVAILABLE",
"statusCode": 503,
"message": "<string>"
}Memberships
List the offerings a policy could change to
Lists the other offerings this policy could move to. Each one says whether the change is allowed, whether it’s an upgrade, downgrade or swap, when it could take effect and what would be due now.
How to use it
- With a member token, only the primary member can ask, and the scheme’s member rules and notice period apply.
- With an organizer key, member rules don’t apply and nothing is ever due.
- Offerings the policy could never move to are left out.
- Pass
releaseSeatIds, comma-separated, to quote as if those secondary seats end when the change takes effect.
GET
/
v0
/
membership-policies
/
{policyId}
/
offering-change-options
List the offerings a policy could change to
curl --request GET \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change-options \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change-options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"options": [
{
"offeringId": "<string>",
"tierTitle": "<string>",
"planTitle": "<string>",
"price": {
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"intervalUnit": "<string>",
"intervalCount": 123
},
"currentPrice": {
"amount": {
"value": 123,
"currencyCode": "<string>"
},
"intervalUnit": "<string>",
"intervalCount": 123
},
"eligible": true,
"refusals": [
{
"reason": "<string>",
"details": {}
}
],
"direction": "<string>",
"timingOptions": [
{
"timing": "NOW",
"notBefore": "2023-11-07T05:31:56Z",
"effectiveAt": "2023-11-07T05:31:56Z",
"amountDueNow": {
"value": 123,
"currencyCode": "<string>"
}
}
]
}
]
}{
"code": "MEMBERSHIP_INVALID_REQUEST",
"statusCode": 400,
"message": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}{
"code": "MEMBERSHIP_OFFERING_CHANGES_UNAVAILABLE",
"statusCode": 503,
"message": "<string>"
}This endpoint is in beta: its request and response contract can still change while it’s being developed.
Authorizations
Path Parameters
Query Parameters
Was this page helpful?

