Create sales document
You use this method to create a new sales document.
Request method
POST
Request url
https://ponte.venice.be/webconnect/api/{DossierId}/{FinancialYear}/Sales
Context identification
Identification | Description |
---|---|
DossierId | The unique identifier of the dossier. |
FinancialYear | The financial year. |
https://ponte.venice.be/webconnect/api/Demo/2021/Sales
Request header
See request header.
Request body
Structure
Request (object)
- Sales (array)
- Sale (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)
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": "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>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>