Javascript
const url = 'https://api.gnosispay.com/api/v1/user/terms'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"terms":"general-tos","version":"<string>"}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
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>
Terms accepted successfully
The response is of type object.
object