JavaScript
const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({terms: 'general-tos', version: '<string>'}) }; fetch('https://api.valox.co/api/v1/user/terms', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
200
Example
{ "ok": true}
Accept specific terms and conditions based on type and version.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Type of terms and conditions
general-tos
card-monavate-tos
privacy-policy
Version of the terms document
Terms accepted successfully