Javascript
const url = 'https://api.gnosispay.com/api/v1/source-of-funds'; const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '[{"question":"<string>","answer":"<string>"}]' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); }
{ "message": "Source of funds submitted" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The body is of type object[].
object[]
Source of Funds answers submitted successfully.
The response is of type object.
object