Get a policy's pending change
curl --request GET \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-change \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-change', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"pendingChange": {
"id": "<string>",
"kind": "OFFERING",
"timing": "NOW",
"effectiveAt": "2023-11-07T05:31:56Z",
"requestedAt": "2023-11-07T05:31:56Z",
"requestedByKind": "<string>",
"requestedVia": "<string>",
"toOfferingId": "<string>",
"direction": "<string>",
"amountDueNow": {
"value": 123,
"currencyCode": "<string>"
},
"payBy": "2023-11-07T05:31:56Z",
"releaseSeatIds": [
"<string>"
]
}
}{
"code": "MEMBERSHIP_RESOURCE_NOT_FOUND",
"statusCode": 123,
"message": "<string>",
"reasons": [
"<string>"
]
}Memberships
Get a policy's pending change
Returns the policy’s pending change, if any: an offering change waiting for its renewal or its payment, or a cancellation. pendingChange is null when nothing is pending. With a member token only the primary member may read it.
GET
/
v0
/
membership-policies
/
{policyId}
/
pending-change
Get a policy's pending change
curl --request GET \
--url https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-change \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/membership-policies/{policyId}/pending-change', 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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"pendingChange": {
"id": "<string>",
"kind": "OFFERING",
"timing": "NOW",
"effectiveAt": "2023-11-07T05:31:56Z",
"requestedAt": "2023-11-07T05:31:56Z",
"requestedByKind": "<string>",
"requestedVia": "<string>",
"toOfferingId": "<string>",
"direction": "<string>",
"amountDueNow": {
"value": 123,
"currencyCode": "<string>"
},
"payBy": "2023-11-07T05:31:56Z",
"releaseSeatIds": [
"<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?

