Who would approve this
GET
/business/route
const url = 'http://127.0.0.1:7700/api/business/route';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:7700/api/business/route \ --header 'Authorization: Bearer <token>'Preview. Where the policy would send a request, without asking one.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”text
string
The words of the request, up to 500 characters.
amount
integer
The amount, in US cents.
app
string
The app the request would come from.
asked
string
The id of the person who would ask.
Responses
Section titled “Responses”The route.
Media typeapplication/json
Business: where the policy sent a request, and why.
object
rule
required
The policy line that matched, such as Over $10,000 goes to the Controller.
string
to
required
Who it goes to as the policy says it: the Controller, IT, any approver.
string
amountCents
required
The amount the rules and limits were checked against
integer
people
required
The people who could approve it when it was asked.
Array<object>
object
id
string
name
string
why
required
One sentence for people.
string
Example generated
{ "rule": "example", "to": "example", "amountCents": 1, "people": [ { "id": "example", "name": "example" } ], "why": "example"}