Withdraw a policy's pending change
curl --request POST \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-change/withdraw \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-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}/pending-change/withdraw"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"withdrawn": true,
"kind": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}{
"code": "MEMBERSHIP_PENDING_CHANGE_WITHDRAWAL_REFUSED",
"statusCode": 409,
"message": "<string>",
"reasons": [
"<string>"
]
}{
"code": "MEMBERSHIP_OFFERING_CHANGES_UNAVAILABLE",
"statusCode": 503,
"message": "<string>"
}Memberships
Withdraw a policy's pending change
Withdraws a pending offering change or cancellation. A cancellation is withdrawn by turning subscription renewal back on; one with no subscription to renew cannot be withdrawn. Safe to repeat. With a member token, only the primary member can withdraw.
POST
/
v0
/
membership-policies
/
{policyId}
/
pending-change
/
withdraw
Withdraw a policy's pending change
curl --request POST \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-change/withdraw \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-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}/pending-change/withdraw"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"withdrawn": true,
"kind": "<string>"
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 404,
"message": "<string>"
}{
"code": "MEMBERSHIP_PENDING_CHANGE_WITHDRAWAL_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?

