PageSourceSearch

https://www.billy.dk/_next/static/chunks/pages/api-docs-961ae49f4bf1c322.js

js billy.dk collected 2026-10-01 13:14:51 UTC 221,627 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1103],{59802:function(e,n,d){"use strict";d.d(n,{$:function(){return s.$}});var s=d(31064)},26985:function(e,n,d){"use strict";d.d(n,{h:function(){return s.h}});var s=d(35024)},30537:function(e,n,d){"use strict";var s=d(59499),r=d(59802),t=d(26985),i=d(85893);function c(e,n){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),d.push.apply(d,s)}return d}function l(e){for(var n=1;n<arguments.length;n++){var d=null!=arguments[n]?arguments[n]:{};n%2?c(Object(d),!0).forEach((function(n){(0,s.Z)(e,n,d[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):c(Object(d)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(d,n))}))}return e}n.Z=function(e){var n=e.children,d=e.title,s=e.metaDescription,c=e.headerData,h=e.schemaData,o=e.ratingData,a=e.pageTitle,x=e.noindex,j=e.canonicalUrl,u=e.navbarType,p=e.socialImage;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.h,l({title:d,pageTitle:a,metaDescription:s,noindex:x,canonicalUrl:j,navbarType:u,socialImage:p,schemaData:h},c)),n,(0,i.jsx)(r.$,{ratingData:o})]})}},77982:function(e,n,d){"use strict";d.r(n),d.d(n,{default:function(){return q}});var s=d(59499),r=d(85893),t=function(){return(0,r.jsx)("pre",{children:'{\n      "invoice": {\n        "id": "3mIN9EbDEeOg8QgAJ4gM",\n        "invoiceNo": 41,\n        ...\n      }\n    }'})},i=function(){return(0,r.jsx)("pre",{children:'{\n    "invoices": [\n      {\n        "id": "3mIN9EbDEeOg8QgAJ4gM",\n        "invoiceNo": 41,\n        ...\n      },\n      {\n        "id": "4LmaTkbDEeOg8QgAJ4to",\n        "invoiceNo": 42,\n        ...\n      }\n    ]\n  }'})},c=function(){return(0,r.jsx)("pre",{children:'{\n    "invoice": {\n      "invoiceNo": 41,\n      "entryDate": "2013-11-14",\n      ...\n    }\n  }'})},l=function(){return(0,r.jsx)("pre",{children:'{\n  "invoice": {\n    "contactMessage": 41,\n    ...\n  }\n}'})},h=function(){return(0,r.jsx)("pre",{children:'{\n        "invoices": [\n          {\n            "id": "3mIN9EbDEeOg8QgAJ4gM",\n            "amount": 200,\n            ...\n          }\n        ],\n        invoiceLines: [\n          {\n            "id": "cgYxHZWCSfajDIvj9Q8yRQ",\n            "invoiceId": "3mIN9EbDEeOg8QgAJ4gM",\n            ...\n          }\n        ]\n      }'})},o=function(){return(0,r.jsx)("pre",{children:'{\n      "meta": {\n        "deletedRecords": {\n          "invoices": [\n            "1234"\n          ]\n        }\n      }\n    }'})},a=function(){return(0,r.jsx)("pre",{children:'{\n      "invoices: [\n        {\n          "id": "invoice1",\n          "contactId": "contact1",\n          ...\n          "lines": [\n            {\n              "id": "line1",\n              ...\n            },\n            {\n              "id": "line2",\n              ...\n            }\n          ]\n        }\n      ],\n      "contacts: [\n        {\n          "id": "contact1",\n          "country": {\n            "id": "DK",\n            "name": "Denmark",\n            ...\n          },\n          ...\n        }\n      ]\n    }'})},x=function(){return(0,r.jsx)("pre",{children:'{\n      "invoice": {\n        "invoiceNo": 41,\n        ...\n        "lines:" [\n          {\n            "productId": "...",\n            "unitPrice": 100,\n            ...\n          }\n        ]\n      }\n    }'})},j=function(){return(0,r.jsx)("pre",{children:'{\n      "meta": {\n        "paging": {\n          "page": 4,\n          "pageCount": 9,\n          "pageSize": 20,\n          "total": 192,\n          "firstUrl": "https://api.billysbilling.com/v2/invoices?pageSize=20",\n          "previousUrl": "https://api.billysbilling.com/v2/invoices?page=3&amp;pageSize=20",\n          "nextUrl": "https://api.billysbilling.com/v2/invoices?page=5&amp;pageSize=20",\n          "lastUrl": "https://api.billysbilling.com/v2/invoices?page=9&amp;pageSize=20"\n        }\n      },\n      "invoices": [...]\n    }'})},u=function(){return(0,r.jsx)("pre",{children:"<?php\n    // Reusable client for sending requests to the Billy API\n    class BillyClient {\n        private $apiToken;\n    \n        public function __construct($apiToken) {\n            $this->apiToken = $apiToken;\n        }\n    \n        public function request($method, $url, $body = null) {\n            try {\n                $c = curl_init(\"https://api.billysbilling.com/v2\" . $url);
1\n                curl_setopt($c, CURLOPT_RETURNTRANSFER, true);\n                curl_setopt($c, CURLOPT_CUSTOMREQUEST, $method);\n    \n                // Set headers\n                curl_setopt($c, CURLOPT_HTTPHEADER, array(\n                    \"X-Access-Token: \" . $this->apiToken,\n                    \"Content-Type: application/json\"\n                ));\n    \n                if ($body) {\n                    // Set body\n                    curl_setopt($c, CURLOPT_POSTFIELDS, json_encode($body));\n                }\n    \n                // Execute request\n                $res = curl_exec($c);\n                $status = curl_getinfo($c, CURLINFO_HTTP_CODE);\n                $body = json_decode($res);\n    \n                if ($status >= 400) {\n                    throw new Exception(\"$method: $url failed with $status - $res\");\n                }\n    \n                return $body;\n            } catch (Exception $e) {\n                print_r($e);\n                throw $e;\n            }\n        }\n    }\n    \n    // Creates a contact. The server replies with a list of contacts and we\n    // return the id of the first contact of the list\n    function createContact($client, $organizationId) {\n        $contact = array(\n            'organizationId' => $organizationId,\n            'name' => \"Ninjas\",\n            'countryId' => \"DK\"\n        );\n        $res = $client->request(\"POST\", \"/contacts\", array('contact' => $contact));\n    \n        return $res->contacts[0]->id;\n    }\n    \n    // Creates a product. The server replies with a list of products and we\n    // return the id of the first product of the list\n    function createProduct($client, $organizationId) {\n        $product = array(\n            'organizationId' => $organizationId,\n            'name' => 'Pens',\n            'prices' => [array(\n                'unitPrice' => 200,\n                'currencyId' => 'DKK'\n            )]\n        );\n        $res = $client->request(\"POST\", \"/products\", array('product' => $product));\n    \n        return $res->products[0]->id;\n    }\n    \n    // Creates an invoice, the server replies with a list of invoices and we\n    // return the id of the first invoice of the list\n    function createInvoice($client, $organizationId, $contactId, $productId) {\n        $invoice = array(\n            'organizationId' => $organizationId,\n            'invoiceNo' => 991,\n            'entryDate' => '2013-11-14',\n            'contactId' => $contactId,\n            'lines' => [array(\n                'productId' => $productId,\n                'unitPrice' => 200\n            )]\n        );\n        $res = $client->request(\"POST\", \"/invoices\", array('invoice' => $invoice));\n    \n        return $res->invoices[0]->id;\n    }\n    \n    // Gets the id of the organization associated with the API token.\n    function getOrganizationId($client) {\n        $res = $client->request(\"GET\", \"/organization\");\n    \n        return $res->organization->id;\n    }\n    \n    function getInvoice($client, $invoiceId) {\n        $res = $client->request(\"GET\", \"/invoices\", $invoiceId);\n    \n        return $res->invoices[0];\n    }\n    \n    function main() {\n        $client = new BillyClient(\"YOUR ACCESS TOKEN HERE\");\n    \n        $currentOrganizationId = getOrganizationId($client);\n        $newContactId = createContact($client, $currentOrganizationId);\n        $newProductId = createProduct($client, $currentOrganizationId);\n        $newInvoiceId = createInvoice($client, $currentOrganizationId, $newContactId, $newProductId);\n        $newlyCreatedInvoice = getInvoice($client, $newInvoiceId);\n    \n        print_r($newlyCreatedInvoice);\n    }\n    \n    // Run script which creates a new contact, a product and an invoice\n    main()"})},p=function(){return(0,r.jsx)("pre",{children:"const axios = require('axios')\n    class BillyClient {\n        constructor (apiToken) {\n            this.apiToken = apiToken\n        }\n    \n        async request (method, url, body) {\n            try {\n                const res = await axios({\n                    baseURL: 'https://api.billysbilling.com/v2',\n                    method,\n                    url,\n                    headers: {\n                        'X-Access-Token': this.apiToken,\n                        'Content-Type': 'application/json'\n                    },\n                    data: body\n                })\n    \n                if (res.status >= 400) {\n                    throw new Error(".concat("${method}: ${url} failed with ${res.status} - ${res.data}",")\n                }\n    \n                return res.data\n            } catch (e) {\n                console.error(e)\n                throw e\n            }\n        }\n    }\n    \n    // Creates a contact. The server replies with a list of contacts and we\n    // return the id of the first contact of the list\n    async function createContact (client, organizationId) {\n        const contact = {\n            'organizationId': organizationId,\n            'name': 'John',\n            'countryId': 'DK'\n        }\n        const res = await client.request('POST', '/contacts', { contact: contact })\n    \n        return res.contacts[0].id\n    }\n    \n    // Creates a product. The server replies with a list of products and we\n    // return the id of the first product of the list\n    async function createProduct (client, organizationId) {\n        const product = {\n            'organizationId': organizationId,\n            'name': 'Ninjas',\n            'prices': [{\n                'unitPrice': 200,\n                'currencyId': 'DKK'\n            }]\n        }\n        const res = await client.request('POST', '/products', { product: product })\n    \n        return res.products[0].id\n    }\n    \n    // Creates an invoice, the server replies with a list of invoices and we\n    // return the id of the first invoice of the list\n    async function createInvoice (client, organizationId, contactId, productId) {\n        const invoice = {\n            'organizationId': organizationId,\n            'invoiceNo': 5003,\n            'entryDate': '2013-11-14',\n            'contactId': contactId,\n            'lines': [{\n                'productId': productId,\n                'unitPrice': 200\n            }]\n        }\n        const res = await client.request('POST', '/invoices', { invoice: invoice })\n    \n        return res.invoices[0].id\n    }\n    \n    // Gets the id of organization associated with the API token.\n    async function getOrganizationId (client) {\n        const res = await client.request('GET', '/organization')\n    \n        return res.organization.id\n    }\n    \n    async function getInvoice (client, invoiceId) {\n        const res = await client.request('GET', '/invoices', invoiceId)\n    \n        return res.invoices[0]\n    }\n    \n    async function main () {\n        const client = new BillyClient('0aa10580a9f06be67e864cc93c6da68ab5695340')\n    \n        const currentOrganizationId = await getOrganizationId(client)\n        const newContactId = await createContact(client, currentOrganizationId)\n        const newProductId = await createProduct(client, currentOrganizationId)\n        const newInvoiceId = await createInvoice(client, currentOrganizationId, newContactId, newProductId)\n        const newlyCreatedInvoice = await getInvoice(client, newInvoiceId)\n    \n        console.log(newlyCreatedInvoice)\n    }\n    \n    // Run script which creates a new contact, a product and an invoice\n    main()")})},m=function(){return(0,r.jsx)("pre",{children:"import requests\n  # Reusable class for sending requests to the Billy API\n  class BillyClient:\n      def __init__(self, apiToken):\n          self.apiToken = apiToken\n      def request(self, method, url, body):\n          baseUrl = 'https://api.billysbilling.com/v2'\n          try:\n              response = {\n                  'GET': requests.get(\n                      baseUrl + url,\n                      headers={'X-Access-Token': self.apiToken}\n                  ),\n                  'POST': requests.post(\n                      baseUrl + url,\n                      json=body,\n                      headers={'X-Access-Token': self.apiToken}\n                  ),\n              }[method]\n              status_code = response.status_code\n              raw_body = response.text\n              if status_code >= 400:\n                  raise requests.exceptions.RequestException(\n                      '{}: {} failed with {:d} - {}'\n                      .format(method, url, status_code, raw_body)\n                  )\n              return response.json()\n          except requests.exceptions.RequestException as e:\n              print(e)\n              raise e\n  # Creates a contact. The server replies with a list of contacts and we\n  # return the id of the first contact of the list\n  def createContact(client, organizationId):\n      contact = {\n          'organizationId': organizationId,\n          'name': 'John',\n          'countryId': 'DK'\n      }\n      response = client.request('POST', '/contacts', {'contact': contact})\n      return response['contacts'][0]['id']\n  # Creates a product. The server replies with a list of products and we\n  # return the id of the first product of the list\n  def createProduct(client, organizationId):\n      product = {\n          'organizationId': organizationId,\n          'name': 'Pens',\n          'prices': [{\n              'unitPrice': 200,\n              'currencyId': 'DKK'\n          }]\n      }\n      response = client.request('POST', '/products', {'product': product})\n      return response['products'][0]['id']\n  # Creates an invoice, the server replies with a list of invoices and we\n  # return the id of the first invoice of the list\n  def createInvoice(client, organizationId, contactId, productId):\n      invoice = {\n          'organizationId': organizationId,\n          'invoiceNo': 65432,\n          'entryDate': '2013-11-14',\n          'contactId': contactId,\n          'lines': [{\n              'productId': productId,\n              'unitPrice': 200\n          }]\n      }\n      response = client.request('POST', '/invoices', {'invoice': invoice})\n      return response['invoices'][0]['id']\n  # Get id of organization associated with the API token.\n  def getOrganizationId(client):\n      response = client.request('GET', '/organization', None)\n      return response['organization']['id']\n  # Gets a invoice by its Id\n  def get_invoice(client, invoiceId):\n      response = client.request('GET', '/invoices', invoiceId)\n      return response['invoices'][0]\n  def main():\n      client = BillyClient('INSERT ACCESS TOKEN HERE')\n      currentOrganizationId = getOrganizationId(client)\n      newContactId = createContact(client, currentOrganizationId)\n      newProductId = createProduct(client, currentOrganizationId)\n      newinvoiceId = createInvoice(client, currentOrganizationId, newContactId, newProductId)\n      newlyCreatedInvoice = get_invoice(client, newinvoiceId)\n      print(newlyCreatedInvoice)\n  main()"})},b=function(){return(0,r.jsx)("pre",{children:'{\n      "bankPayment": {\n        "organizationId": "YOUR COMPANY ID",\n        "entryDate": "2014-01-16",\n        "cashAmount": 1200,\n        "cashSide": "debit",\n        "cashAccountId": "BANK ACCOUNT ID",\n        "associations": [\n          {\n            "subjectReference": "invoice:inv-1234"\n          }\n        ]\n      }\n    }'})},y=function(){return(0,r.jsx)("pre",{children:'{\n      "product": {\n        "organizationId": "YOUR ORGANIZATION ID",\n        "name": "Bat capes",\n        "accountId": "REVENUE ACCOUNT ID",\n        "salesTaxRulesetId": "SALES TAX RULESET ID"\n        "prices": [\n          {\n            "unitPrice": 14000,\n            "currencyId": "USD"\n          },\n          {\n            "unitPrice": 10000,\n            "currencyId": "EUR"\n          }\n        ]\n      }\n    }'})},g=function(){return(0,r.jsx)("pre",{children:'\n    curl --location \'https://api.billy.dk/v2/files\' \n      --header \'authorization: Bearer ********\' \n      --header \'x-access-token: ********\' \n      --header \'x-create-attachment: true\'\n      --header \'x-create-variants: true\' \n      --header \'x-organizationid: <YOUR ORGANIZATION ID> \n      --header \'X-Filename: test.pdf\' \n      --header \'Content-Type: application/pdf\' \n      --data-binary \'@/path/to/your/file.pdf\'\n    Shortened response example:\n    {\n      "files": [\n        {\n          "id": "********",\n          "createdTime": "2025-11-12T04:37:46",\n          "fileName": "test.pdf",\n          "isPdf": true,\n          "downloadUrl": "https://download.billy.dk/test.pdf?token=********",\n        }\n      ],\n      "attachments": [\n        {\n          "id": "********",\n          "fileId": "********"\n        }\n      ]\n    }'})},f=function(){return(0,r.jsx)("pre",{children:'\n    {\n      "bill": {\n        "attachmentIds": [\n        {\n          "id": "<ATTACHMENT ID FROM UPLOAD>",\n        },\n        {\n          "id": "<ATTACHMENT ID 2 FROM UPLOAD>",\n        }\n      ]\n   }\n}'})},v=function(){return(0,r.jsx)("pre",{children:'{\n      "email": {\n        "contactPersonId": "contactPersonId, required",\n        "emailBody": "Your body here, required",\n        "emailSubject": "Your subject here, required",\n        "copyToUserId" => "userId, optional if you want to CC yourself",\n      }\n}'})},T=function(){return(0,r.jsx)("pre",{children:'{\n  "invoiceDelivery": {\n    "invoiceId": "yourInvoiceId",\n    "organizationId": "y
1ourOrganizationId",\n    "receiverIdType": "gln",\n    "receiverGln": "1234567890123",\n    "orderReference": "yourOrderReference",\n    "senderUserId": "yourUserId"\n  }\n}'})},N=function(){return(0,r.jsx)("pre",{children:'{\n  "invoiceLogs": [\n    {\n      "type": "failed",\n      "message": "Invalid Document: [F-LIB131] PaymentMeansCode = 42, Account ID must be no more than 10 characters",\n      "messageKey": "schema_invalid_bank_digits",\n      "eventTime": "2024-03-22T08:38:37"\n    }\n  ]\n}'})},w=d(30537),I=d(32923),D=d(67294),k=d(91411);function P(e,n){var d=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),d.push.apply(d,s)}return d}function S(e){for(var n=1;n<arguments.length;n++){var d=null!=arguments[n]?arguments[n]:{};n%2?P(Object(d),!0).forEach((function(n){(0,s.Z)(e,n,d[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(d)):P(Object(d)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(d,n))}))}return e}function q(e){var n=(0,D.useRef)(null),d=k.Ry({email:k.Z_().email("Please enter a valid email address").required("Email is required")});return(0,r.jsx)(w.Z,S(S({},e),{},{noindex:!0,title:"Billy API \u2013 Integrer nemt med din platform",children:(0,r.jsx)("div",{className:"container api",children:(0,r.jsxs)("div",{className:"markdown-rendered-content",children:[(0,r.jsx)("h1",{children:"Billy API v2 Documentation"}),(0,r.jsx)("p",{children:"Billy's new API is a JSON-based REST API. Our webapp uses the exact same API - which is your guarantee that the API will always support full functionality, and will generally be nice to work with. We take our own medicine!"}),(0,r.jsxs)("p",{children:["If you have any questions or feedback (we love feedback!), please don't hesitate to write us at"," ",(0,r.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),(0,r.jsxs)("div",{className:"lp-component-api-docs-form",children:[(0,r.jsx)("p",{children:"If you want to receive an email when we're updating or changing our API, you can subscribe here."}),(0,r.jsx)(I.J9,{initialValues:{email:""},validationSchema:d,onSubmit:function(e,d){var s=d.setSubmitting,r=n.current;r.action="//links.iterable.com/lists/publicAddSubscriberForm?publicIdString=e8f0e7f0-3e0d-4cf1-b7cd-3d161f2d0f93&email=".concat(encodeURIComponent(e.email)),r.method="POST",r.target="_blank",r.submit(),s(!1)},children:function(e){var d=e.isSubmitting;e.values;return(0,r.jsxs)(I.l0,{name:"iterable_optin",className:"form",ref:n,children:[(0,r.jsxs)("div",{className:"input-wrapper",children:[(0,r.jsx)(I.gN,{type:"text",name:"email",className:"input",placeholder:"Enter your email"}),(0,r.jsx)(I.Bc,{name:"email",component:"div",className:"error"})]}),(0,r.jsx)("button",{type:"submit",className:"submit",disabled:d,children:"Submit"})]})}})]}),(0,r.jsx)("h2",{children:"Table of Contents"}),(0,r.jsxs)("ul",{className:"api-table-of-contents",children:[(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#endpoint",children:"Endpoint"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#authentication",children:"Authentication"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#conventions",children:"Conventions"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#relationships",children:"Relationships"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#paging",children:"Paging"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#filtering",children:"Filtering"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#sorting",children:"Sorting"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#localization",children:"Localization"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#code-examples",children:"Code examples"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#use-case-examples",children:"Use case examples"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#resource-documentation",children:"Resource documentation"})})]}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"endpoint"})," Endpoint"]}),(0,r.jsxs)("p",{children:["The API is located at ",(0,r.jsx)("code",{children:"https://api.billysbilling.com/v2"}),"."]}),(0,r.jsx)("p",{children:"All requests must use SSL."}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"authentication"})," Authentication"]}),(0,r.jsx)("p",{children:"We currently support two authentication methods with the API."}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"oauth-access-tokens"})," OAuth access tokens"]}),(0,r.jsx)("p",{children:"Here's how to obtain an access token for your company:"}),(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:["Log into your account on ",(0,r.jsx)("a",{href:"https://mit.billy.dk/",children:"mit.billy.dk"}),"."]}),(0,r.jsx)("li",{children:"Go to Settings -> Access tokens."}),(0,r.jsx)("li",{children:"Click Create access token."}),(0,r.jsx)("li",{children:"Enter a descriptive name for your token, so you can easily identify it later. Then hit the Save button."}),(0,r.jsx)("li",{children:"Hover over the newly-generated access token and click the magnifier icon to show it clearly."}),(0,r.jsx)("li",{children:"The token will now be selected in a text field, inside a lightbox."})]}),(0,r.jsxs)("p",{children:["All you have to do now is put this token in a ",(0,r.jsx)("code",{children:"X-Access-Token"})," header. See"," ",(0,r.jsx)("a",{href:"#code-examples",children:"Code examples"})," for a complete example."]}),(0,r.jsx)("p",{children:"The tokens you create under Settings -> Access tokens are tied to that company only. If you have multiple companies, you'll need a separate token for each one. Tokens are permanent - the don't expire."}),(0,r.jsx)("p",{children:"We plan to support a 3-legged OAuth solution eventually."}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"http-basic-auth"})," HTTP basic auth"]}),(0,r.jsxs)("p",{children:["You can use your normal email and password for authentication"," ",(0,r.jsx)("a",{href:"https://en.wikipedia.org/wiki/Basic_access_authentication",children:"HTTP Basic Auth"}),". You can try it right now, if you like. Just navigate to ",(0,r.jsx)("code",{children:"https://api.billysbilling.com/v2/user"}),". Enter your email and password in the browser's credentials form, and you'll see your user as a JSON document."]}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"conventions"})," Conventions"]}),(0,r.jsx)("p",{children:"Billy's API is very consistent; we use the same conventions for all resources. Generally speaking, there are 5 ways to interact with a resource: Get one item, list, create, update and delete."}),(0,r.jsxs)("p",{children:["A resource is always accessed through its pluralized name. For example, you can access invoices through"," ",(0,r.jsx)("code",{children:"/v2/invoices"}),"."]}),(0,r.jsxs)("p",{children:["In the examples that follow, we'll use the ",(0,r.jsx)("code",{children:"invoices"})," resource - but the exact same pattern applies to all resources."]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"getting-a-single-record"})," Getting a single record"]}),(0,r.jsxs)("p",{children:["When getting a single record, you should use ",(0,r.jsx)("code",{children:"GET /v2/invoices/:id"})," (where ",(0,r.jsx)("code",{children:":id"})," ","denotes a dynamic slug, and should be replaced by a real invoice ID). The response will be a JSON document with a root key named after the singular name containing the requested record. Invoice example:"]}),(0,r.jsx)(t,{}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"listing-a-resource"})," Listing a resource"]}),(0,r.jsxs)("p",{children:["Use ",(0,r.jsx)("code",{children:"GET /v2/invoices"}),". The response will be a JSON document with a root key named after the pluralized designation and containing an array of found records. Invoice example:"]}),(0,r.jsx)(i,{}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"creating-a-record"})," Creating a record"]}),(0,r.jsxs)("p",{children:["Use ",(0,r.jsx)("code",{children:"POST /v2/invoices"}),". The request body should be a JSON document containing a single root key named after the singular name, and should be a hash of record properties. Invoice example:"]}),(0,r.jsx)(c,{}),(0,r.jsxs)("p",{children:["See more about the response body in the section"," ",(0,r.jsx)("a",{href:"#responses-to-createupdatedelete-requests",children:"Responses to create/update/delete"}),". You can get the ID of the newly created record by getting ",(0,r.jsx)("code",{children:"invoices.0.id"})," in the returned JSON document."]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"updating-a-record"})," Updating a record"]}),(0,r.jsxs)("p",{children:["Use ",(0,r.jsx)("code",{children:"PUT /v2/invoices/:id"}),". The request body should be a JSON document containing a single root key named after the singular name, and should be a hash of record properties. The hash does not need to include the record's ID - if it does, though, it must be exactly the same ID you used in the URL. You can't change a record's ID. Invoice example:"]}),(0,r.jsx)(l,{}),(0,r.jsxs)("p",{children:["Only properties that you set in the ",(0,r.jsx)("code",{children:"invoice"})," hash will be updated. Properties that are left out will be considered as if they are the same. So if all you need to do is to update the"," ",(0,r.jsx)("code",{children:"contactMessage"})," property, then you don't need to include any other properties."]}),(0,r.jsxs)("p",{children:["The response works the same as with a ",(0,r.jsx)("code",{children:"POST"})," request."]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"deleting-a-record"})," Deleting a record"]}),(0,r.jsxs)("p",{children:["Use ",(0,r.jsx)("code",{children:"DELETE /v2/invoices/:id"}),". The request should not have a body."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:"DELETE"})," requests are idempotent, meaning that if you try to ",(0,r.jsx)("code",{children:"DELETE"})," the same record more than once (or delete any other non-existing ID), you will still receive a ",(0,r.jsx)("code",{children:"200 OK"})," response."]}),(0,r.jsxs)("p",{children:["See more about the response body in the section"," ",(0,r.jsx)("a",{href:"#responses-to-createupdatedelete-requests",children:"'Responses to create/update/delete requests'"}),"."]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"responses-to-createupdatedelete-requests"})," Responses to create/update/delete requests"]}),(0,r.jsxs)("p",{children:["When you make ",(0,r.jsx)("code",{children:"POST"}),", ",(0,r.jsx)("code",{children:"PUT"}),", ",(0,r.jsx)("code",{children:"PATCH"})," or ",(0,r.jsx)("code",{children:"DELETE"})," requests to the API, the response will always include all records that changed because of the request. The record you created/updated will of course be included. Example: When you create an ",(0,r.jsx)("code",{children:"invoiceLine"})," for an existing ",(0,r.jsx)("code",{children:"invoice"}),", the ",(0,r.jsx)("code",{children:"amount"})," field on the ",(0,r.jsx)("code",{children:"invoice"})," will also be changed. So a ",(0,r.jsx)("code",{children:"POST /v2/invoiceLines"})," would return something like:"]}
1),(0,r.jsx)(h,{}),(0,r.jsxs)("p",{children:["The IDs of deleted records will be accessible through the ",(0,r.jsx)("code",{children:"meta.deletedRecords"})," property. Example: When requesting ",(0,r.jsx)("code",{children:"DELETE /v2/invoices/1234"}),", the response will be:"]}),(0,r.jsx)(o,{}),(0,r.jsxs)("p",{children:["Note that some ",(0,r.jsx)("code",{children:"PUT"})," requests may delete records, too - for example, when you overwrite a record's has-many relationship using an embedded array of child records."]}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"relationships"})," Relationships"]}),(0,r.jsx)("p",{children:"The API is smart about relationships. Many resources have relationships, and we distinguish between two kinds of relationships:"}),(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:["Belongs-to: A record of resource A has an ID that points to a record of resource B. Example:"," ",(0,r.jsx)("code",{children:"invoice"})," records have a ",(0,r.jsx)("code",{children:"contactId"})," property which points to a ",(0,r.jsx)("code",{children:"contact"})," ","record."]}),(0,r.jsxs)("li",{children:["Has-many: A record of resource A has zero or more records of resource B that point to it. Example:"," ",(0,r.jsx)("code",{children:"invoice"})," records have zero or more ",(0,r.jsx)("code",{children:"invoiceLine"})," records that have an"," ",(0,r.jsx)("code",{children:"invoiceId"})," property, which points back. A has-many relationship always implies a belongs-to relationship on the inverse resource."]})]}),(0,r.jsxs)("p",{children:["Normally, when you ",(0,r.jsx)("code",{children:"GET"})," a resource that has relationships, the belongs-to relationship will be presented as the name of the property, suffixed with ",(0,r.jsx)("code",{children:"Id"})," and containing the ID. If you"," ",(0,r.jsx)("code",{children:"GET /v2/invoices/123"})," and it responds with a ",(0,r.jsx)("code",{children:'"contactId": "987"'}),", you can get the ",(0,r.jsx)("code",{children:"contact"})," by requesting ",(0,r.jsx)("code",{children:"GET /v2/contacts/987"}),". Has-many relationships won't be in the request, by default."]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"requesting-sideloaded-or-embedded-records"})," Requesting sideloaded or embedded records"]}),(0,r.jsxs)("p",{children:["You can include relationships by adding an ",(0,r.jsx)("code",{children:"include"})," parameter to your ",(0,r.jsx)("code",{children:"GET"})," request. The value of the ",(0,r.jsx)("code",{children:"include"})," parameter should be in the form"," ",(0,r.jsx)("code",{children:"resource.property:mode[,resource.property:mode,...]"}),", where ",(0,r.jsx)("code",{children:"resource"})," is the name of a resource, ",(0,r.jsx)("code",{children:"property"})," is the name of a property of that resource, and ",(0,r.jsx)("code",{children:"mode"})," is either ",(0,r.jsx)("code",{children:"sideload"})," (default if the ",(0,r.jsx)("code",{children:":"})," part is omitted) or ",(0,r.jsx)("code",{children:"embed"}),". You can include multiple relationships by separating them with ",(0,r.jsx)("code",{children:","}),"."]}),(0,r.jsxs)("p",{children:["Example: You can load ",(0,r.jsx)("code",{children:"invoices"})," with its ",(0,r.jsx)("code",{children:"invoiceLines"})," embedded, its"," ",(0,r.jsx)("code",{children:"contacts"})," sideloaded, and the contact's country embedded by doing"," ",(0,r.jsx)("code",{children:"GET /invoices?include=invoice.lines:embed,invoice.contact:sideload,contact.country:embed"}),". The response will be something like:"]}),(0,r.jsx)(a,{}),(0,r.jsxs)("p",{children:["When sideloading belongs-to relationships, the name of the key is the singular name of the resource, suffixed with ",(0,r.jsx)("code",{children:"Id"})," (like the default behavior), and each sideloaded record can be found in a root key named after the plural name of the belongs-to inverse resource. It's recommended to sideload records instead of embedding, to avoid duplication (each belongs-to record is only included in the response once)."]}),(0,r.jsxs)("p",{children:["When embedding belongs-to relationships, the name of the key is the singular name of the resource, for example ",(0,r.jsx)("code",{children:"contact"})," - and it contains all the record's properties."]}),(0,r.jsxs)("p",{children:["When sideloading has-many relationships, all the child IDs are included as an array of str
1ings in the parent record, in a key named after the relationship's name (not the inverse resource), suffixed with"," ",(0,r.jsx)("code",{children:"Ids"}),"."]}),(0,r.jsx)("p",{children:"When embedding has-many relationships, all the full child records are included as an array of hashes in the parent record, in a key named after the relationship's name (not the inverse resource)."}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"saving-embedded-records"})," Saving embedded records"]}),(0,r.jsxs)("p",{children:["Some resources supports saving child records embedded. An example is invoices. A"," ",(0,r.jsx)("code",{children:"POST /v2/invoices"}),"'s request body could look like this:"]}),(0,r.jsx)(x,{}),(0,r.jsx)("p",{children:"It's advantageous to embed records when possible, as you get fewer round trips to the API, and everything happens as an atomic transaction (either all or no records are saved)."}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"paging"})," Paging"]}),(0,r.jsx)("p",{children:"You can limit long lists of resources using the paging URL params."}),(0,r.jsxs)("p",{children:["To use pages, you can use ",(0,r.jsx)("code",{children:"page"})," and ",(0,r.jsx)("code",{children:"pageSize"}),". For example, to get the second page containing 20 records per page, you would request ",(0,r.jsx)("code",{children:"GET /v2/invoices?page=2&amp;pageSize=20"}),"."]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:"pageSize"})," cannot be greater than ",(0,r.jsx)("code",{children:"1000"})," (which is also the default if"," ",(0,r.jsx)("code",{children:"pageSize"})," is omitted)."]}),(0,r.jsxs)("p",{children:["Whether your results are truncated/paged can be found in the ",(0,r.jsx)("code",{children:"meta.paging"})," key in the response. It will look something like:"]}),(0,r.jsx)(j,{}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"filtering"})," Filtering"]}),(0,r.jsxs)("p",{children:["When listing most resources, you can filter the results by various properties. See filtering for"," ",(0,r.jsx)("a",{href:"#v2AttachmentsFilter",children:"attachments"}),", ",(0,r.jsx)("a",{href:"#v2BankLinesFilter",children:"bank lines"}),","," ",(0,r.jsx)("a",{href:"#v2BillsFilter",children:"bills"}),","," ",(0,r.jsx)("a",{href:"#v2DaybookTransactionsFilter",children:"daybook transactions"}),","," ",(0,r.jsx)("a",{href:"#v2InvoicesFilter",children:"invoices"}),", ",(0,r.jsx)("a",{href:"#v2PostingsFilter",children:"postings"}),"."]}),(0,r.jsxs)("p",{children:["Two things worth knowing about filter parameters. When a filter refers to a related resource, the query parameter carries an ",(0,r.jsx)("code",{children:"Id"})," suffix \u2014 for example ",(0,r.jsx)("code",{children:"accountId"}),", not"," ",(0,r.jsx)("code",{children:"account"}),". And parameters we do not recognise are ignored rather than rejected, so a filter that is misspelled or named after the field instead of the parameter will silently return unfiltered results."]}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"sorting"})," Sorting"]}),(0,r.jsxs)("p",{children:["When listing most resources, you can sort the results using the ",(0,r.jsx)("code",{children:"sortProperty"})," and"," ",(0,r.jsx)("code",{children:"sortDirection"})," URL params. Each resource only allows sorting by specific properties. Those properties are noted in each resource's documentation. The ",(0,r.jsx)("code",{children:"sortDirection"})," must be either"," ",(0,r.jsx)("code",{children:"ASC"})," (default) or ",(0,r.jsx)("code",{children:"DESC"}),"."]}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"localization"})," Localization"]}),(0,r.jsxs)("p",{children:["When using the API, you can get localized responses for system texts like error messages, account names, etc. Add your preferred locale to the ",(0,r.jsx)("code",{children:"Accept-Language"})," header to your requests. Supported locales are ",(0,r.jsx)("code",{children:'"en_US"'})," for english, ",(0,r.jsx)("code",{children:'"da_DK"'})," for danish, ",(0,r.jsx)("code",{children:'"fr_FR"'})," for french, ",(0,r.jsx)("code",{children:'"nl_NL"'})," for dutch, ",(0,r.jsx)("code",{children:'"de_DE"'})," for german."]}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"code-examples"})," Code examples"]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"php"})," PHP"]}),(0,r.jsx)(u,{}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"nodejs"})," Node.js 8+"]}),(0,r.jsxs)("p",{children:["First run ",(0,r.jsx)("code",{children:"npm install axios"}),"."]}),(0,r.jsx)(p,{}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"python3"})," Python 3"]}),(0,r.jsxs)("p",{children:["First run ",(0,r.jsx)("code",{children:"pip3 install requests"}),"."]}),(0,r.jsx)(m,{}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"use-case-examples"})," Use case examples"]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"posting-a-payment-for-an-invoice"})," Posting a payment for an invoice"]}),(0,r.jsxs)("p",{children:["When you want to mark an invoice as paid, you have to create a ",(0,r.jsx)("a",{href:"#v2bankpayments",children:"bank payment"})," ","which matches the invoice's amount. Let's say you've just created an invoice with ID ",(0,r.jsx)("code",{children:"inv-1234"}),", with a total amount due of $1,200. This is how you would create the payment:"]}),(0,r.jsx)("p",{children:(0,r.jsx)("code",{children:"POST https://api.billysbilling.com/v2/bankPayments"})}),(0,r.jsx)(b,{}),(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:"cashAccountId"})," is the account that an amount of ",(0,r.jsx)("code",{children:"cashAmount"})," was deposited to/withdrawn from. ",(0,r.jsx)("code",{children:'cashSide: "debit"'})," means a deposit (used for invoices)."," ",(0,r.jsx)("code",{children:'cashSide: "credit"'})," means a withdrawal (used for bills)."]}),(0,r.jsxs)("p",{children:["Each item in the ",(0,r.jsx)("code",{children:"associations"})," array is a ",(0,r.jsx)("a",{href:"#v2balancemodifiers",children:"balance modifier"}),'. Since payments can pay different types of models (invoices, bills, etc.), you add the invoice to the payment by using a "reference," which is a type concatenated with a colon, c
1oncatenated with an ID; for example, ',(0,r.jsx)("code",{children:"invoice:inv-1234"})]}),(0,r.jsxs)("p",{children:["The payment's currency is determined by the associations. This means that all associations must point to subjects in the same currency. That is, you can't pay a USD invoice together with an EUR invoice. This currency is called ",(0,r.jsx)("code",{children:"subjectCurrency"}),", if you ",(0,r.jsx)("code",{children:"GET"})," the bank payment later from the API. If the ",(0,r.jsx)("code",{children:"subjectCurrency"})," is different from the currency of ",(0,r.jsx)("code",{children:"cashAccount"}),", you also need to set a ",(0,r.jsx)("code",{children:"cashExchangeRate"}),". In this example, we assume that the"," ",(0,r.jsx)("code",{children:"cashAccount"})," is in USD."]}),(0,r.jsxs)("p",{children:["After this call, our example invoice (for $1,200) will be paid, which will be visible through the invoice's"," ",(0,r.jsx)("code",{children:"isPaid"})," property - which will be ",(0,r.jsx)("code",{children:"true"})," - and its ",(0,r.jsx)("code",{children:"balance"})," property, which will be ",(0,r.jsx)("code",{children:"0.0"}),"."]}),(0,r.jsxs)("p",{children:["The ",(0,r.jsx)("code",{children:"organizationId"})," is only necessary if you are using an access token that's tied to a user (rather than a company), or if you are using Basic Auth. You can list your user's companies through"," ",(0,r.jsx)("code",{children:"GET /v2/organizations"}),"."]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"posting-a-product-with-default-prices"})," Posting a product with default price(s)"]}),(0,r.jsxs)("p",{children:["When ",(0,r.jsx)("code",{children:"POST"}),"ing to ",(0,r.jsx)("code",{children:"/v2/products"}),", you can embed"," ",(0,r.jsx)("a",{href:"#v2productprices",children:"product prices"})," this way:"]}),(0,r.jsx)("p",{children:(0,r.jsx)("code",{children:"POST https://api.billysbilling.com/v2/products"})}),(0,r.jsx)(y,{}),(0,r.jsxs)("p",{children:["The ",(0,r.jsx)("code",{children:"organizationId"})," is only necessary if you are using an access token that's tied to a user (rather than a company), or if you are using Basic Auth. You can list your user's companies through"," ",(0,r.jsx)("code",{children:"GET /v2/organizations"}),"."]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"creating-attachments"})," Creating and using attachments"]}),(0,r.jsxs)("p",{children:["to upload files and automatically create attachments that can later be linked to invoices, bills, or daybook transactions. Attachments can include receipts, invoices, PDFs, or other supporting documents.",(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:"POST https://api.billysbilling.com/v2/files"}),(0,r.jsx)(g,{})]}),"If the uploaded document contains information that users might need to fill out manually (such as amounts or currency), include the following header to enable automatic data scanning and extraction:"," ",(0,r.jsx)("code",{children:"x-should-scan: true"}),".",(0,r.jsx)("h4",{children:"Linking attachments to resources"}),"After creating an attachment, you can link it to an invoice, bill, or daybook transaction by including their Ids in the attachmentIds array of your request body.",(0,r.jsx)(f,{})]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"sending-email-for-invoices"})," Sending emails for invoices"]}),(0,r.jsx)("p",{children:"Send an email related to a specific invoice. Use this endpoint to send custom message to the contact persons linked to the invoice. The endpoint unfortunately does not support sending to multiple contact persons at once. The email addresses are taken from the contact person and if supplied the user."}),(0,r.jsx)("p",{children:(0,r.jsx)("code",{children:"POST https://api.billysbilling.com/v2/invoices/:invoiceId/emails"})}),(0,r.jsx)(v,{}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"sending-invoice-as-e-invoice"})," Sending an invoice as an e-invoice"]}),(0,r.jsxs)("p",{children:["You can send an approved invoice as an e-invoice (for example OIOUBL via NemHandel/Peppol) by creating an invoice delivery. The invoice must be approved before it can be delivered, and sending is not triggered automatically by fields on the contact - you start it by creating an ",(0,r.jsx)("code",{children:"invoiceDelivery"}),"."]}),(0,r.jsx)("p",{children:(0,r.jsx)("code",{children:"POST https://api.billysbilling.com/v2/invoiceDeliveries"})}),(0,r.jsx)(T,{}),(0,r.jsxs)("p",{children:[(0,r.jsx)("code",{children:"receiverIdType"})," can be ",(0,r.jsx)("code",{children:"gln"})," or ",(0,r.jsx)("code",{children:"cvr"}),". When using ",(0,r.jsx)("code",{children:"gln"}),", the"," ",(0,r.jsx)("code",{children:"receiverGln"})," field is required and must be exactly 13 digits. ",(0,r.jsx)("code",{children:"senderUserId"})," is the user whose email address is used to notify about failures. For sending e-invoices to recipients outside Denmark, we recommend sending the first one through the web app, as it requires more configuring beforehand."]}),(0,r.jsx)("h4",{children:"Checking the delivery status"}),(0,r.jsxs)("p",{children:["The e-invoice delivery lifecycle is not reflected in the invoice's ",(0,r.jsx)("code",{children:"sentState"})," (which relates to the email flow). Instead, poll the invoice logs:"]}),(0,r.jsx)("p",{children:(0,r.jsx)("code",{children:"GET https://api.billysbilling.com/v2/invoiceLogs?invoiceId=yourInvoiceId&organizationId=yourOrganizationId&sortProperty=eventTime&sortDirection=DESC"})}),(0,r.jsxs)("p",{children:["Delivery is processed asynchronously, so it may take a moment for updates to appear. Each log entry has a"," ",(0,r.jsx)("code",{children:"type"}),": ",(0,r.jsx)("code",{children:"received"})," and ",(0,r.jsx)("code",{children:"signedoff"})," indicate the e-invoice was delivered successfully, while ",(0,r.jsx)("code",{children:"failed"})," indicates an error - in which case the ",(0,r.jsx)("code",{children:"message"})," and"," ",(0,r.jsx)("code",{children:"messageKey"})," fields describe what went wrong."]}),(0,r.jsx)(N,{}),(0,r.jsxs)("h1",{children:[(0,r.jsx)("a",{className:"anchor",name:"resource-documentation"})," Resource Documentation"]}),(0,r.jsx)("p",{children:"Following is an extensive list of resources you can interact with."}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"table-of-contents"})," Table of Contents"]}),(0,r.jsxs)("ul",{className:"api-table-of-contents",children:[(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2accountgroups",children:"accountGroups"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2accountnatures",children:"accountNatures"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2accounts",children:"accounts"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2attachments",children:"attachments"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2balancemodifiers",children:"balanceModifiers"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2banklinematches",children:"bankLineMatches"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2banklines",children:"bankLines"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2banklinesubjectassociations",children:"bankLineSubjectAssociations"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2bankpayments",children:"bankPayments"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2billlines",children:"billLines"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2bills",children:"bills"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2cities",children:"cities"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2contactbalancepayments",children:"contactBalancePayments"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2contactbalancepostings",children:"contactBalancePostings"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2contactpersons",children:"contactPersons"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2contacts",children:"contacts"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2countrygroups",children:"countryGroups"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2countries",children:"countries"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2currencies",children:"currencies"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2daybookbalanceaccounts",children:"daybookBalanceAccounts"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2daybooks",children:"daybooks"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2daybooktransactionlines",children:"daybookTransactionLine
1s"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2daybooktransactions",children:"daybookTransactions"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2files",children:"files"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2invoicelatefees",children:"invoiceLateFees"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2invoicelines",children:"invoiceLines"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2invoicereminderassociations",children:"invoiceReminderAssociations"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2invoicereminders",children:"invoiceReminders"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2invoices",children:"invoices"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2locales",children:"locales"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2organizations",children:"organizations"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2postings",children:"postings"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2productprices",children:"productPrices"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2products",children:"products"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2salestaxaccounts",children:"salesTaxAccounts"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2salestaxmetafields",children:"salesTaxMetaFields"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2salestaxpayments",children:"salesTaxPayments"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2salestaxreturns",children:"salesTaxReturns"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2salestaxrules",children:"salesTaxRules"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2salestaxrulesets",children:"salesTaxRulesets"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2states",children:"states"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2taxratedeductioncomponents",children:"taxRateDeductionComponents"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2taxrates",children:"taxRates"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2transactions",children:"transactions"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2users",children:"users"})}),(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#v2zipcodes",children:"zipcodes"})})]}),(0,r.jsxs)("h2",{children:[(0,r.jsx)("a",{className:"anchor",name:"resources"})," Resources"]}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2accountgroups"})," ",(0,r.jsx)("code",{children:"/v2/accountGroups"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"nature"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2accountnatures"})," ",(0,r.jsx)("code",{children:"/v2/accountNatures"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"reportType"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"normalBalance"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2accounts"})," ",(0,r.jsx)("code",{children:"/v2/accounts"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"accountNo"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"group"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"nature"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsxs)("td",{children:["immutable, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"systemRole"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxRate"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPaymentEnabled"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isBankAccount"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isArchived"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"bankName"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"bankRoutingNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"bankAccountNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"bankSwift"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"bankIban"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2attachments"})," ",(0,r.jsx)("code",{children:"/v2/attachments"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"owner"})}),(0,r.jsx)("td",{children:"belongs-to-reference"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"file"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The ID of the file to attach."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h4",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2AttachmentsFilter"})," ",(0,r.jsx)("code",{children:"List filters"})]}),(0,r.jsx)("p",{children:"Supports filtering by following parameters"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Parameter"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"unhandled"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"When true, only returns attachments that have not been attached to anything yet \u2014 useful for counting an inbox of uploaded documents still waiting to be turned into a bill, invoice or daybook transaction."})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"handled"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"The inverse: only attachments that already belong to a document"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"ownerReference"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by the document the attachment belongs to. Note the ",(0,r.jsx)("code",{children:"Reference"}),' suffix: the owner may be a bill, an invoice or a daybook transaction, so it is referenced rather than a plain id. Passing it empty does not filter for "no owner" \u2014 use'," ",(0,r.jsx)("code",{children:"unhandled"})," for that."]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"type"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by attachment type: ",(0,r.jsx)("code",{children:"Upload"}),", ",(0,r.jsx)("code",{children:"EDocument"}),", ",(0,r.jsx)("code",{children:"Scout"}),","," ",(0,r.jsx)("code",{children:"EmailAttachment"}),", ",(0,r.jsx)("code",{children:"ApiInvoiceAttachment"}),","," ",(0,r.jsx)("code",{children:"BillyCustomerInvoice"}),". ",(0,r.jsx)("code",{children:"Upload"})," mirrors the uploads tab in the interface and therefore excludes ",(0,r.jsx)("code",{children:"EDocument"})," and ",(0,r.jsx)("code",{children:"Scout"}),"; the others match exactly."]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"supplier"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by the supplier read from the document"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"amount"}),(0,r.jsx)("td",{children:"number"}),(0,r.jsx)("td",{children:"Filter by the amount read from the document"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"documentDatePeriod"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by document date period. Formats: ",(0,r.jsx)("code",{children:"all"}),";"," ",(0,r.jsx)("code",{children:"dates:YYYY-MM-DD...YYYY-MM-DD"}),";
1 ",(0,r.jsx)("code",{children:"from:YYYY-MM-DD"}),";"," ",(0,r.jsx)("code",{children:"half:YYYY-H"}),"; ",(0,r.jsx)("code",{children:"month:YYYY-MM"}),"; ",(0,r.jsx)("code",{children:"quarter:YYYY-Q"}),";"," ",(0,r.jsx)("code",{children:"through:YYYY-MM-DD"}),"; ",(0,r.jsx)("code",{children:"year:YYYY"}),";"," ",(0,r.jsx)("code",{children:"fiscalyear:organizationId,YYYY"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isDuplicate"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Filter by whether the underlying file was detected as a duplicate of another file. Omit the parameter to get both."})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"eInvoiceFilter"}),(0,r.jsx)("td",{children:'string (Enum: "PENDING", "APPROVED", "BLOCKED", "UNBLOCKED")'}),(0,r.jsxs)("td",{children:["Filter by e-invoice status. ",(0,r.jsx)("code",{children:"BLOCKED"})," matches refused, suspended and disputed e-invoices; ",(0,r.jsx)("code",{children:"UNBLOCKED"})," is everything else; ",(0,r.jsx)("code",{children:"APPROVED"})," matches approved ones; ",(0,r.jsx)("code",{children:"PENDING"})," matches active and completed ones. Note that attachments with no e-invoice status at all are included by both ",(0,r.jsx)("code",{children:"UNBLOCKED"})," and ",(0,r.jsx)("code",{children:"PENDING"}),", so those two are not disjoint."]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"q"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Free-text search. Ignored for queries shorter than two characters"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortProperty"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Sort by one of: priority, amount, documentDate, createdTime, supplier"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortDirection"}),(0,r.jsx)("td",{children:'string (Enum: "ASC", "DESC")'}),(0,r.jsx)("td",{children:"Sort ascending (ASC) or descending (DESC)"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2balancemodifiers"}),(0,r.jsx)("code",{children:"/v2/balanceModifiers"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"modifier"})}),(0,r.jsx)("td",{children:"belongs-to-reference"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subject"})}),(0,r.jsx)("td",{children:"belongs-to-reference"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"Balance modifier amount."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"Date of balance modifier entry"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"realizedCurrencyDifference"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2banklinematches"}),(0,r.jsx)("code",{children:"/v2/bankLineMatches"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The ID of the account to create the bank line match for."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"differenceType"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"If there is a difference, this value determines its type."}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"feeAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The ID of the account to add the bank fee to."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"side"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isApproved"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether the bank lines and subjects are approved."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"approvedTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"Time of approval."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lines"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Lines for this bank line match. If this parameter is set, any existing lines for this bank line match will be deleted before adding the new ones."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subjectAssociations"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Subject associations for the bank line match. If this parameter is set, any existing subject associations for this bank line match will be deleted before adding the new ones."}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2banklines"}
1)," ",(0,r.jsx)("code",{children:"/v2/bankLines"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"match"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The ID of the account to create the bank line match for."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"side"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]})]})]})}),(0,r.jsxs)("h4",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2BankLinesFilter"})," ",(0,r.jsx)("code",{children:"List filters"})]}),(0,r.jsx)("p",{children:"Supports filtering by following parameters"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Parameter"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"accountId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:[(0,r.jsx)("strong",{children:"Required."})," The bank account to fetch lines for. Bank lines are always listed per account, so use ",(0,r.jsx)("code",{children:"GET /v2/accounts?isBankAccount=true"})," to find the relevant account IDs."]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortProperty"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Sort by one of: entryDate, amount"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortDirection"}),(0,r.jsx)("td",{children:'string (Enum: "ASC", "DESC")'}),(0,r.jsx)("td",{children:"Sort ascending (ASC) or descending (DESC)"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isReconciled"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Filter by reconciliation status. Accepts true/false or 1/0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"status"}),(0,r.jsx)("td",{children:'string (Enum: "pending", "booked")'}),(0,r.jsx)("td",{children:"Filter by bank line status. Defaults to booked"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"side"}),(0,r.jsx)("td",{children:'string (Enum: "debit", "credit")'}),(0,r.jsx)("td",{children:"Filter by bank line side"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"externalId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by external identifier"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"receiptState"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by receipt state. Common values: missing_receipt, receipt_uploaded"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minAmount"}),(0,r.jsx)("td",{children:"number"}),(0,r.jsx)("td",{children:"Filter by amount \u2265 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxAmount"}),(0,r.jsx)("td",{children:"number"}),(0,r.jsx)("td",{children:"Filter by amount \u2264 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minEntryDate"}),(0,r.jsx)("td",{children:"date (YYYY-MM-DD)"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2265 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxEntryDate"}),(0,r.jsx)("td",{children:"date (YYYY-MM-DD)"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2264 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"entryDatePeriod"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by entry date period. Formats: ",(0,r.jsx)("code",{children:"all"}),";"," ",(0,r.jsx)("code",{children:"dates:YYYY-MM-DD...YYYY-MM-DD"}),";
1 ",(0,r.jsx)("code",{children:"from:YYYY-MM-DD"}),";"," ",(0,r.jsx)("code",{children:"half:YYYY-H"}),"; ",(0,r.jsx)("code",{children:"month:YYYY-MM"}),";"," ",(0,r.jsx)("code",{children:"quarter:YYYY-Q"}),"; ",(0,r.jsx)("code",{children:"through:YYYY-MM-DD"}),"; ",(0,r.jsx)("code",{children:"year:YYYY"}),";"," ",(0,r.jsx)("code",{children:"fiscalyear:organizationId,YYYY"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"q"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by description or amount"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2banklinesubjectassociations"}),(0,r.jsx)("code",{children:"/v2/bankLineSubjectAssociations"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"match"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subject"})}),(0,r.jsx)("td",{children:"belongs-to-reference"}),(0,r.jsx)("td",{children:"The reference of the subject."}),(0,r.jsx)("td",{children:"required"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2bankpayments"})," ",(0,r.jsx)("code",{children:"/v2/bankPayments"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contact"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsxs)("td",{children:["The contact that all of the ",(0,r.jsx)("code",{children:"associations"}),"' subjects belong to. You can omit setting this property if you supply one or more records in ",(0,r.jsx)("code",{children:"associations"}),". It will then default to the",(0,r.jsx)("code",{children:"contact"})," of the ",(0,r.jsx)("code",{children:"associations"}),"' subject."]}),(0,r.jsxs)("td",{children:["immutable, required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"When the payment record was created in the system."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"The date of the transaction."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"cashAmount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsxs)("td",{children:["The amount that was deposited into or withdrawn from",(0,r.jsx)("code",{children:"cashAccount"})," in the account's currency."]}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"cashSide"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsxs)("td",{children:["Indicates whether the payment was a deposit (",(0,r.jsx)("code",{children:"debit"}),") or a withdrawal (",(0,r.jsx)("code",{children:"credit"}),")."]}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"cashAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsxs)("td",{children:["The account that an amount was deposited into or withdrawn from. Must have"," ",(0,r.jsx)("code",{children:"isPaymentEnabled"})," set to ",(0,r.jsx)("code",{children:"true"}),"."]}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"cashExchangeRate"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsxs)("td",{children:["The exchange rate between subjectCurrency and",(0,r.jsx)("code",{children:"cashAccount"}),"'s currency. 1 ",(0,r.jsx)("code",{children:"subjectCurrency"})," =",(0,r.jsx)("code",{children:"cashExchangeRate"})," ",(0,r.jsx)("code",{children:"cashAccountCurrency"}),". Must be set if ",(0,r.jsx)("code",{children:"cashAccount"}),"'s currency is different than",(0,r.jsx)("code",{children:"subjectCurrency"}),". Will be ignored and set to 1 if the currencies are the same."]}),(0,r.jsxs)("td",{children:["immutable, required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subjectCurrency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsxs)("td",{children:["The currency of what was paid. You can omit setting this property if you supply one or more records in ",(0,r.jsx)("code",{children:"associations"}),". It will then default to the ",(0,r.jsx)("code",{children:"currency"})," of the",(0,r.jsx)("code",{children:"associations"}),"' subject. In case of an overpayment, the overpaid amount will be added to the contact's balance in this currency."]}),(0,r.jsxs)("td",{children:["immutable, required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"feeAmount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsxs)("td",{children:["Used if the bank or payment provider charged the organization a fee for handling this payment. The fee amount must be positive, and will always be recorded as an expense (i.e., a debit posting on an expense account). ",(0,r.jsx)("code",{children:"feeAmount"}
1)," is in the same currency as",(0,r.jsx)("code",{children:"cashAccount"}),"'s currency. The fee is always considered the organization's expense. This means that: - For deposits the subjects' balances will also be offset against the fee, as the customer shouldn't pay for the organization's payment expenses. Example: An invoice of"," ",(0,r.jsx)("code",{children:"100 USD"})," will be paid in full by a",(0,r.jsx)("code",{children:"cashAmount"})," of ",(0,r.jsx)("code",{children:"95"})," and a",(0,r.jsx)("code",{children:"feeAmount"})," of ",(0,r.jsx)("code",{children:"5"}),". - For withdrawals the subject's balances will not be offset against the fee, as the supplier shouldn't pay for the organization's payment expenses. Example: A bill of ",(0,r.jsx)("code",{children:"100 USD"})," will be paid in full by a",(0,r.jsx)("code",{children:"cashAmount"})," of"," ",(0,r.jsx)("code",{children:"105"})," and a",(0,r.jsx)("code",{children:"feeAmount"})," of ",(0,r.jsx)("code",{children:"5"}),"."]}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"feeAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsxs)("td",{children:["The account to record the fee expense on. Must be an expense account. Must be set if"," ",(0,r.jsx)("code",{children:"feeAmount"})," is set."]}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsxs)("td",{children:["Indicates if the payment has been canceled. You must leave this field blank or set to"," ",(0,r.jsx)("code",{children:"false"})," for new payments. Once a payment has been canceled by setting this field to"," ",(0,r.jsx)("code",{children:"true"}),' it can\'t be reinstated ("un-canceled").']}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"associations"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsxs)("td",{children:["The subjects this payment involves. The subjects' outstanding",(0,r.jsx)("code",{children:"balance"})," and ",(0,r.jsx)("code",{children:"isPaid"})," properties will automatically be updated by the API."]}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contactBalancePostings"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2billlines"})," ",(0,r.jsx)("code",{children:"/v2/billLines"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"bill"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxRate"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"tax"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2bills"})," ",(0,r.jsx)("code",{children:"/v2/bills"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"type"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"approvedTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contact"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contactName"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"dueDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isBare"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"state"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsxs)("td",{children:["default: ",(0,r.jsx)("code",{children:'"draft"'})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"suppliersInvoiceNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsxs)("td",{children:["Whether unit prices are treated as including (incl) or excluding (excl) VAT. If not set, defaults to the organisation's defaultTaxMode. Example: with a unit price of 100 and a 25% VAT rate, ",(0,r.jsx)("code",{children:"incl"})," means the line totals 100 (80 net + 20 VAT), while"," ",(0,r.jsx)("code",{children:"excl"})," means the line totals 125 (100 net + 25 VAT)."]}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"voucherNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Voucher number for the bill"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"tax"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"exchangeRate"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"balance"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPaid"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lineDescription"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"creditedBill"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"creditNotes"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lines"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"attachments"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"balanceModifiers"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Payment associations for the bill."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"source"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Source of the bill."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subject"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Original subject of the bill."}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h4",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2BillsFilter"})," ",(0,r.jsx)("code",{children:"List filters"})]}),(0,r.jsx)("p",{children:"Supports filtering by following parameters"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Parameter"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortProperty"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Sort by one of: entryDate, dueDate, createdTime, lineDescription, amount, grossAmount, balance, contact.name, voucherNo, suppliersInvoiceNo, attachments"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortDirection"}),(0,r.jsx)("td",{children:'string (Enum: "ASC", "DESC")'}),(0,r.jsx)("td",{children:"Sort ascending (ASC) or descending (DESC)"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"organizationId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by organizationId belonging to a specific Organization"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"contactId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by contactId belonging to a specific Contact"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"creditedBillId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by creditedBillId belonging to a specific Bill"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minEntryDate"}),(0,r.jsx)("td",{children:"string (date)"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2265 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxEntryDate"}),(0,r.jsx)("td",{children:"string (date)"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2264 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minDueDate"}),(0,r.jsx)("td",{children:"string (date)"}),(0,r.jsx)("td",{children:"Filter by dueDate \u2265 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxDueDate"}),(0,r.jsx)("td",{children:"string (date)"}),(0,r.jsx)("td",{children:"Filter by dueDate \u2264 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isPaid"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Filter by isPaid"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"hasAttachments"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Filter by bills that have attachments"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"state"}),(0,r.jsx)("td",{children:'string (Enum: "draft", "approved", "voided")'}),(0,r.jsx)("td",{children:"Filter by state"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"currencyId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by currencyId belonging to a specific Currency"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"suppliersInvoiceNo"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by suppliersInvoiceNo"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isBare"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Filter by isBare"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"amount"}),(0,r.jsx)("td",{children:"number (float)"}),(0,r.jsx)("td",{children:"Filter by amount"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"q"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Search by: contact.name, lineDescription, voucherNo, amount, suppliersInvoiceNo, balance"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2cities"})," ",(0,r.jsx)("code",{children:"/v2/cities"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"county"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"state"})}),(0
1,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"country"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2contactbalancepayments"}),(0,r.jsx)("code",{children:"/v2/contactBalancePayments"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contact"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsxs)("td",{children:["Automatically set by the API. The contact that all of the",(0,r.jsx)("code",{children:"associations"}),"' subjects belong to."]}),(0,r.jsxs)("td",{children:["immutable, required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"The date that this transaction occurred accounting-wise."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"The amount to apply to the subject(s) balance."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"side"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsxs)("td",{children:["Automatically set by the API. Indicates: - ",(0,r.jsx)("code",{children:"debit"}),": The payment used a prepayment that a customer made to the company. -",(0,r.jsx)("code",{children:"credit"}),": The payment used a prepayment that the company made to a vendor."]}),(0,r.jsxs)("td",{children:["immutable, required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"Automatically set by the API to the currency of the subject(s)."}),(0,r.jsxs)("td",{children:["immutable, required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"associations"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsxs)("td",{children:["The subjects this payment involves. The subjects' outstanding",(0,r.jsx)("code",{children:"balance"})," and ",(0,r.jsx)("code",{children:"isPaid"})," properties will automatically be updated by the API."]}),(0,r.jsx)("td",{children:"immutable, required"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2contactbalancepostings"}),(0,r.jsx)("code",{children:"/v2/contactBalancePostings"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contact"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"originator"})}),(0,r.jsx)("td",{children:"belongs-to-reference"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"side"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2contactpersons"})," ",(0,r.jsx)("code",{children:"/v2/contactPersons"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contact"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPrimary"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"If contact person is primary for the parent contact."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The name of the contact person. Either name or email must be set."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"email"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact person's e-mail. Used to mail invoices to the contact. Either name or email must be set."}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2contacts"})," ",(0,r.jsx)("code",{children:"/v2/contacts"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"type"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsxs)("td",{children:["Whether contact is a ",(0,r.jsx)("code",{children:"company"})," or an ",(0,r.jsx)("code",{children:"person"}),". Defaults to"," ",(0,r.jsx)("code",{children:"company"})]}),(0,r.jsxs)("td",{children:["required, default: ",(0,r.jsx)("code",{children:'"company"'})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The name of the contact. Can be either a company name or a person's name."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"country"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The contact's home/business country."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"street"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact's street address."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"city"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The contact's city, if finite."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"cityText"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact's city, in text form."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"state"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The name of the contact's state, if finite."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"stateText"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The name of the contact's state, in text form."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"zipcode"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The contact's zipcode, if finite."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"zipcodeText"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact's zipcode, in text form."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contactNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Arbitrary number (or string) that contacts can be referred to by."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"phone"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact's phone number."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"fax"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact's fax number."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"Default currency to use for invoices created for the contact. Has no effect in the API, as currency for invoice always is required."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"registrationNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact's EU VAT number, CVR number in Denmark, tax ID (TIN/EIN/SSN) in the US."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"ean"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The contact's EAN (European Article Number)."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"locale"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"Language to use in communications with the contact. The language also decides which language should be used on invoices created for the contact."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isCustomer"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether the contact is regarded as a customer and can have invoices, etc."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isSupplier"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether the contact is regarded as a vendor and can have bills etc."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentTermsMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentTermsDays"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contactPersons"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"You can add one or more contact persons for the contact. If this parameter is set, any existing contact persons for this contact will be deleted before adding the new ones."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"accessCode"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Used to generate the contact's customer portal URL."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"emailAttachmentDeliveryMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"Whether to deliver attachments by link to customer portal or with email attachments."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isArchived"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether the contact is archived."}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2countrygroups"})," ",(0,r.jsx)("code",{children:"/v2/countryGroups"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"icon"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"memberCountryIds"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(
10,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2countries"})," ",(0,r.jsx)("code",{children:"/v2/countries"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"hasStates"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"hasFiniteStates"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"hasFiniteZipcodes"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"icon"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"locale"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2currencies"})," ",(0,r.jsx)("code",{children:"/v2/currencies"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"exchangeRate"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2daybookbalanceaccounts"}),(0,r.jsx)("code",{children:"/v2/daybookBalanceAccounts"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"daybook"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2daybooks"})," ",(0,r.jsx)("code",{children:"/v2/daybooks"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isTransactionSummaryEnabled"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The name of the daybook."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"defaultContraAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"balanceAccounts"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Balance accounts to monitor."}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2daybooktransactionlines"}
1),(0,r.jsx)("code",{children:"/v2/daybookTransactionLines"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"daybookTransaction"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"text"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Line description."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"@id@ of account line is to be applied to. Either @accountId@ or @accountNo@ must be filled in."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxRate"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contraAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"@id@ of account line is to be applied against."}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"Amount of line."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"side"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:'"debit" or "credit"'}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsxs)("td",{children:["immutable, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2daybooktransactions"}),(0,r.jsx)("code",{children:"/v2/daybookTransactions"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"daybook"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"The transaction entry date in YYYY-MM-DD format."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"voucherNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"A number or a string that identifies this transaction's voucher number, e.g. a bill."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Description of transaction."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"extendedDescription"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Extended/verbose description of transaction."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"apiType"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Method used to make the API call. This is for your notation only."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"state"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsxs)("td",{children:["default: ",(0,r.jsx)("code",{children:'"draft"'})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lines"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Lines for the transaction. At minimum one line must be supplied."}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"attachments"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Attachments for the daybook transaction."}),(0,r.jsx)("td",{children:"immutable"})]})]})]})}),(0,r.jsxs)("h4",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2DaybookTransactionsFilter"}),(0,r.jsx)("code",{children:"List filters"})]}),(0,r.jsx)("p",{children:"Supports filtering by following parameters"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Parameter"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortProperty"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Sort by one of: priority, entryDate, createdTime"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortDirection"}),(0,r.jsx)("td",{children:'string (Enum: "ASC", "DESC")'}),(0,r.jsx)("td",{children:"Sort ascending (ASC) or descending (DESC)"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"organizationId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by organizationId belonging to a specific Organization"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"daybookId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by daybookId belonging to a specific Daybook"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"apiType"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by apiType"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"state"}),(0,r.jsx)("td",{children:'string (Enum: "draft", "approved", "voided")'}),(0,r.jsx)("td",{children:"Filter by state"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minEntryDate"}),(0,r.jsx)("td",{children:"string (date)"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2265 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxEntryDate"}),(0,r.jsx)("td",{children:"string (date)"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2264 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"q"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Search by: description, extendedDescription, voucherNo"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2files"})," ",(0,r.jsx)("code",{children:"/v2/files"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"fileName"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"fileSize"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"fileType"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isImage"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPdf"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"imageWidth"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"imageHeight"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"downloadUrl"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2invoicelatefees"}),(0,r.jsx)("code",{children:"/v2/invoiceLateFees"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"invoice"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"flatFee"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"percentageFee"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2invoicelines"})," ",(0,r.jsx)("code",{children:"/v2/invoiceLines"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"invoice"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"product"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The product to use for the line."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Optional description to display under the product's name on the invoice."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"quantity"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"The line's quantity."}),(0,r.jsx)("td",{children:"default: 1"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"unitPrice"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"The price per unit of the product."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"tax"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxRate"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"discountText"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Text to display if the line includes a discount."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"discountMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"How the discount should be calculated. Cash discount: The value of @discountValue@ will be subtracted from the line's amount. Percentage discount: The percentage value of @discountValue@ will be subtracted from the line's amount."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"discountValue"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"Depending on @discountMode@, either an amount or a percentage value. Percentage value should be supplied as e.g. 25 for 25%. Required if @discountValue@ is set. ignored if @discountValue@ is not set."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"i
1nteger"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2invoicereminderassociations"}),(0,r.jsx)("code",{children:"/v2/invoiceReminderAssociations"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"reminder"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"invoice"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lateFee"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2invoicereminders"}),(0,r.jsx)("code",{children:"/v2/invoiceReminders"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contact"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"associations"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"flatFee"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"percentageFee"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"feeCurrency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"sendEmail"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contactPerson"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"emailSubject"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"emailBody"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"copyToUser"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"downloadUrl"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2invoices"})," ",(0,r.jsx)("code",{children:"/v2/invoices"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"type"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"Whether to create an invoice or a credit note. Defaults to @invoice@."}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"approvedTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contact"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The ID of the contact to create the invoice for."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"attContactPerson"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"ID for a contact person belonging to the contact that should be included as Att: in the invoice address area."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"The invoice date. This parameter must not be set if the invoice has already been created."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentTermsMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsxs)("td",{children:["default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentTermsDays"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsxs)("td",{children:["Number of days (positive or negative) for the mode defined by",(0,r.jsx)("code",{children:"paymentTermsMode"})]}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"dueDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"The due date for payment of the invoice."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"state"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"Used to change the state of the invoice. Currently the only state change possible is from draft to approved. Once an invoice has been approved, its state can't be changed. Omit from request body if state shouldn't be changed."}),(0,r.jsxs)("td",{children:["required, default: ",(0,r.jsx)("code",{children:'"draft"'})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"sentState"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsxs)("td",{children:["Sent state of the email. Invoice is marked as ",(0,r.jsx)("code",{children:"unsent"})," by default, can be marked as"," ",(0,r.jsx)("code",{children:"printed"}),", ",(0,r.jsx)("code",{children:"sent"}),",",(0,r.jsx)("code",{children:"opened"}),", ",(0,r.jsx)("code",{children:"viewed"}),"."]}),(0,r.jsxs)("td",{children:["required, default: ",(0,r.jsx)("code",{children:'"unsent"'})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"invoiceNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Manually set the invoice number. Invoice numbers has to be unique. If no invoice number is set when the invoice is created, it will automatically be assigned a number using the company's invoice number model. This parameter must not be set if the invoice has already been created."}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsxs)("td",{children:["Whether unit prices are treated as including (incl) or excluding (excl) VAT. If not set, defaults to the organisation's defaultTaxMode. Example: with a unit price of 100 and a 25% VAT rate, ",(0,r.jsx)("code",{children:"incl"})," means the line totals 100 (80 net + 20 VAT), while"," ",(0,r.jsx)("code",{children:"excl"})," means the line totals 125 (100 net + 25 VAT)."]}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"tax"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The currency of the invoice. All lines' @unitPrice@ parameters should be in this currency."}),(0,r.jsxs)("td",{children:["required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"exchangeRate"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"The exchange rate used for invoices in foreign currencies. The value should calculated like this: bq. @exchangeRate@ = @currency@ / @organization's base currency@ If this field is left blank, then today's exchange rate will automatically be used. If @currencyId@ equals the organization's base currency, the value of this field is ignored - it will always be 1."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"balance"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPaid"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"creditedInvoice"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contactMessage"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Optional message to the contact, to be displayed at the top of the invoice PDF."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lineDescription"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Automatically generated based on its lines' descriptions."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"downloadUrl"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lines"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Lines for the invoice. At minimum, one line must be supplied. If this parameter is set, any existing lines for this invoice will be deleted before adding the new ones. This parameter must not be set if the invoice has already been created."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"attachments"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Attachments for the invoice."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lateFees"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"balanceModifiers"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"Payment associations for the invoice."}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h4",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2InvoicesFilter"}),(0,r.jsx)("code",{children:"List filters"})]}),(0,r.jsx)("p",{children:"Supports filtering by following parameters"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortProperty"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:['Enum: "entryDate" "dueDate" "createdTime" "invoiceNo" "lineDescription" "amount" "grossAmount" "balance" "contact.name" "approvedTime" "orderNo" ',(0,r.jsx)("br",{}),"Sort by one of the following properties:",(0,r.jsx)("code",{children:"entryDate"}),", ",(0,r.jsx)("code",{children:"dueDate"}),",",(0,r.jsx)("code",{children:"createdTime"}),", ",(0,r.jsx)("code",{children:"invoiceNo"}),",",(0,r.jsx)("code",{children:"lineDescription"}),", ",(0,r.jsx)("code",{children:"amount"}),",",(0,r.jsx)("code",{children:"grossAmount"}),", ",(0,r.jsx)("code",{children:"balance"}),",",(0,r.jsx)("code",{children:"contact.name"}),", ",(0,r.jsx)("code",{children:"approvedTime"}),",",(0,r.jsx)("code",{children:"orderNo"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortDirection"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:['Enum: "ASC" "DESC" ',(0,r.jsx)("br",{}),"Sort ascending (",(0,r.jsx)("code",{children:"ASC"}),") or descending (",(0,r.jsx)("code",{children:"DESC"}),")"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"organizationId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by organizationId belonging to a specific Organization"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"contactId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by contactId belonging to a specific Contact"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"creditedInvoiceId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by creditedInvoiceId belonging to a specific Invoice"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"state"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:['Enum: "draft" "approved" "voided" ',(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"state"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"invoiceNo"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by ",(0,r.jsx)("code",{children:"invoiceNo"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"exter
1nalId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by ",(0,r.jsx)("code",{children:"externalId"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minEntryDate"}),(0,r.jsx)("td",{children:"string <date>"}),(0,r.jsxs)("td",{children:["Example: minEntryDate=2025-06-02 ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"entryDate"})," greater than or equal to a specified value"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxEntryDate"}),(0,r.jsx)("td",{children:"string <date>"}),(0,r.jsxs)("td",{children:["Example: maxEntryDate=2025-06-23 ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"entryDate"})," less than or equal to a specified value"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"entryDatePeriod"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Examples:",(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=all"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=dates:2025-06-23...2025-06-24"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=day:2025-06-08"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=halfYear:2025-2"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=month:2025-06"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=quarter:2025-2"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=year:2025"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"entryDatePeriod=fiscalYear:2025"})})]}),"Filter by ",(0,r.jsx)("code",{children:"entryDatePeriod"})," matching the specified date period"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minApprovedTime"}),(0,r.jsx)("td",{children:"string <date-time>"}),(0,r.jsxs)("td",{children:["Example: minApprovedTime=2025-06-02 12:00:00 ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"approvedTime"})," greater than or equal to a specified value"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxApprovedTime"}),(0,r.jsx)("td",{children:"string <date-time>"}),(0,r.jsxs)("td",{children:["Example: maxApprovedTime=2025-06-02 12:00:00 ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"approvedTime"})," less than or equal to a specified value"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"approvedTimePeriod"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Examples:",(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=all"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=dates:2025-04-23...2025-06-14"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=from:2025-05-08"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=half:2025-2"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=month:2025-06"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=quarter:2025-2"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=through:2025-05-03"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=year:2025"})}),(0,r.jsx)("li",{children:(0,r.jsx)("code",{children:"approvedTimePeriod=fiscalYear:2025"})})]}),"Filter by ",(0,r.jsx)("code",{children:"approvedTimePeriod"})," matching the specified date period"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minDueDate"}),(0,r.jsx)("td",{children:"string <date>"}),(0,r.jsxs)("td",{children:["Example: minDueDate=2025-06-02 ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"dueDate"})," greater than or equal to a specified value"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxDueDate"}),(0,r.jsx)("td",{children:"string <date>"}),(0,r.jsxs)("td",{children:["Example: maxDueDate=2025-06-02 ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"dueDate"})," less than or equal to a specified value"]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isPaid"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsxs)("td",{children:["Filter by ",(0,r.jsx)("code",{children:"isPaid"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"currencyId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Example: currencyId=f0f111m0gayd9p4kk41s2f0a ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"currencyId"})," belonging to a specific",(0,r.jsx)("code",{children:"Currency"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"recurringInvoiceId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by ",(0,r.jsx)("code",{children:"recurringInvoiceId"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"amount"}),(0,r.jsx)("td",{children:"number <float>"}),(0,r.jsxs)("td",{children:["Example: amount=12.5 ",(0,r.jsx)("br",{}),"Filter by ",(0,r.jsx)("code",{children:"amount"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"quoteId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by ",(0,r.jsx)("code",{children:"quoteId"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"q"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Search by the following properties: ",(0,r.jsx)("code",{children:"invoiceNo"}),",",(0,r.jsx)("code",{children:"orderNo"}),","," ",(0,r.jsx)("code",{children:"contact.name"}),",",(0,r.jsx)("code",{children:"lineDescription"}),", ",(0,r.jsx)("code",{children:"amount"}),",",(0,r.jsx)("code",{children:"amount + tax"}),", ",(0,r.jsx)("code",{children:"balance"})]})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2locales"})," ",(0,r.jsx)("code",{children:"/v2/locales"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"icon"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2organizations"})," ",(0,r.jsx)("code",{children:"/v2/organizations"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"ownerUser"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"When the organization was created"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"url"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"street"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"zipcode"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"city"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"country"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"phone"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"fax"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"email"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"registrationNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"baseCurrency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"logoFile"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"Organization logo."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"logoPdfFile"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"Logo file to be used with PDFs."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"logoUrl"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Full-size logo URL"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"iconFile"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"Organization icon."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"iconUrl"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Full-size icon URL"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"icon48Url"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"48x48 pixels icon URL"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"fiscalYearEndMonth"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"firstFiscalYearStart"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"firstFiscalYearEnd"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"hasBillVoucherNo"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether or not the company has a bill voucher number"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionCardType"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionCardNumber"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionCardExpires"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionTransaction"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The transaction for the company's recurring subscription."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isSubscriptionBankPayer"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionPrice"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionPeriod"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsxs)("td",{children:["required, default: ",(0,r.jsx)("code",{children:'"monthly"'})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionDiscount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"subscriptionExpires"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isTrial"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isTerminated"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"terminationTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"When the company was terminated"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"locale"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The organization's default language. Will be used for all c
1ontacts unless overridden on a contact level."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"billEmailAddress"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"An email can be sent to this address and its attachments will be processed into bills"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isUnmigrated"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"If this is true, the company has not yet migrated to our new system."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isLocked"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"If this is true, the company is locked."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lockedCode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"lockedReason"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Reason the company is currently locked."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"appUrl"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"emailAttachmentDeliveryMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"Whether to deliver attachments by link to customer portal, or with email attachments."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"hasVat"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"vatPeriod"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"defaultInvoiceBankAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"invoiceNoMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"nextInvoiceNo"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentTermsMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"paymentTermsDays"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"defaultTaxMode"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsxs)("td",{children:["The organisation's default tax inclusivity mode (incl or excl). Used as the fallback for taxMode on newly created invoices and bills when not explicitly set in the request. Example: with a unit price of 100 and a 25% VAT rate, ",(0,r.jsx)("code",{children:"incl"})," means the line totals 100 (80 net + 20 VAT), while ",(0,r.jsx)("code",{children:"excl"})," means the line totals 125 (100 net + 25 VAT)."]}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"defaultSalesAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"defaultSalesTaxRuleset"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"bankSyncStartDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"defaultBankFeeAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"defaultBillBankAccount"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2postings"})," ",(0,r.jsx)("code",{children:"/v2/postings"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"transaction"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"text"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"side"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"salesTaxReturn"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isBankMatched"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h4",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2PostingsFilter"})," ",(0,r.jsx)("code",{children:"List filters"})]}),(0,r.jsx)("p",{children:"Supports filtering by following parameters"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Parameter"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortProperty"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Sort by one of: entryDate, priority, sideAmount"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"sortDirection"}),(0,r.jsx)("td",{children:'string (Enum: "ASC", "DESC")'}),(0,r.jsx)("td",{children:"Sort ascending (ASC) or descending (DESC)"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"accountId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by accountId belonging to a specific Account"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"transactionId"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Filter by transactionId belonging to a specific Transaction"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"entryDate"}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"Filter by an exact entryDate"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"minEntryDate"}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2265 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"maxEntryDate"}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"Filter by entryDate \u2264 a specified value"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"entryDatePeriod"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Filter by entry date period. Formats: ",(0,r.jsx)("code",{children:"all"}),";"," ",(0,r.jsx)("code",{children:"dates:YYYY-MM-DD...YYYY-MM-DD"}),";
1 ",(0,r.jsx)("code",{children:"from:YYYY-MM-DD"}),";"," ",(0,r.jsx)("code",{children:"half:YYYY-H"}),"; ",(0,r.jsx)("code",{children:"month:YYYY-MM"}),"; ",(0,r.jsx)("code",{children:"quarter:YYYY-Q"}),";"," ",(0,r.jsx)("code",{children:"through:YYYY-MM-DD"}),"; ",(0,r.jsx)("code",{children:"year:YYYY"}),";"," ",(0,r.jsx)("code",{children:"fiscalyear:organizationId,YYYY"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isVoided"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Filter by isVoided"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isBankMatched"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Filter by isBankMatched"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"isNotZero"}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"When true, only returns postings with a non-zero amount"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"ids"}),(0,r.jsx)("td",{children:"array of strings"}),(0,r.jsx)("td",{children:"Filter by a list of posting IDs"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:"q"}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Free-text search across the posting text and the transaction's originator name"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2productprices"})," ",(0,r.jsx)("code",{children:"/v2/productPrices"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"product"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"unitPrice"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"Currency for the unit price."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"currency"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The default unit price for invoice lines when the invoice's currency matches this currency."}),(0,r.jsx)("td",{children:"required"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2products"})," ",(0,r.jsx)("code",{children:"/v2/products"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"The name of the product."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"Optional description that will be used as default on invoice lines with this product."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"The account that sales of the product should be coded to."}),(0,r.jsxs)("td",{children:["required, default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"productNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"A number (or string) that the organization identifies the product by."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"suppliersProductNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"A number (or string) that the organization's supplier identifies the product by."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"salesTaxRuleset"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsxs)("td",{children:["default: ",(0,r.jsx)("code",{children:"unknown"})]})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isArchived"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"prices"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"The product can have a unit price for each of the organization's currencies."}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2salestaxaccounts"}),(0,r.jsx)("code",{children:"/v2/salesTaxAccounts"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"type"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2salestaxmetafields"}),(0,r.jsx)("code",{children:"/v2/salesTaxMetaFields"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPredefined"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2salestaxpayments"}),(0,r.jsx)("code",{children:"/v2/salesTaxPayments"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"salesTaxReturn"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"amount"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"side"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2salestaxreturns"}),(0,r.jsx)("code",{children:"/v2/salesTaxReturns"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"periodType"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"period"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"periodText"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"correctionNo"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"startDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"endDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"reportDeadline"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isSettled"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPaid"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2salestaxrules"})," ",(0,r.jsx)("code",{children:"/v2/salesTaxRules"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"ruleset"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"country"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"state"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"countryGroup"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"contactType"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxRate"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2salestaxrulesets"}),(0,r.jsx)("code",{children:"/v2/salesTaxRulesets"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r
1.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"abbreviation"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"fallbackTaxRate"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPredefined"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"rules"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2states"})," ",(0,r.jsx)("code",{children:"/v2/states"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"stateCode"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"country"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2taxratedeductioncomponents"}),(0,r.jsx)("code",{children:"/v2/taxRateDeductionComponents"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxRate"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"share"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"source"})}),(0,r.jsx)("td",{children:"enum"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"account"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2taxrates"})," ",(0,r.jsx)("code",{children:"/v2/taxRates"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("p",{children:"Note that creating custom tax rates is not available to every organisation. It depends on the organisation's chart of accounts: organisations on a predefined chart of accounts can only use the predefined tax rates available for their market, and attempting to create additional rates for them will not work. Several of the properties below are likewise read-only for those organisations."}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"abbreviation"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"description"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"rate"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"appliesToSales"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"appliesToPurchases"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isPredefined"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isActive"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"netAmountMetaField"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"deductionComponents"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"predefinedTag"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Identifies the predefined tax rate this one corresponds to, for example"," ",(0,r.jsx)("code",{children:"p_dk_25"}),". Required for organisations that use standard tax rates, and read-only for those that do not."]}),(0,r.jsx)("td",{children:"immutable once predefined"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"priority"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"Ordering priority of the tax rate. Read-only for organisations that use standard tax rates."}),(0,r.jsx)("td",{children:" "})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"taxRateGroup"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsxs)("td",{children:["Group the tax rate belongs to, for example ",(0,r.jsx)("code",{children:"local"}),". Read-only for organisations that use standard tax rates."]}),(0,r.jsx)("td",{children:" "})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2transactions"})," ",(0,r.jsx)("code",{children:"/v2/transactions"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, delete, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"organization"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"immutable, required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"transactionNo"})}),(0,r.jsx)("td",{children:"integer"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"voucherNo"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"entryDate"})}),(0,r.jsx)("td",{children:"date"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"originator"})}),(0,r.jsx)("td",{children:"belongs-to-reference"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"originatorName"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoided"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isVoid"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"postings"})}),(0,r.jsx)("td",{children:"has-many"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2users"})," ",(0,r.jsx)("code",{children:"/v2/users"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"createdTime"})}),(0,r.jsx)("td",{children:"datetime"}),(0,r.jsx)("td",{children:"Date/time user was created"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"name"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"User's full name."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"email"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"User's email address."}),(0,r.jsx)("td",{children:"required"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"phone"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"User's phone number."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"profilePicFile"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"Profile picture of user."}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"profilePicUrl"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"profilePic48Url"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"readonly"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isStaff"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether or not the user is a member of the Billy staff."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isSupporter"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether or not the user is a Billy supporter."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isAdmin"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether or not the user is a Billy admin."}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"isSupportAccessAllowed"})}),(0,r.jsx)("td",{children:"boolean"}),(0,r.jsx)("td",{children:"Whether or not the user chooses to allow supp
1orter access."}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})}),(0,r.jsxs)("h3",{children:[(0,r.jsx)("a",{className:"anchor",name:"v2zipcodes"})," ",(0,r.jsx)("code",{children:"/v2/zipcodes"})]}),(0,r.jsx)("p",{children:"Supports: get by id, list, create, update, bulk save, bulk delete"}),(0,r.jsx)("div",{className:"table-responsive",children:(0,r.jsxs)("table",{className:"table table-bordered",children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Property"}),(0,r.jsx)("th",{children:"Type"}),(0,r.jsx)("th",{children:"Description"}),(0,r.jsx)("th",{children:"Notes"})]})}),(0,r.jsxs)("tbody",{children:[(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"zipcode"})}),(0,r.jsx)("td",{children:"string"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"city"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"state"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"country"})}),(0,r.jsx)("td",{children:"belongs-to"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"latitude"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]}),(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:(0,r.jsx)("code",{children:"longitude"})}),(0,r.jsx)("td",{children:"float"}),(0,r.jsx)("td",{children:"-"}),(0,r.jsx)("td",{children:"\xa0"})]})]})]})})]})})}))}},3729:function(e,n,d){(window.__NEXT_P=window.__NEXT_P||[]).push(["/api-docs",function(){return d(77982)}])},97893:function(e,n,d){var s;e.exports=(s=d(67294),function(e){var n={};function d(s){if(n[s])return n[s].exports;var r=n[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,d),r.l=!0,r.exports}return d.m=e,d.c=n,d.d=function(e,n,s){d.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:s})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,n){if(1&n&&(e=d(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(d.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)d.d(s,r,function(n){return e[n]}.bind(null,r));return s},d.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(n,"a",n),n},d.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},d.p="",d(d.s=4)}([function(e,n,d){e.exports=d(2)()},function(e,n){e.exports=s},function(e,n,d){"use strict";var s=d(3);function r(){}function t(){}t.resetWarningCache=r,e.exports=function(){function e(e,n,d,r,t,i){if(i!==s){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var d={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:t,resetWarningCache:r};return d.PropTypes=d,d}},function(e,n,d){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,n,d){"use strict";d.r(n);var s=d(1),r=d.n(s),t=d(0),i=d.n(t),c=function(e){return 0!==e};function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var d=arguments[n];for(var s in d)Object.prototype.hasOwnProperty.call(d,s)&&(e[s]=d[s])}return e}).apply(this,arguments)}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,n){for(var d=0;d<n.length;d++){var s=n[d];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}
vendor: 5,008 bytes, line 1
1function a(e,n){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function x(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var d,s=p(e);if(n){var r=p(this).constructor;d=Reflect.construct(s,arguments,r)}else d=s.apply(this,arguments);return j(this,d)}}function j(e,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,n,d){return n in e?Object.defineProperty(e,n,{value:d,enumerable:!0,configurable:!0,writable:!0}):e[n]=d,e}var b=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&a(e,n)}(i,e);var n,d,s,t=x(i);function i(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),m(u(n=t.call(this,e)),"continueOpenCollapsible",(function(){var e=u(n).innerRef;n.setState({height:e.scrollHeight,transition:"height ".concat(n.props.transitionTime,"ms ").concat(n.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:c(e.scrollHeight),shouldOpenOnNextCycle:!1})})),m(u(n),"handleTriggerClick",(function(e){n.props.triggerDisabled||n.state.inTransition||(e.preventDefault(),n.props.handleTriggerClick?n.props.handleTriggerClick(n.props.accordionPosition):!0===n.state.isClosed?(n.openCollapsible(),n.props.onOpening(),n.props.onTriggerOpening()):(n.closeCollapsible(),n.props.onClosing(),n.props.onTriggerClosing()))})),m(u(n),"handleTransitionEnd",(function(e){e.target===n.innerRef&&(n.state.isClosed?(n.setState({inTransition:!1}),n.props.onClose()):(n.setState({height:"auto",overflow:n.props.overflowWhenOpen,inTransition:!1}),n.props.onOpen()))})),m(u(n),"setInnerRef",(function(e){return n.innerRef=e})),n.timeout=void 0,n.contentId=e.contentElementId||"collapsible-content-".concat(Date.now()),n.triggerId=e.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),e.open?n.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:e.overflowWhenOpen,inTransition:!1}:n.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(e.transitionTime,"ms ").concat(e.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},n}return n=i,(d=[{key:"componentDidUpdate",value:function(e,n){var d=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"!==n.height&&0!==n.height||!0!==this.state.shouldSwitchAutoOnNextCycle||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout((function(){d.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})}),50)),e.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var e=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:e.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:c(e.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:c(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var e=this.props,n=e.triggerSibling,d=e.classParentString;if(!n)return null;switch(h(n)){case"string":return r.a.createElement("span",{className:"".concat(d,"__trigger-sibling")},n);case"function":return n();case"object":return n;default:return null}}},{key:"render",value:function(){var e=this,n={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},d=this.state.isClosed?"is-closed":"is-open",s=this.props.triggerDisabled?"is-disabled":"",t=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,i=this.props.contentContainerTagName,c=this.props.triggerTagName,h=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,o=this.props,a=o.classParentString,x=o.contentOuterClassName,j=o.c
1ontentInnerClassName,u="".concat(a,"__trigger ").concat(d," ").concat(s," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),p="".concat(a," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),m="".concat(a,"__contentOuter ").concat(x),b="".concat(a,"__contentInner ").concat(j);return r.a.createElement(i,l({className:p.trim()},this.props.containerElementProps),r.a.createElement(c,l({id:this.triggerId,className:u.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(n){var d=n.key;(" "===d&&"button"!==e.props.triggerTagName.toLowerCase()||"Enter"===d)&&e.handleTriggerClick(n)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),t),this.renderNonClickableTriggerElement(),r.a.createElement("div",{id:this.contentId,className:m.trim(),style:n,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},r.a.createElement("div",{className:b.trim()},h)))}}])&&o(n.prototype,d),s&&o(n,s),Object.defineProperty(n,"prototype",{writable:!1}),i}(s.Component);b.propTypes={transitionTime:i.a.number,transitionCloseTime:i.a.number,triggerTagName:i.a.string,easing:i.a.string,open:i.a.bool,containerElementProps:i.a.object,triggerElementProps:i.a.object,contentElementId:i.a.string,classParentString:i.a.string,className:i.a.string,openedClassName:i.a.string,triggerStyle:i.a.object,triggerClassName:i.a.string,triggerOpenedClassName:i.a.string,contentOuterClassName:i.a.string,contentInnerClassName:i.a.string,accordionPosition:i.a.oneOfType([i.a.string,i.a.number]),handleTriggerClick:i.a.func,onOpen:i.a.func,onClose:i.a.func,onOpening:i.a.func,onClosing:i.a.func,onTriggerOpening:i.a.func,onTriggerClosing:i.a.func,trigger:i.a.oneOfType([i.a.string,i.a.element]),triggerWhenOpen:i.a.oneOfType([i.a.string,i.a.element]),triggerDisabled:i.a.bool,lazyRender:i.a.bool,overflowWhenOpen:i.a.oneOf(["hidden","visible","auto","scroll","inherit","initial","unset"]),contentHiddenWhenClosed:i.a.bool,triggerSibling:i.a.oneOfType([i.a.string,i.a.element,i.a.func]),tabIndex:i.a.number,contentContainerTagName:i.a.string,children:i.a.oneOfType([i.a.string,i.a.element])},b.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},n.default=b}]))},69293:function(e,n,d){"use strict";var s=d(67294),r=d(76362),t=["mousedown","touchstart"];n.Z=function(e,n,d){void 0===d&&(d=t);var i=(0,s.useRef)(n);(0,s.useEffect)((function(){i.current=n}),[n]),(0,s.useEffect)((function(){for(var n=function(n){var d=e.current;d&&!d.contains(n.target)&&i.current(n)},s=0,t=d;s<t.length;s++){var c=t[s];(0,r.on)(document,c,n)}return function(){for(var e=0,s=d;e<s.length;e++){var t=s[e];(0,r.S1)(document,t,n)}}}),[d,e])}}},function(e){e.O(0,[3662,1664,7259,4111,6598,8009,9774,2888,179],(function(){return n=3729,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.