Last updated

Workspace Budgets

This API lets you get insights into available account budget for a Workspace. Please see documentation for more details.

curl -i -X GET \
  https://api-demo.guusto.io/api/v1/balances/workspaces/currencies/CAD \
  -H 'Authorization: Bearer <YOUR_ApiToken_HERE>' \
  -H 'X-Workspace-id: 444'
Response
application/json
{ "balance": 10000 }

Get an Employee's Available Budget

This API lets you get insights into an employee's available budget for a Workspace. Please see documentation for more details.

curl -i -X GET \
  https://api-demo.guusto.io/api/v1/balances/members/29392/currencies/CAD \
  -H 'Authorization: Bearer <YOUR_ApiToken_HERE>' \
  -H 'X-Workspace-id: 444'
Response
application/json
{ "amount": 100, "currency": "CAD" }

Get all Employees and their Available Budget

This API lets you get insights into all employees within a Workspace and their available budget. Please see documentation for more details.

curl -i -X GET \
  https://api-demo.guusto.io/api/v1/balances/members/currencies/CAD \
  -H 'Authorization: Bearer <YOUR_ApiToken_HERE>' \
  -H 'X-Workspace-id: 444'
Response
application/json
{ "memberBalanceResponses": [ { "amount": 10, "employeeNumber": "E393", "user": 4131 }, { "amount": 585, "employeeNumber": "E84901", "user": 5331 } ] }