Create financial document

You use this method to create a new financial document.

Request method

POST

Request url

https://venice.unit4.com/webconnect/api/{DossierId}/{FinancialYear}/Financial

Context identification

Identification Description
DossierId The unique identifier of the dossier.
FinancialYear The financial year.
Example: Create a new financial document in dossier 'Demo', financial year '2019'.
https://venice.unit4.com/webconnect/api/Demo/2019/Financial

Request header

See request header.

Request body

Structure

Request (object)

Examples

{
  "Request": {
    "Financials": {
      "Financial": [
        {
          "Fields": {
            "TotalDocC": "100.00",
            "BookDate": "2019-03-14",
            "DocDate": "2019-03-14",
            "Book": "ING",
            "Currency": "EUR",
            "DocNum": "6"
          },
          "Entries": {
            "Entry": [
              {
                "Fields": {
                  "AmountDocC": "100.00",
                  "Account": "5500001",
                  "AmountDetC": "100.00",
                  "DetC": "EUR"
                }
              },
              {
                "Fields": {
                  "AmountDocC": "-100.00",
                  "Account": "400000000001",
                  "AmountDetC": "-100.00",
                  "DetC": "EUR"
                }
              }
            ]
          }
        }
      ]
    }
  }
}
<?xml version="1.0" encoding="utf-8"?>
<Request>
  <Financials>
    <Financial>
      <Fields>
        <TotalDocC>100.00</TotalDocC>
        <BookDate>2019-03-14</BookDate>
        <DocDate>2019-03-14</DocDate>
        <Book>ING</Book>
        <Currency>EUR</Currency>
        <DocNum>6</DocNum>
      </Fields>
      <Entries>
        <Entry>
          <Fields>
            <AmountDocC>100.00</AmountDocC>
            <Account>5500001</Account>
            <AmountDetC>100.00</AmountDetC>
            <DetC>EUR</DetC>
          </Fields>
        </Entry>
        <Entry>
          <Fields>
            <AmountDocC>-100.00</AmountDocC>
            <Account>400000000001</Account>
            <AmountDetC>-100.00</AmountDetC>
            <DetC>EUR</DetC>
          </Fields>
        </Entry>
      </Entries>
    </Financial>
  </Financials>
</Request>

Http status

See http status.

Response body

You can receive the response in json or xml.

Structure

Response (object)
  • System number

Examples

{
  "Response": {
    "SystemNumber": "5"
  }
}
<?xml version="1.0" encoding="utf-8"?>
<Response>
  <SystemNumber>5</SystemNumber>
</Response>