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:

https://support.netvisor.fi/en/support/solutions/articles/77000554152-import-sales-invoice-or-order-salesinvoice-nv

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

KeyDatatypeRequiredDescription
methodstringMandatory, add or edit. When using method edit, all original order/invoice details must be given if wish to keep them.

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
User-Agentstring
X-Netvisor-Authentication-PartnerIdstringEnvironmentin muuttuja
X-Netvisor-Authentication-CustomerIdstringEnvironmentin muuttuja
X-Netvisor-Interface-Languagestring
X-Netvisor-Authentication-TimestampstringMuodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi
X-Netvisor-Organisation-IDstringY-tunnus annetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi
X-Netvisor-Authentication-SenderstringCollectionin muuttuja
X-Netvisor-Authentication-TransactionIdstringMuodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi
X-Netvisor-Authentication-MACHashCalculationAlgorithmstring
X-Netvisor-Authentication-MACstringMuodostetaan Pre-request Scriptissä, nousee sieltä Environment muuttujaksi