Withdraw a policy's pending offering change
curl --request POST \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change/withdraw \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change/withdraw', 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/withdraw"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"withdrawn": true
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 123,
"message": "<string>",
"reasons": [
"<string>"
]
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 123,
"message": "<string>",
"reasons": [
"<string>"
]
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 123,
"message": "<string>",
"reasons": [
"<string>"
]
}Memberships
Withdraw a policy's pending offering change
Calls off the policy’s pending offering change before it takes effect, so the policy renews on what it is billed now. A pending cancellation is left alone. withdrawn is false when no offering change was pending, or when it is already being billed for its renewal. Safe to repeat. With a member token only the primary member may withdraw. Returns 503 MEMBERSHIP_OFFERING_CHANGES_UNAVAILABLE while offering changes are switched off; retry later.
POST
/
v0
/
membership-policies
/
{policyId}
/
offering-change
/
withdraw
Withdraw a policy's pending offering change
curl --request POST \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change/withdraw \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/offering-change/withdraw', 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/withdraw"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"withdrawn": true
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 123,
"message": "<string>",
"reasons": [
"<string>"
]
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 123,
"message": "<string>",
"reasons": [
"<string>"
]
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 123,
"message": "<string>",
"reasons": [
"<string>"
]
}This endpoint is in beta: its request and response contract can still change while it’s being developed.
Authorizations
Was this page helpful?

