Skip to main content
GET
/
bills
List bills
const options = {method: 'GET'};

fetch('https://api.dolfinai.co/bills', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "fileName": "<string>",
      "rawFileType": "<string>",
      "supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "suggestedMatchedSupplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "supplierName": "<string>",
      "supplierEmail": "<string>",
      "supplierPhone": "<string>",
      "supplierAddress": "<string>",
      "supplierTaxId": "<string>",
      "supplierWebsite": "<string>",
      "supplierRegistrationNumber": "<string>",
      "invoiceNumber": "<string>",
      "invoiceDate": "2023-11-07T05:31:56Z",
      "dueDate": "2023-11-07T05:31:56Z",
      "currency": "<string>",
      "subTotal": 123,
      "taxAmount": 123,
      "totalAmount": 123,
      "paymentTerms": "<string>",
      "paymentRef": "<string>",
      "bankDetails": {
        "accountHolderName": "<string>",
        "accountNumber": "<string>",
        "sortCode": "<string>",
        "routingNumber": "<string>",
        "iban": "<string>",
        "bicSwift": "<string>",
        "country": "<string>",
        "currency": "<string>"
      },
      "ocrConfidence": 123,
      "approvedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "approvedAt": "2023-11-07T05:31:56Z",
      "rejectedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "rejectedAt": "2023-11-07T05:31:56Z",
      "rejectionReason": "<string>",
      "paymentDate": "2023-11-07T05:31:56Z",
      "paymentMethod": "<string>",
      "paidAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "updatedAt": "2023-11-07T05:31:56Z",
      "updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "supplier": {
        "name": "<string>",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "organisationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "email": "<string>",
        "phone": "<string>",
        "website": "<string>",
        "taxNumber": "<string>",
        "registrationNumber": "<string>",
        "address": {
          "line1": "<string>",
          "line2": "<string>",
          "city": "<string>",
          "postalCode": "<string>",
          "country": "<string>"
        },
        "bankDetails": {
          "accountHolderName": "<string>",
          "accountNumber": "<string>",
          "sortCode": "<string>",
          "routingNumber": "<string>",
          "iban": "<string>",
          "bicSwift": "<string>",
          "country": "<string>",
          "currency": "<string>"
        },
        "paymentTermsDefault": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "updatedAt": "2023-11-07T05:31:56Z",
        "updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      },
      "lineItems": [
        {
          "description": "<string>",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "quantity": 123,
          "unitPrice": 123,
          "taxRate": 123,
          "taxAmount": 123,
          "subTotal": 123,
          "sortOrder": 123
        }
      ]
    }
  ],
  "nextCursor": "<string>",
  "hasMore": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.dolfinai.co/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

Cursor
string
Limit
default:20
State
string
SupplierId
string<uuid>
InvoiceNumber
string
DueDateFrom
string<date-time>
DueDateTo
string<date-time>

Response

200 - application/json

OK

data
object[]
nextCursor
null | string
hasMore
boolean