API reference

Books check tolerances

The vendors a daily books check is wider for, and by how much, so a vendor whose amounts vary is not flagged every month.

Guides: Work the inbox

List the vendors a books check is wider for

GET/v1/qa_tolerances

client.qaTolerances.list()

The vendors a books check is wider for, the newest first: which check, and by how much.

Parameters

NameTypeDescription
kindQuerystring or null

Only those widening this check.

One of unusual_amount, possible_repeat, missing_accrual
counterparty_idQuerystring or null

An id that starts with party_.

limitQueryinteger

Page size, 1–200.

Default 50
cursorQuerystring or null

The next_cursor of the previous page.

Response

200QaTolerancePage

Errors

400
The request was malformed or a parameter is invalid.
401
No valid credential was sent.
403
The credential or the member's role does not allow this.
404
No such resource in this ledger.
409
A conflicting request, e.g. one with the same Idempotency-Key still running.
422
A well-formed request a business rule refused.
429
Too many requests; retry after the Retry-After header.
500
Something failed on our side; the request_id identifies it.

Example

curl
curl "https://api.ledgerit.ai/v1/qa_tolerances" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Widen a books check for one vendor

POST/v1/qa_tolerances· Idempotent

client.qaTolerances.create()

Widen one check for one vendor, by a multiple of its threshold. A vendor has one tolerance per check: change it by deleting it and setting another, or by dismissing an item with "This vendor varies".

Request body

QaToleranceCreate

Response

201QaToleranceOut

Errors

400
The request was malformed or a parameter is invalid.
401
No valid credential was sent.
403
The credential or the member's role does not allow this.
404
No such resource in this ledger.
409
A conflicting request, e.g. one with the same Idempotency-Key still running.
422
A well-formed request a business rule refused.
429
Too many requests; retry after the Retry-After header.
500
Something failed on our side; the request_id identifies it.

Example

curl
curl -X POST "https://api.ledgerit.ai/v1/qa_tolerances" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"counterparty_id":"…","kind":"unusual_amount"}'

Get a vendor's tolerance on a books check

GET/v1/qa_tolerances/{tolerance_id}

client.qaTolerances.get()

One vendor's tolerance on one check.

Parameters

NameTypeDescription
tolerance_idPath · Requiredstring

An id that starts with qa_tol_.

Response

200QaToleranceOut

Errors

400
The request was malformed or a parameter is invalid.
401
No valid credential was sent.
403
The credential or the member's role does not allow this.
404
No such resource in this ledger.
409
A conflicting request, e.g. one with the same Idempotency-Key still running.
422
A well-formed request a business rule refused.
429
Too many requests; retry after the Retry-After header.
500
Something failed on our side; the request_id identifies it.

Example

curl
curl "https://api.ledgerit.ai/v1/qa_tolerances/{tolerance_id}" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Put a vendor back on a check's default threshold

DELETE/v1/qa_tolerances/{tolerance_id}

client.qaTolerances.delete()

Put the vendor back on the check's default threshold.

Parameters

NameTypeDescription
tolerance_idPath · Requiredstring

An id that starts with qa_tol_.

Response

204No content

Errors

400
The request was malformed or a parameter is invalid.
401
No valid credential was sent.
403
The credential or the member's role does not allow this.
404
No such resource in this ledger.
409
A conflicting request, e.g. one with the same Idempotency-Key still running.
422
A well-formed request a business rule refused.
429
Too many requests; retry after the Retry-After header.
500
Something failed on our side; the request_id identifies it.

Example

curl
curl -X DELETE "https://api.ledgerit.ai/v1/qa_tolerances/{tolerance_id}" \
  -H "Authorization: Bearer $LEDGERIT_TOKEN"

Objects

The objects these operations take and return.

QaTolerancePage

NameTypeDescription
dataRequiredarray of QaToleranceOut
has_moreRequiredboolean
next_cursorRequiredstring or null

QaToleranceCreate

NameTypeDescription
counterparty_idRequiredstring

The vendor to widen it for.

kindRequiredstring

The check to widen.

One of unusual_amount, possible_repeat, missing_accrual
multipliernumber | string

How many times wider: 2 (the default) doubles the threshold.

Default 2
notestring or null

Why.

QaToleranceOut

NameTypeDescription
counterparty_idRequiredstring

The vendor it widens the check for.

counterparty_namestring or null

The vendor's name.

created_atRequiredstring (date-time)
created_bystring or null

An id that starts with usr_.

idRequiredstring

An id that starts with qa_tol_.

kindRequiredstring

The check it widens: unusual_amount, possible_repeat or missing_accrual.

One of unusual_amount, possible_repeat, missing_accrual
multiplierRequiredstring

How many times wider the check's threshold is for this vendor: 2 doubles it.

notestring or null

Why, as whoever set it wrote.

updated_atRequiredstring (date-time)