Create purchase document
You use this method to create a new purchase document.
Request method
POST
Request url
https://ponte.venice.be/webconnect/api/{DossierId}/{FinancialYear}/Purchase
Context identification
Identification | Description |
---|---|
DossierId | The unique identifier of the dossier. |
FinancialYear | The financial year. |
https://ponte.venice.be/webconnect/api/Demo/2021/Purchase
Request header
See request header.
Request body
Structure
Request (object)
- Purchases (array)
- Purchase (limited to one) (array item)
- Fields (object)
- Entries (array)
- Entry (array item)
- Fields (object)
- AnalyticalCentres (array)
- AnalyticalCentre (array item)
- Fields (object)
- AnalyticalUnits (array)
- AnalyticalUnit (array item)
- Fields (object)
- IntrastatDetails (array)
- IntrastatDetail (array item)
- Fields (object)
- PaymentInfo (object)
- Fields (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": "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>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>