Skip to main content
GET
/
v1
/
settings
/
ap
Get AP settings
const options = {method: 'GET'};

fetch('https://api.dolfinai.co/v1/settings/ap', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
import requests

url = "https://api.dolfinai.co/v1/settings/ap"

response = requests.get(url)

print(response.text)
using RestSharp;


var options = new RestClientOptions("https://api.dolfinai.co/v1/settings/ap");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);

Console.WriteLine("{0}", response.Content);
curl --request GET \
--url https://api.dolfinai.co/v1/settings/ap
{
  "payByBankEnabled": true,
  "matchRoundingTolerance": 123,
  "matchSimilarityThreshold": 123,
  "matchDateWindowDays": 123,
  "supplierMatchSimilarityThreshold": 123,
  "supplierMatchNameWeight": 123,
  "supplierMatchAddressWeight": 123,
  "headerMatchCurrencyWeight": 123,
  "headerMatchDateWeight": 123,
  "headerAffinityFloor": 123,
  "lineMatchPriceWeight": 123,
  "lineMatchQuantityWeight": 123,
  "lineAffinityFloor": 123
}

Response

200 - application/json

OK

payByBankEnabled
boolean
required
matchRoundingTolerance
required

Per-line rounding tolerance (in the bill's currency) for three-way matching. Line amounts within this of each other are treated as reconciled. Default 0.01 (1p).

matchSimilarityThreshold
required

Minimum description-similarity score (0-1) for the matching engine to suggest a fuzzy PO/DN line match. Exact SKU matches bypass this. Default 0.7.

matchDateWindowDays
required

Soft date-proximity window (days): bills whose invoice date is within this many days of a candidate PO's expected delivery date are preferred when scoring. Never excludes a PO. Default 7.

supplierMatchSimilarityThreshold
required

Minimum combined supplier-match score (0-1) to suggest a fuzzy supplier link. Exact tax-id/email/name matches bypass this and auto-link. Default 0.7.

supplierMatchNameWeight
required

Relative weight of supplier-name similarity in the combined supplier-match score. Normalised against the address weight, so the two need not sum to 1. Default 0.7.

supplierMatchAddressWeight
required

Relative weight of delivery-address similarity in the combined supplier-match score. Normalised against the name weight. Default 0.3.

headerMatchCurrencyWeight
required

Header-affinity weight (§1a.6) for a bill↔PO currency match. Normalised at use against the other header weights. Default 0.3.

headerMatchDateWeight
required

Header-affinity weight (§1a.6) for bill↔PO/DN date proximity. Normalised at use against the other header weights. Default 0.2.

headerAffinityFloor
required

Lower bound (0-1) on the combined header affinity — a header mismatch never buries a genuine line match below this fraction of its line-similarity score. Default 0.5.

lineMatchPriceWeight
required

Line-affinity weight (§1a.7) for a bill-line↔PO-line unit-price match. Normalised at use against the quantity weight. Default 0.7.

lineMatchQuantityWeight
required

Line-affinity weight (§1a.7) for a bill-line↔PO-line ordered-quantity match. Normalised at use against the price weight. Default 0.3.

lineAffinityFloor
required

Lower bound (0-1) on the combined line affinity — a price/quantity mismatch never buries a genuine line match below this fraction of its line-similarity score. Default 0.3.