salesinvoice.nv Add salesinvoice
POST {{host}}/salesinvoice.nv?method=add
Add new sales invoice
When adding a sales invoice to Netvisor, there is some required fields and other fields depending how the sales invoice needs to entered to accounting. About the special situations (for example tax handling in foreign sales or construction services) contact first the accountant, after that our integration support can assist how to handle situations with API.
Credit note is importerd with the same structure. The only difference is that unit count and sum total (if set) are set to negative numbers.
To prevent roundings with Netvisor and other system, we recommend to import productline sum's by 2 digits. If it is not possible, you can add salesInvoiceProductLineVatSum and salesInvoiceProductLineSum elements under salesInvoiceProductLine to the xml in which case Netvisor doesn't do the calculation.
Detailed information about this is in support page:
The response replies what is the Netvisor Key of the sales invoice which you can use need later to check status.
<Root>
<ResponseStatus>
<Status>OK</Status>
<TimeStamp>21.6.2023 14:11:56</TimeStamp>
</ResponseStatus>
<Replies>
<InsertedDataIdentifier>123</InsertedDataIdentifier>
</Replies>
</Root>
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
method | string | Mandatory, add or edit. When using method edit, all original order/invoice details must be given if wish to keep them. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
User-Agent | string | ||
X-Netvisor-Authentication-PartnerId | string | Environmentin muuttuja | |
X-Netvisor-Authentication-CustomerId | string | Environmentin muuttuja | |
X-Netvisor-Interface-Language | string | ||
X-Netvisor-Authentication-Timestamp | string | Muodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi | |
X-Netvisor-Organisation-ID | string | Y-tunnus annetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi | |
X-Netvisor-Authentication-Sender | string | Collectionin muuttuja | |
X-Netvisor-Authentication-TransactionId | string | Muodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi | |
X-Netvisor-Authentication-MACHashCalculationAlgorithm | string | ||
X-Netvisor-Authentication-MAC | string | Muodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi |