Codat Get Accounting Bill Example is an example object payload from Codat, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
operationIdmethodpathsummaryrequestExamplesresponseExamples
Example Payload
{
"operationId": "get-accounting-bill",
"method": "GET",
"path": "/companies/{companyId}/data/bills/{billId}",
"summary": "Get bill",
"requestExamples": [],
"responseExamples": [
{
"status": "200",
"contentType": "application/json",
"name": "Clear Books",
"example": {
"id": "81539597-e681-40c9-a4dd-ec2fffcde572",
"reference": "b465a2c9-3212-4620-889b-6328ba148215",
"supplierRef": {
"id": "8GeHBdBZiZ",
"supplierName": "DuBuque, Goyette and Franecki"
},
"purchaseOrderRefs": [],
"issueDate": "2022-04-29T00:00:00",
"dueDate": "2022-05-06T00:00:00",
"currency": "GBP",
"currencyRate": 1,
"lineItems": [
{
"description": "Grease Trap",
"unitAmount": 2781.94,
"quantity": 5,
"discountAmount": 0,
"subTotal": 13909.7,
"taxAmount": 1390.97,
"totalAmount": 15300.67,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "22aee6bd-4767-48c4-8a13-fdf85b91fc80",
"name": "600 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Grease Trap",
"unitAmount": 1371.39,
"quantity": 5,
"discountAmount": 0,
"subTotal": 6856.95,
"taxAmount": 685.7,
"totalAmount": 7542.65,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "9409d23d-1011-432e-98a4-591fcd8d5404",
"name": "300 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Grease Trap",
"unitAmount": 1371.39,
"quantity": 6,
"discountAmount": 0,
"subTotal": 8228.34,
"taxAmount": 822.83,
"totalAmount": 9051.17,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "9409d23d-1011-432e-98a4-591fcd8d5404",
"name": "300 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Grease Trap",
"unitAmount": 2781.94,
"quantity": 3,
"discountAmount": 0,
"subTotal": 8345.82,
"taxAmount": 834.58,
"totalAmount": 9180.4,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "22aee6bd-4767-48c4-8a13-fdf85b91fc80",
"name": "600 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Underground - Trapped Road Gully 450mm x 450mm",
"unitAmount": 402.89,
"quantity": 8,
"discountAmount": 0,
"subTotal": 3223.12,
"taxAmount": 322.31,
"totalAmount": 3545.43,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "3abf0883-03f7-44c6-bc15-1372522d25e1",
"name": "Heavy Duty Hinged Gully Grating"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Underground - Drain Bottle Gullies 90 degree Rectangular",
"unitAmount": 95.08,
"quantity": 7,
"discountAmount": 0,
"subTotal": 665.56,
"taxAmount": 66.56,
"totalAmount": 732.12,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "6",
"name": "Back Inlet Roddable Gully 90\ufffd Outlet Rectangular Grid"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Underground - Drain Bottle Gullies 90 degree Rectangular",
"unitAmount": 95.08,
"quantity": 1,
"discountAmount": 0,
"subTotal": 95.08,
"taxAmount": 9.51,
"totalAmount": 104.59,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "6",
"name": "Back Inlet Roddable Gully 90\ufffd Outlet Rectangular Grid"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Grease Trap",
"unitAmount": 1371.39,
"quantity": 2,
"discountAmount": 0,
"subTotal": 2742.78,
"taxAmount": 274.28,
"totalAmount": 3017.06,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "9409d23d-1011-432e-98a4-591fcd8d5404",
"name": "300 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Grease Trap",
"unitAmount": 2781.94,
"quantity": 1,
"discountAmount": 0,
"subTotal": 2781.94,
"taxAmount": 278.19,
"totalAmount": 3060.13,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "22aee6bd-4767-48c4-8a13-fdf85b91fc80",
"name": "600 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Underground - Drain Bottle Gullies 90 degree Rectangular",
"unitAmount": 95.08,
"quantity": 7,
"discountAmount": 0,
"subTotal": 665.56,
"taxAmount": 66.56,
"totalAmount": 732.12,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "6",
"name": "Back Inlet Roddable Gully 90\ufffd Outlet Rectangular Grid"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Grease Trap",
"unitAmount": 1251.89,
"quantity": 4,
"discountAmount": 0,
"subTotal": 5007.56,
"taxAmount": 500.76,
"totalAmount": 5508.32,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "51077072-d5c3-463b-9cb4-7da2e11886f9",
"name": "150 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
},
{
"description": "Grease Trap",
"unitAmount": 1371.39,
"quantity": 9,
"discountAmount": 0,
"subTotal": 12342.51,
"taxAmount": 1234.25,
"totalAmount": 13576.76,
"discountPercentage": 0,
"accountRef": {
"id": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Sales"
},
"taxRateRef": {
"id": "6c88aff3-7cb9-4980-a3d3-443e72e02498",
"name": "Sales Tax (10%)",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "9409d23d-1011-432e-98a4-591fcd8d5404",
"name": "300 Litre Grease Trap"
},
"trackingCategoryRefs": [],
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Paid",
"subTotal": 64864.92,
"taxAmount": 6486.5,
"totalAmount": 71351.42,
"amountDue": 0,
"modifiedDate": "2023-04-26T12:38:16Z",
"sourceModifiedDate": "2023-02-14T17:09:02",
"note": "Bill with 12 line items, totaling 71351.42",
"paymentAllocations": [
{
"payment": {
"id": "dcb18480-8b69-44d8-aa26-268b6a80d170",
"note": "Bill Payment against bill 81539597-e681-40c9-a4dd-ec2fffcde572",
"accountRef": {
"id": "dbcaf288-2b39-4b95-8ab3-42202ab15918",
"name": "Business Current Account"
},
"currency": "GBP",
"currencyRate": 1,
"paidOnDate": "2022-05-06T00:00:00",
"totalAmount": 71351.42
},
"allocation": {
"currency": "GBP",
"currencyRate": 1,
"allocatedOnDate": "2022-05-06T00:00:00",
"totalAmount": -71351.42
}
}
],
"metadata": {
"isDeleted": false
}
}
},
{
"status": "200",
"contentType": "application/json",
"name": "Dynamics 365 Business Central",
"example": {
"id": "4019ee2b-d05a-ed11-8c34-000d3a0d28a2-108276",
"reference": "108276",
"supplierRef": {
"id": "c01217b3-89d1-ea11-bbaa-000d3a2b9185",
"supplierName": "First Up Consultants"
},
"purchaseOrderRefs": [],
"issueDate": "2019-01-01T00:00:00",
"dueDate": "2019-01-01T00:00:00",
"currency": "GBP",
"lineItems": [
{
"description": "ATHENS Desk",
"unitAmount": 506.6,
"quantity": 4,
"discountAmount": 202.64,
"subTotal": 1823.76,
"taxAmount": 364.75,
"totalAmount": 2188.51,
"discountPercentage": 10,
"accountRef": {
"id": "6a1217b3-89d1-ea11-bbaa-000d3a2b9185",
"name": "Inventory"
},
"taxRateRef": {
"id": "63bc0fb9-89d1-ea11-bbaa-000d3a2b9185",
"name": "Setup for DOMESTIC / STANDARD",
"effectiveTaxRate": 10
},
"itemRef": {
"id": "ITEM-c81217b3-89d1-ea11-bbaa-000d3a2b9185-DOMESTIC-DOMESTIC",
"name": "ATHENS Desk / General Business Posting Group: 'DOMESTIC' / VAT Business Posting Group: 'DOMESTIC'"
},
"trackingCategoryRefs": [],
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Open",
"subTotal": 1823.76,
"taxAmount": 364.75,
"totalAmount": 2188.51,
"amountDue": 2188.51,
"modifiedDate": "2023-03-27T14:21:25Z",
"sourceModifiedDate": "2022-11-02T17:02:48Z",
"note": "129148",
"paymentAllocations": [],
"metadata": {
"isDeleted": false
}
}
},
{
"status": "200",
"contentType": "application/json",
"name": "Exact (Netherlands)",
"example": {
"id": "1c55118b-793e-4437-9c13-4f554b9ca989",
"reference": "19600006",
"supplierRef": {
"id": "5e6f49b9-6489-4b82-83e7-291d308919bb",
"supplierName": "Mickey Mouse"
},
"purchaseOrderRefs": [],
"issueDate": "2019-12-16T00:00:00Z",
"dueDate": "2019-11-09T00:00:00Z",
"currency": "EUR",
"currencyRate": 1,
"lineItems": [
{
"description": "Cheesecake",
"unitAmount": 10,
"quantity": 1,
"discountAmount": 0,
"subTotal": 10,
"taxAmount": 2.1,
"totalAmount": 12.1,
"accountRef": {
"id": "5f139759-b554-4314-862e-b9d88e5b2e1b",
"name": "Af te dragen loonheffing"
},
"taxRateRef": {
"id": "84277189-ad16-456c-b501-ca31f0a483cc",
"name": "BTW prive gebruik",
"effectiveTaxRate": 21
},
"trackingCategoryRefs": [],
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Paid",
"subTotal": 10,
"taxAmount": 2.1,
"totalAmount": 12.1,
"amountDue": 0,
"modifiedDate": "2022-10-26T13:32:18Z",
"sourceModifiedDate": "2020-01-03T15:06:02Z",
"paymentAllocations": [
{
"payment": {
"id": "d9a2980b-2a43-46f2-9c7f-413d925b3cdd",
"reference": "20200032",
"accountRef": {
"id": "d79d65bd-1d7d-4f55-95d3-76b3a7b7b823",
"name": "Bank 1"
},
"currency": "EUR",
"currencyRate": 1,
"paidOnDate": "2021-03-22T00:00:00",
"totalAmount": 12.1
},
"allocation": {
"currency": "EUR",
"currencyRate": 1,
"totalAmount": -12.1
}
}
]
}
},
{
"status": "200",
"contentType": "application/json",
"name": "Exact (UK)",
"example": {
"id": "e7a45898-2db3-424c-acb9-a51647740f26",
"reference": "17600002",
"supplierRef": {
"id": "a7cad20d-44db-442b-ac1f-90475802d6fb",
"supplierName": "Pencils Pencils Pencils"
},
"purchaseOrderRefs": [],
"issueDate": "2017-09-26T00:00:00Z",
"dueDate": "2017-10-26T00:00:00Z",
"currency": "GBP",
"currencyRate": 1,
"lineItems": [
{
"description": "Stationery",
"unitAmount": 400,
"quantity": 2,
"discountAmount": 0,
"subTotal": 800,
"taxAmount": 160,
"totalAmount": 960,
"accountRef": {
"id": "e5e9e994-0f14-4614-b162-7b5593b21276",
"name": "Finished Goods Stock"
},
"taxRateRef": {
"id": "63cd143a-66ab-4320-8a6d-ab6be85ed048",
"name": "UK purchases standard rate \ufffd Excluding",
"effectiveTaxRate": 20
},
"itemRef": {
"id": "001"
},
"trackingCategoryRefs": [],
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Paid",
"subTotal": 800,
"taxAmount": 160,
"totalAmount": 960,
"amountDue": 0,
"modifiedDate": "2022-10-26T13:33:20Z",
"sourceModifiedDate": "2019-01-11T14:18:17Z",
"paymentAllocations": [
{
"payment": {
"id": "7a5f621b-739f-4ed8-b738-2aae3ef886ac",
"reference": "17200006",
"accountRef": {
"id": "4a4e34b5-7f62-4b64-a44a-073398b14b41",
"name": "Bank"
},
"currency": "GBP",
"currencyRate": 1,
"paidOnDate": "2017-10-11T00:00:00",
"totalAmount": 123
},
"allocation": {
"currency": "GBP",
"currencyRate": 1,
"totalAmount": -123
}
}
]
}
},
{
"status": "200",
"contentType": "application/json",
"name": "FreeAgent",
"example": {
"id": "16609552",
"reference": "MATT - U",
"supplierRef": {
"id": "7169654",
"supplierName": "The Eagle"
},
"purchaseOrderRefs": [],
"issueDate": "2014-08-21T00:00:00",
"dueDate": "2018-09-20T00:00:00",
"currency": "GBP",
"lineItems": [
{
"unitAmount": 125,
"quantity": 1,
"taxAmount": 25,
"totalAmount": 150,
"accountRef": {
"id": "285",
"name": "Accommodation and Meals"
},
"trackingCategoryRefs": [],
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Open",
"subTotal": 125,
"taxAmount": 25,
"totalAmount": 150,
"amountDue": 150,
"modifiedDate": "2023-04-25T14:19:10Z",
"sourceModifiedDate": "2020-11-11T12:48:55Z",
"paymentAllocations": [],
"metadata": {
"isDeleted": false
}
}
},
{
"status": "200",
"contentType": "application/json",
"name": "FreshBooks",
"example": {
"id": "27",
"supplierRef": {
"id": "87"
},
"purchaseOrderRefs": [],
"issueDate": "2021-04-26T00:00:00",
"dueDate": "2021-05-26T00:00:00",
"currency": "USD",
"lineItems": [
{
"description": "Grocery",
"unitAmount": 50,
"quantity": 1,
"subTotal": 50,
"taxAmount": 0,
"totalAmount": 50,
"accountRef": {
"id": "3384197",
"name": "Advertising"
},
"trackingCategoryRefs": [],
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Open",
"subTotal": 50,
"taxAmount": 0,
"totalAmount": 50,
"amountDue": 50,
"modifiedDate": "2023-03-24T16:07:23Z",
"sourceModifiedDate": "2021-04-26T19:34:22",
"paymentAllocations": [],
"metadata": {
"isDeleted": false
}
}
},
{
"status": "200",
"contentType": "application/json",
"name": "KashFlow",
"example": {
"id": "97615244",
"reference": "25",
"supplierRef": {
"id": "9272052",
"supplierName": "Supplier man"
},
"purchaseOrderRefs": [],
"issueDate": "2000-01-01T00:00:00",
"dueDate": "2000-01-01T00:00:00",
"currency": "GBP",
"currencyRate": 1,
"lineItems": [
{
"description": "",
"unitAmount": 8.33,
"quantity": 1,
"subTotal": 8.33,
"taxAmount": 1.67,
"totalAmount": 10,
"accountRef": {
"id": "21481884",
"name": "Computer equipment cost"
},
"itemRef": {
"id": "122990246"
},
"trackingCategoryRefs": [],
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Paid",
"subTotal": 8.33,
"taxAmount": 1.67,
"totalAmount": 10,
"amountDue": 0,
"modifiedDate": "2022-09-30T10:29:15Z",
"paymentAllocations": []
}
},
{
"status": "200",
"contentType": "application/json",
"name": "Oracle NetSuite",
"example": {
"id": "7",
"supplierRef": {
"id": "724",
"supplierName": "Vendor A.A.A"
},
"purchaseOrderRefs": [],
"issueDate": "2021-03-26T00:00:00",
"dueDate": "2021-03-26T00:00:00",
"currency": "GBP",
"currencyRate": 1,
"lineItems": [
{
"unitAmount": 120,
"quantity": 1,
"unitOfMeasurement": "litre",
"subTotal": 120,
"totalAmount": 120,
"accountRef": {
"id": "716",
"name": "Inventory In Transit"
},
"trackingCategoryRefs": [
{
"id": "location-4",
"name": "Europe"
}
],
"tracking": {
"categoryRefs": [
{
"id": "location-4",
"name": "Europe"
}
],
"isBilledTo": "Unknown",
"isRebilledTo": "Unknown"
},
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "PartiallyPaid",
"subTotal": 120,
"taxAmount": 24,
"totalAmount": 144,
"amountDue": 24,
"modifiedDate": "2023-01-30T14:47:34Z",
"sourceModifiedDate": "2022-07-05T13:38:10",
"paymentAllocations": [
{
"payment": {
"id": "112",
"reference": "Bill Payment #1",
"accountRef": {
"id": "825",
"name": "Codat Europe Bank"
},
"currency": "GBP",
"currencyRate": 1,
"paidOnDate": "2021-03-26T00:00:00",
"totalAmount": 120
},
"allocation": {
"currency": "GBP",
"currencyRate": 1,
"totalAmount": -120
}
}
]
}
},
{
"status": "200",
"contentType": "application/json",
"name": "QuickBooks Desktop",
"example": {
"id": "3691-1071520776",
"reference": "3847498",
"supplierRef": {
"id": "B0000-933272656",
"supplierName": "Patton Hardware Supplies"
},
"purchaseOrderRefs": [
{
"id": "3684-1071520443",
"purchaseOrderNumber": "6225"
}
],
"issueDate": "2022-12-02T00:00:00",
"dueDate": "2024-01-01T00:00:00",
"currency": "GBP",
"currencyRate": 1,
"lineItems": [
{
"description": "Cabinets:Light Pine - Light pine kitchen cabinet wall unit \n#CLD- 1235-p",
"unitAmount": 1500,
"quantity": 5,
"discountAmount": 0,
"subTotal": 7500,
"taxAmount": 0,
"totalAmount": 7500,
"discountPercentage": 0,
"accountRef": {
"id": "C0000-933270541",
"name": "Accounts Payable"
},
"itemRef": {
"id": "110000-933272656",
"name": "Cabinets:Light Pine"
},
"trackingCategoryRefs": [
{
"id": "10000-933272658",
"name": "New Construction"
}
],
"tracking": {
"categoryRefs": [
{
"id": "10000-933272658",
"name": "New Construction"
}
],
"isBilledTo": "Unknown",
"isRebilledTo": "Unknown"
},
"isDirectCost": false
},
{
"description": "Hardware:Doorknobs Std - Doorknobs Part # DK 3704",
"unitAmount": 27,
"quantity": 100,
"discountAmount": 0,
"subTotal": 2700,
"taxAmount": 0,
"totalAmount": 2700,
"discountPercentage": 0,
"accountRef": {
"id": "C0000-933270541",
"name": "Accounts Payable"
},
"itemRef": {
"id": "130000-933272656",
"name": "Hardware:Doorknobs Std"
},
"trackingCategoryRefs": [
{
"id": "10000-933272658",
"name": "New Construction"
}
],
"tracking": {
"categoryRefs": [
{
"id": "10000-933272658",
"name": "New Construction"
}
],
"isBilledTo": "Unknown",
"isRebilledTo": "Unknown"
},
"isDirectCost": false
},
{
"description": "Hardware:Lk Doorknobs - Locking interior doorknobs Part # DK415",
"unitAmount": 34.95,
"quantity": 100,
"discountAmount": 0,
"subTotal": 3495,
"taxAmount": 0,
"totalAmount": 3495,
"discountPercentage": 0,
"accountRef": {
"id": "C0000-933270541",
"name": "Accounts Payable"
},
"itemRef": {
"id": "140000-933272656",
"name": "Hardware:Lk Doorknobs"
},
"trackingCategoryRefs": [
{
"id": "10000-933272658",
"name": "New Construction"
}
],
"tracking": {
"categoryRefs": [
{
"id": "10000-933272658",
"name": "New Construction"
}
],
"isBilledTo": "Unknown",
"isRebilledTo": "Unknown"
},
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Paid",
"subTotal": 13695,
"taxAmount": 0,
"totalAmount": 13695,
"amountDue": 0,
"modifiedDate": "2023-04-26T09:06:42Z",
"sourceModifiedDate": "2023-12-16T05:06:30",
"paymentAllocations": [
{
"payment": {
"id": "36AD-1071520917",
"note": "RC 93",
"reference": "484",
"accountRef": {
"id": "20000-933270541",
"name": "Checking"
},
"currency": "GBP",
"currencyRate": 1,
"paidOnDate": "2024-12-05T00:00:00",
"totalAmount": 5325
},
"allocation": {
"currency": "GBP",
"currencyRate": 1,
"totalAmount": -5000
}
},
{
"payment": {
"id": "9E4C-1182131999",
"reference": "115",
"accountRef": {
"id": "20000-933270541",
"name": "Checking"
},
"currency": "GBP",
"currencyRate": 1,
"paidOnDate": "2023-01-31T00:00:00",
"totalAmount": 13759
},
"allocation": {
"currency": "GBP",
"currencyRate": 1,
"totalAmount": -8695
}
}
],
"metadata": {
"isDeleted": false
}
}
},
{
"status": "200",
"contentType": "application/json",
"name": "QuickBooks Online",
"example": {
"id": "18",
"reference": "12",
"supplierRef": {
"id": "4",
"supplierName": "BILLy elliot"
},
"purchaseOrderRefs": [],
"issueDate": "2019-05-13T00:00:00",
"dueDate": "2019-05-13T00:00:00",
"currency": "GBP",
"currencyRate": 1,
"lineItems": [
{
"unitAmount": 5,
"quantity": 1,
"discountAmount": 0,
"subTotal": 5,
"taxAmount": 0,
"totalAmount": 5,
"accountRef": {
"id": "16",
"name": "Advertising"
},
"taxRateRef": {
"id": "NON",
"name": "NON",
"effectiveTaxRate": 0
},
"trackingCategoryRefs": [],
"tracking": {
"categoryRefs": [],
"isBilledTo": "Unknown",
"isRebilledTo": "NotApplicable"
},
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Paid",
"subTotal": 5,
"taxAmount": 0,
"totalAmount": 5,
"amountDue": 0,
"modifiedDate": "2023-01-18T11:02:41Z",
"sourceModifiedDate": "2022-05-26T10:34:10Z",
"paymentAllocations": [
{
"payment": {
"id": "20",
"currency": "GBP",
"currencyRate": 1,
"paidOnDate": "2019-05-13T00:00:00",
"totalAmount": 0
},
"allocation": {
"currency": "GBP",
"currencyRate": 1,
"totalAmount": -5
}
}
]
}
},
{
"status": "200",
"contentType": "application/json",
"name": "QuickBooks Online Sandbox",
"example": {
"id": "157",
"supplierRef": {
"id": "57",
"supplierName": "Hall's Promo Items"
},
"purchaseOrderRefs": [],
"issueDate": "2016-01-06T00:00:00",
"dueDate": "2016-01-16T00:00:00",
"currency": "HKD",
"currencyRate": 0.081142,
"lineItems": [
{
"description": "Water bottles -- generic",
"unitAmount": 66.1717023,
"quantity": 100,
"discountAmount": 0,
"subTotal": 6617.17,
"taxAmount": 1323.43,
"totalAmount": 7940.6,
"taxRateRef": {
"id": "3_Bills",
"name": "20.0% S Bills",
"effectiveTaxRate": 20
},
"itemRef": {
"id": "19",
"name": "Water Bottles"
},
"trackingCategoryRefs": [],
"tracking": {
"categoryRefs": [],
"customerRef": {
"id": "55",
"companyName": "Oxon Insurance - Holiday Party"
},
"isBilledTo": "Unknown",
"isRebilledTo": "NotApplicable"
},
"isDirectCost": false
}
],
"withholdingTax": [],
"status": "Paid",
"subTotal": 6617.17,
"taxAmount": 1323.43,
"totalAmount": 7940.6,
"amountDu
# --- truncated at 32 KB (49 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/codat/refs/heads/main/examples/codat-get-accounting-bill-example.json