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": 404,
"message": "<string>"
}{
"code": "MEMBERSHIP_OFFERING_CHANGE_REFUSED",
"statusCode": 409,
"message": "<string>",
"reasons": [
"<string>"
]
}{
"code": "MEMBERSHIP_OFFERING_CHANGES_UNAVAILABLE",
"statusCode": 503,
"message": "<string>"
}Memberships
Withdraw a policy's pending offering change
Calls off the policy’s pending offering change, so the policy renews on its current offering.
How to use it
- A pending cancellation isn’t affected.
withdrawnisfalsewhen no offering change was pending, or when its renewal is already being billed.- Safe to repeat.
- With a member token, only the primary member can withdraw.
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": 404,
"message": "<string>"
}{
"code": "MEMBERSHIP_OFFERING_CHANGE_REFUSED",
"statusCode": 409,
"message": "<string>",
"reasons": [
"<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
Was this page helpful?

