Skip to main content
GET
/
delivery-notes
/
{id}
/
matched-bills
List bills matched to a delivery note
const options = {method: 'GET'};

fetch('https://api.dolfinai.co/delivery-notes/{id}/matched-bills', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
[
  {
    "billId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "matchGroupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "matchGroupStatus": "<string>",
    "state": "<string>",
    "totalAmount": 123,
    "invoiceNumber": "<string>",
    "supplierName": "<string>"
  }
]

Path Parameters

id
string<uuid>
required

Response

OK

billId
string<uuid>
required

The matched bill.

matchGroupId
string<uuid>
required

The match group that ties this bill to the document.

matchGroupStatus
string
required

Lifecycle status of the match group (e.g. Open, Variance, Resolved).

state
string
required

The bill's own workflow state (e.g. PendingReview, NeedsApproval).

totalAmount
required

Total (gross) amount on the bill.

invoiceNumber
null | string

Supplier invoice number on the bill, if captured.

supplierName
null | string

Name of the bill's supplier, if known.