JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.valox.co/api/v1/user/terms', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "terms": [ { "type": "general-tos", "currentVersion": "TOS_GENERAL_VERSION_1", "accepted": true, "acceptedVersion": "TOS_GENERAL_VERSION_1", "acceptedAt": "2024-08-20T12:34:56Z", "url": "https://help.valox.co/hc/en-us/articles/39723036951444-ValoX-WebApp-Terms-of-Service" }, { "type": "card-monavate-tos", "currentVersion": "TOS_CARD_VERSION_1", "accepted": false, "url": "https://help.valox.co/hc/en-us/articles/39726634253076-Monavate-Cardholder-Terms-EEA" } ] }
Returns the status of all terms and conditions, including whether the user has accepted the latest version, when they were accepted, and links to the terms documents.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully retrieved terms status
Show child attributes
Type of terms and conditions
general-tos
card-monavate-tos
privacy-policy
Current version of these terms
Whether the user has accepted the current version
Version the user has accepted (if any)
When the user accepted these terms
URL to view these terms