Skip to main content
GET
/
ap
/
approval-policies
List approval policies
const options = {method: 'GET'};

fetch('https://api.dolfinai.co/ap/approval-policies', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "priorityOrder": 123,
    "active": true,
    "supplierIds": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "approverUserIds": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "amountGte": 123,
    "amountLte": 123,
    "currency": "<string>"
  }
]

Response

200 - application/json

OK

id
string<uuid>
required
name
string
required
priorityOrder
required

0–1000, lower wins. Also the UI sort order.

active
boolean
required
supplierIds
string<uuid>[]
required

Empty ⇒ global policy (any supplier). Otherwise the policy is supplier-specific.

supplierStanding
enum<string>
required
Available options:
Any,
New,
Established
action
enum<string>
required
Available options:
AutoApprove,
AlwaysReview,
AutoVoid
approverUserIds
string<uuid>[]
required

Approvers for AlwaysReview. Empty ⇒ no designated approver (admins action in-app).

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
amountGte
amountLte
currency
null | string

ISO 4217. Set when an amount condition is present; scopes the policy to this currency.