# Examples of invoice accountings

Use `accountdate` and `accountrow` when you export invoice accounting entries to your ERP.

### accountdate

`accountdate` controls the accounting period in your ERP.

It is not the same as the invoice date (`billdate`).

If you omit `accountdate`, the service uses `billdate`.

Send it under the invoice `dataset`.

```json
{
  "accountdate": "2026-02-18"
}
```

### accountrow

`accountrow` is an array of accounting rows for the invoice.

Each row typically maps to one debit or credit entry in your chart of accounts.

Send it under the invoice `dataset`.

#### Dimensions

You can pass dimensions using:

* `servicecode_name`
* `type`, `type2`, …, `type10`

`type`…`type10` are strings with max length 10.

### Example: Debit invoice (total 1250.00)

Expected behavior:

* Receivable on the debit side.
* Sales on the credit side.
* `netamount` and `vatamount` are positive.
* Use the same dimensions, VAT data, and tax rate on both entries.

```json
{
  "accountrow": [
    {
      "accountid": 1701,
      "desc": "Invoice line",
      "debit": 1250.0,
      "credit": null,
      "netamount": 1000.0,
      "vatamount": 250.0,
      "taxpr": 25,
      "vatcode": 3,
      "servicecode_name": "10000",
      "type": "XYZ",
      "type2": null,
      "type3": null,
      "type4": null,
      "type5": null,
      "type6": null
    },
    {
      "accountid": 3000,
      "desc": "Invoice line",
      "debit": null,
      "credit": 1250.0,
      "netamount": 1000.0,
      "vatamount": 250.0,
      "taxpr": 25,
      "vatcode": 3,
      "servicecode_name": "10000",
      "type": "XYZ",
      "type2": null,
      "type3": null,
      "type4": null,
      "type5": null,
      "type6": null
    }
  ]
}
```

### Example: Credit invoice (total -1250.00)

Expected behavior:

* Receivable on the credit side.
* Sales on the debit side.
* `netamount` and `vatamount` are negative.
* Use the same dimensions, VAT data, and tax rate on both entries.

```json
{
  "accountrow": [
    {
      "accountid": 1701,
      "desc": "Invoice line",
      "debit": null,
      "credit": 1250.0,
      "netamount": -1000.0,
      "vatamount": -250.0,
      "taxpr": 25,
      "vatcode": 3,
      "servicecode_name": "10000",
      "type": "XYZ",
      "type2": null,
      "type3": null,
      "type4": null,
      "type5": null,
      "type6": null
    },
    {
      "accountid": 3000,
      "desc": "Invoice line",
      "debit": 1250.0,
      "credit": null,
      "netamount": -1000.0,
      "vatamount": -250.0,
      "taxpr": 25,
      "vatcode": 3,
      "servicecode_name": "10000",
      "type": "XYZ",
      "type2": null,
      "type3": null,
      "type4": null,
      "type5": null,
      "type6": null
    }
  ]
}
```

{% hint style="info" %}
`vatcode` is an accounting VAT code. Map it to your ERP’s VAT logic.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.ropo.com/guides/basics/invoice/examples-of-invoice-accountings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
