Pause subscription
Via the API, you can pause a subscription for a given user.
Endpoint Url
| Environment | Url |
|---|---|
| Sandbox | https://partners-sandbox.ftmtapi.com/subscription/pause |
| Prod | https://partners.ftmtapi.com/subscription/pause |
Request
| Field | Type | Description | Required | Format |
|---|---|---|---|---|
email | string | The email address of the user (unique ID). | Yes | |
pauseUntil | Date | When is the program supposed to resume | No | YYYY-MM-DD |
Payload example
const payload = {
email: 'jane@doe.com',
planStartDate: '2023-12-30',
}
Response
Response is always in JSON format.
{
"message": "pause request received",
"email": "jane@doe.com"
}
Example call when you want to simply pause a subscription
const axios = require('axios');
const res = await axios({
url: 'https://partners.ftmtapi.com/subscription/update',
method: 'post',
data: {
email: 'jane@doe.com',
pauseUntil: '2023-10-30',
},
headers: {
Authorization: 'Bearer <YOUR_API_KEY>',
'Fitmate-Version': '2023-10-04',
}
});