JavaScript
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.valox.co/api/v1/accounts/daily-limit', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "data": { "dailyLimit": 2500, "dailyRemaining": 1000 } }
Retrieves the current daily spending limit for the authenticated user’s Safe account.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully retrieved the current daily spending limit.
Show child attributes
The current daily spending limit in the Safe token's base units.
2500
The remaining daily spending limit in the Safe token's base units.
1000