Create purchase document

You use this method to create a new purchase document.

Request method

POST

Request url

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

Context identification

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

Request header

See request header.

Request body

Structure

Request (object)

Examples

{
  "Request": {
    "Purchases": {
      "Purchase": [
        {
          "Fields": {
            "SupNum": "1",
            "SupSubNum": "0",
            "DocType": "0",
            "Book": "AKP",
            "TotalDocC": "-1500.00",
            "VatCode": "3",
            "NormalDetail1DocC": "-1500.00"
          },
          "Entries": {
            "Entry": [
              {
                "Fields": {
                  "Account": "440000000001",
                  "AmountDocC": "-1500.00"
                }
              },
              {
                "Fields": {
                  "Account": "600",
                  "AmountDocC": "1500.00"
                }
              }
            ]
          }
        }
      ]
    }
  }
}
<?xml version="1.0" encoding="utf-8"?>
<Request>
  <Purchases>
    <Purchase>
      <Fields>
        <SupNum>1</SupNum>
        <SupSubNum>0</SupSubNum>
        <DocType>0</DocType>
        <Book>AKP</Book>
        <TotalDocC>-1500.00</TotalDocC>
        <VatCode>3</VatCode>
        <NormalDetail1DocC>-1500.00</NormalDetail1DocC>
      </Fields>
      <Entries>
        <Entry>
          <Fields>
            <Account>440000000001</Account>
            <AmountDocC>-1500.00</AmountDocC>
          </Fields>
        </Entry>
        <Entry>
          <Fields>
            <Account>600</Account>
            <AmountDocC>1500.00</AmountDocC>
          </Fields>
        </Entry>
      </Entries>
    </Purchase>
  </Purchases>
</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>