Create sales document

You use this method to create a new sales document.

Request method

POST

Request url

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

Context identification

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

Request header

See request header.

Request body

Structure

Request (object)

Examples

{
  "Request": {
    "Sales": {
      "Sale": [
        {
          "Fields": {
            "CstNum": "1",
            "CstSubNum": "0",
            "DocType": "0",
            "Book": "VKP",
            "TotalDocC": "2000.00",
            "VatCode": "3",
            "BaseVat4DocC": "1652.89",
            "VatDueNormDocC": "347.11"
          },
          "Entries": {
            "Entry": [
              {
                "Fields": {
                  "Account": "400000000001",
                  "AmountDocC": "2000.00"
                }
              },
              {
                "Fields": {
                  "Account": "4510",
                  "AmountDocC": "-347.11"
                }
              },
              {
                "Fields": {
                  "Account": "700",
                  "AmountDocC": "-1652.89"
                }
              }
            ]
          }
        }
      ]
    }
  }
}
<?xml version="1.0" encoding="utf-8"?>
<Request>
  <Sales>
    <Sale>
      <Fields>
        <CstNum>1</CstNum>
        <CstSubNum>0</CstSubNum>
        <DocType>0</DocType>
        <Book>VKP</Book>
        <TotalDocC>2000.00</TotalDocC>
        <VatCode>3</VatCode>
        <BaseVat4DocC>1652.89</BaseVat4DocC>
        <VatDueNormDocC>347.11</VatDueNormDocC>
      </Fields>
      <Entries>
        <Entry>
          <Fields>
            <Account>400000000001</Account>
            <AmountDocC>2000.00</AmountDocC>
          </Fields>
        </Entry>
        <Entry>
          <Fields>
            <Account>4510</Account>
            <AmountDocC>-347.11</AmountDocC>
          </Fields>
        </Entry>
        <Entry>
          <Fields>
            <Account>700</Account>
            <AmountDocC>-1652.89</AmountDocC>
          </Fields>
        </Entry>
      </Entries>
    </Sale>
  </Sales>
</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>