Reactivate Cancelled Subscription
curl --request POST \
--url https://api.your-domain.com/example/zaymo/reactivate/subscription \
--header 'Content-Type: application/json' \
--header 'X-Zaymo-API-Key: <api-key>' \
--data '
{
"email": "jsmith@example.com",
"subscription_id": "<string>"
}
'import requests
url = "https://api.your-domain.com/example/zaymo/reactivate/subscription"
payload = {
"email": "jsmith@example.com",
"subscription_id": "<string>"
}
headers = {
"X-Zaymo-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Zaymo-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', subscription_id: '<string>'})
};
fetch('https://api.your-domain.com/example/zaymo/reactivate/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Reactivate
Reactivate Cancelled Subscription
Reactivate a previously cancelled subscription for the customer.
POST
/
zaymo
/
reactivate
/
subscription
Reactivate Cancelled Subscription
curl --request POST \
--url https://api.your-domain.com/example/zaymo/reactivate/subscription \
--header 'Content-Type: application/json' \
--header 'X-Zaymo-API-Key: <api-key>' \
--data '
{
"email": "jsmith@example.com",
"subscription_id": "<string>"
}
'import requests
url = "https://api.your-domain.com/example/zaymo/reactivate/subscription"
payload = {
"email": "jsmith@example.com",
"subscription_id": "<string>"
}
headers = {
"X-Zaymo-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Zaymo-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', subscription_id: '<string>'})
};
fetch('https://api.your-domain.com/example/zaymo/reactivate/subscription', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Zaymo will authenticate requests using the API key you provide
Body
application/json
Subscription reactivation information
Response
Subscription successfully reactivated
Indicates if the request was successful
Example:
true
Was this page helpful?