Postman
Run the Roots API in Postman with the sandbox collection and environment.
The collection has one request per endpoint in this reference, a Quickstart (sandbox) folder that runs the whole flow from an empty client to a settled transfer, and a Sandbox test scenarios folder that drives every sandbox test value.
Set up
- Select Run in Postman above and fork the collection and the Roots · Sandbox environment into your own workspace.
- Select the Roots · Sandbox environment.
api_base_urlis alreadyhttps://api.sandbox.roots.finance. - Paste your sandbox API key into
api_tokenas its Current value only. It is a secret variable. Current values stay on your machine; initial values sync to everyone who shares the workspace.
Every request inherits Authorization: Bearer {{api_token}} from the collection. To create an API key, see Authentication.
Run the quickstart
Run the Quickstart (sandbox) folder top to bottom. It tops up your billing balance, onboards a business with its owner and director, opens and funds an account, adds a counterparty, and pays it. Each request saves the ids it creates into the environment for the next one.
Run the sandbox test scenarios
The Sandbox test scenarios folder has two parts:
- Run all (automated) builds its own business, accounts and counterparties, triggers each test outcome and checks it. Run the folder with the Collection Runner in its default order. The checks that wait for an outcome resend the request until it arrives.
- Try one by one has one request per test value, filled in and ready to send. Each request's description says what to expect.
Both create persons, accounts and transfers in your sandbox client.
Send requests
- Requests that create something or move value send an
Idempotency-Keyheader set to{{$guid}}, a new value on every send. To retry a request safely, replace it with a fixed value and resend the identical body. See Idempotency. - Amounts are strings in minor units:
"125000"is 1,250.00 USD. - Ids in paths, such as
:person_idor:account_id, are path variables. The quickstart fills them from the environment; elsewhere, fill them from the response that created the object.
Import from the OpenAPI document
To build a collection yourself, import https://api.sandbox.roots.finance/openapi_api.json in Postman (Import, paste the URL, choose Postman Collection). Set the collection's authorization to Bearer Token with your own variable for the key.
Updated 5 days ago