Create sales invoice document
You use this method to create a new sales invoice document.
Request method
POST
Request url
https://ponte.venice.be/webconnect/api/{DossierId}/{FinancialYear}/SalesInvoice
Context identification
Identification | Description |
---|---|
DossierId | The unique identifier of the dossier. |
FinancialYear | The financial year. |
https://ponte.venice.be/webconnect/api/Demo/2021/SalesInvoice
Request header
See request header.
Request body
You can specify additional parameters via the Params-node in the body:
Parameter | Description |
---|---|
AddTextLines | True if text lines must be added automatically after the article line, otherwise false. (default = false) |
ExpandSets | True if set articles must be expanded automatically, otherwise false. (default = false) |
Structure
Request (object)
- Params (object)
- AddTextLines
- ExpandSets
- SalesInvoices (array)
- SalesInvoice (limited to one) (array item)
- Fields (object)
- Details (array)
- Detail (array item)
- Fields (object)
- Distributions (array)
- Distribution (array item)
- Fields (object)
- IntrastatDetails (array)
- IntrastatDetail (array item)
- Fields (object)
Examples
{ "Request": { "Params": { "AddTextLines": "true", "ExpandSets": "true" }, "SalesInvoices": { "SalesInvoice": [ { "Fields": { "CstNum": "1", "CstSubNum": "0", "DocType": "0", "Book": "FACT", "DocDate": "2021-01-21", "ExpirationDate": "2021-02-21" }, "Details": { "Detail": [ { "Fields": { "Quantity": "10.00", "PriceDocC": "11.00", "PurchaseValueDocC": "10.00", "ArtNum": "MyArticle", "ArtDsc": "My article description", "VatCode": "3", }, "Distributions": { "Distribution": [ { "Fields": { "Quantity": "10.00", } } ] } } ] } } ] } } }
<?xml version="1.0" encoding="utf-8"?> <Request> <Params> <AddTextLines>true</AddTextLines> <ExpandSets>true</ExpandSets> </Params> <SalesInvoices> <SalesInvoice> <Fields> <CstNum>1</CstNum> <CstSubNum>0</CstSubNum> <DocType>0</DocType> <Book>FACT</Book> <DocDate>2021-01-21</DocDate> <ExpirationDate>2021-02-21</ExpirationDate> </Fields> <Details> <Detail> <Fields> <Quantity>10.00</Quantity> <PriceDocC>11.00</PriceDocC> <PurchaseValueDocC>10.00</PurchaseValueDocC> <ArtNum>MyArticle</ArtNum> <ArtDsc>My article description</ArtDsc> <VatCode>3</VatCode> </Fields> <Distributions> <Distribution> <Fields> <Quantity>10.00</Quantity> </Fields> </Distribution> </Distributions> </Detail> </Details> </SalesInvoice> </SalesInvoices> </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>