latestOpenAPI 3.0.02026-08-10233809957.8 KB

5cdfae3fa1fa

Bills

List Bills

Supported for:

freshbooks quickbooks quickbooksDesktop xero oracleNetsuite sageBusinessCloud sageIntacct dynamicsBusinessCentral dynamics365Finance myob zohoBooks

get/v2/accounting/bills

Query parameters

connectionUuidstring required

Unique connection identifier.

startDatestring

Transaction date greater than or equal to parameter in the format: YYYY-MM-DD.

endDatestring

Transaction date less than or equal to parameter in the format: YYYY-MM-DD.

offsetnumber

The offset is the position in the dataset of a particular record.

limitnumber

This is the size of the results set you would like (default: 100).

orderBystring
status'open' | 'draft' | 'partiallyPaid' | 'paid' | 'unknown' | 'void'

Response

Example response

{
  "meta": {
    "connectionUuid": "CON-396d5daa-26b2-4979-89b6-cafb2c298155",
    "businessName": "Railz",
    "serviceName": "xero",
    "reportId": [
      "5fad8a342a88364234392fb5",
      "5fad8a342a88364234392fb6"
    ],
    "startDate": "2020-11-25T01:02:03Z",
    "endDate": "2020-11-30T01:02:03Z",
    "createdAt": "2020-11-25T01:02:03Z",
    "updatedAt": "2020-11-30T01:02:03Z"
  },
  "data": [
    {
      "id": "1",
      "vendorRef": {
        "id": "1",
        "name": "Home Depot"
      },
      "purchaseOrderRefs": [
        {
          "id": "15",
          "purchaseOrderNumber": "1500"
        }
      ],
      "postedDate": "2021-03-09T10:18:29.985Z",
      "dueDate": "2021-03-09T10:18:29.985Z",
      "currency": "USD",
      "currencyRate": 1.13,
      "billType": "item",
      "vendorInvoiceNumber": "INV-0028",
      "lines": [
        {
          "id": "8a3fdcc9-83eb-4fdd-83e0-52ec1b40b072",
          "accountRef": {
            "id": "145",
            "name": "Example account"
          },
          "taxRateRef": {
            "id": "1",
            "name": "HST",
            "effectiveTaxRate": 13
          },
          "inventoryRef": {
            "id": "1",
            "name": "Digital Services"
          },
          "trackingCategoryRefs": [
            {
              "id": "4040",
              "name": "Region",
              "type": "class"
            }
          ],
          "description": "Services rendered.",
          "unitAmount": 100.5,
          "quantity": 3,
          "taxAmount": 20.5,
          "amount": 322,
          "discountPercentage": 10.5,
          "customerRef": {
            "id": "124",
            "name": "Railz"
          },
          "billableStatus": "notBillable"
        }
      ],
      "subTotal": 301.5,
      "taxAmount": 20.5,
      "totalAmount": 322,
      "amountDue": 322,
      "memo": "Example bill memo.",
      "payments": [
        {
          "amount": 50.5,
          "paymentId": "50",
          "date": "2021-03-09T10:18:29.985Z"
        }
      ],
      "subsidiaryRefs": [
        {
          "id": "1",
          "name": "Railz Financial"
        }
      ],
      "sourceModifiedDate": "2021-03-09T10:18:29.985Z"
    }
  ]
}