Resource: getpurchaseinvoice.nv

HTTP-method: GET

Get detailed information of a specific purchase invoice.

Querystring parameters:

Parameter nameOccursDescriptionExample
netvisorkey1Netvisor key of the invoice to retrieve. 1
netvisorkeylist0...1Can be used to get the details of several invoices with given id. Max. 500 identifiers.1,2,3
version0...1Used for returning single invoice line's dimension details inside the element (PurchaseInvoiceLine)
1 = Dimensions outside of the invoice line, used as default or if parameter not given
2 = Dimensions inside the invoice line 
2
include0...1- actions = What can be done to the invoice (approve, accept, reject, pay)
- handlinghistory = Invoice's handling history
- previewimage = Invoice's previewimage
actions
omitattachments0...1True = Exclude attachments
False = Include attachments
If parameter not given = False
false

Response:

LevelElement NameType and lengthOccursDescriptionExample
RootRootAggr.1 
1PurchaseInvoiceAggr.1 
2PurhaseInvoiceNetvisorKeyString1
Invoice Netvisor ID1025
2PurchaseInvoiceNumberString1Invoice number345
2PurchaseInvoiceDateDate1Invoide date2013-10-23
Attr.formatString1Format of InvoiceDate, Always ansiansi
2PurchaseInvoiceDeliveryDateDate1Delivery date2013-09-10
Attr.formatString1Format of DeliveryDate, Always ansiansi
2PurchaseInvoiceDueDateDate1Due date2014-01-09
Attr.formatString1Format of DueDate, Always ansiansi
2PurchaseInvoiceValueDateDate1Value date2013-12-03
Attr.formatString1Format of ValueDate, Always ansiansi
2PurchaseInvoiceReferencenumberString1Reference number of invoice1234
2PurchaseInvoiceVendorBankAccountNumber
String1
Vendor bank account number
2IsPurchaseInvoiceVendorBankAccountDeleted
String1True or False. Is the bank account deleted
False
2IsPurchaseInvoiceVendorBankAccountFromSEPARegion
String1True tai False. Is the bank account in SEPA region
True
2PurchaseInvoiceAmountNumeric1Amount in two decimal accuracy1234,56
2PurchaseInvoicePaidAmountNumeric1Paid amount in two decimal accuracy1000,00
2ForeignCurrencyAmountNumeric1Amoun in foreign currency in two decimal accuracy1234,56
2ForeignCurrencyNameIDString1Currency codeEUR
2InvoiceStatusString1Status of the invoice
Open
Due for payment
Paid
open
2ApprovalStatusString1Purhase invoice's approval status:
new invoice=open
in factual verification=infactualverification
approved=approved
rejected=acceptrorrejected
approved
2PurchaseInvoiceOurReferenceString1Our reference 
2PurchaseInvoiceYourReferenceString1Your reference 
2PurchaseInvoiceDescriptionString1Invoice description 
2VendorNetvisorKeyNumeric1Vendor's Netvisor Key123
2VendorOrganizationIdentifierString1Vendor's Business ID (y-tunnus)1234567-8
2VendorCodeString1Vendor's Code23
2VendorNameString1Name of the vendor Vendor Inc
2VendorAddressLineString1Address of the vendor Pajukuja 5
2VendorPostNumberString1Vendor post number 53100
2VendorTownString1Vendor cityLappeenranta
2VendorCountryString1County code of the Vendor FI
2FingerprintString1Invoice finger print606F6527D9CAF4BB7B69E4D616FAA78637552960A810FD3B5CC04BFEB6757D4C
2VoucherIDNumeric0...1Voucher's NetvisorKey1235
2IsAccountedString1Is invoice accountedTrue
2PreviewImageString0...nWhen action parameter in use
2AttachmentsAggr.0...1 
3AttachmentAggr.1...n 
4AttachmentBase64DataBase641Base64 encoded data of the attachment
4FileNameString1File name of the attachment Invoice1234.pdf
4ContentTypeString1MIME-type of attachment content Appication/pdf
4CommentString1Comment text
2InvoiceLinesAggr.0...1 
3PurchaseInvoiceLineAggr.1...n 
4NetvisorKeyString1Netvisor key 
4LineSumNumeric1Sum of the line 
4LineNetSumNumeric1Net sum of the line
4UnitPriceNumeric 1Price of a single unit (gross)
4VatPercentNumeric 1VAT percent 
4VatCodeString1VAT code
4DescriptionString1Description text 
4UnitString1Unit of measurement 
4OrderedAmountNumeric 1Amount of product ordered 
4PurchasePriceNumeric 1Outdated element, returns nothing
4DeliveredAmountNumeric 1Amount of units delivered 
4ProductCodeString1Product identifier 
4DiscountPercentageNumeric 1Discount percentage 
4ProductNameString1Name of the product 
4AccountingSuggestionBookkeepingaccountNetvisorKeyString0...1Account suggestions Nevisorkey
4AccountingSuggestionBookkeepingAccountString0...1Account suggestion
4PurchaseInvoiceLineDimensionsAggr.0...1Levels 4 -5 -6 when version parameter is 2.
In other case levels 3-4-5

5DimensionAggr.1...n 
6DimensionNameString1Dimension Project
6DimensionNameNetvisorKeyString1Dimension Netvisor ID2
6DimensionDetailNameString1Name of the dimension Project 1
6DimensionDetailNameNetvisorKeyString
1Dimension name Netvisor ID
2LinkedPurchaseOrdersAggr.0...1If purchaseoders have been linked to a purchase invoice, returns their number and ID
3PurchaseOrderAggr.1...n 
4OrderNumberNumeric1Number of purchase order123
4NetvisorKeyNumeric0...1NetvisorID of purchase order
Note! If the number of purchase order has been added to purchase invoice in advance, the purchase order might not be in Netvisor
10

 When parameter actions is in use the following structure is added at the end of the message:

LevelElementType and lengthOccursDescriptionExample
2PostingLinesAccessAggr.1Purchase invoice accounting
3CanEditPostingLinesString1True or FalseTrue
3CanUserPostInvoiceString1True or FalseFalse
3SuggestPostingByDefaultString1True or FalseTrue
3CanEditAccountingSuggestionString1True or FalseFalse
2ActionsAggr.1What can be done to the purchase invoice with the user's rights
3ActionAggr.1...n

4IdString1Possible values:
approved
accepted
rejected
pay
accepted
4TypeString1Returns the resouce that can be used to deliver the actionpurchaseinvoicepostingdata
4DescriptionString1Explanation of the actionAccept the purchase invoice
2AlertsAggr.1If there are no alerts, only upper level tag is shown
3AlertAggr.1

4HeadingString1HeaderThe invoice is in a locked period
4DescriptionString1ExplanationAccepting the purchase invoice does not update any information because the invoice is in a locked period
2NotificationsAggr.1If there are no notifications, only upper level tag is shown
3NotoficationAggr.1

4HeadingString1Header
4DescriptionString1ExplanationVendor's bank account has been deleted, update bank account

When parameter handlinghistory is in use the following structure is added at the end of the message:

LevelElementType and lengthOccursDescriptionExample
2HandlingHistoryAggr.1Purchase invoice handling history
3HandlingHistoryLineAggr.1...n

4TypeString1EventInvoiceCreated
4HeadingString1HeaderCreated
4DescriptionString1ExplanationInvoice created in the system
4TimestampDate1Timestamp2018-01-01 09:45:49:000
Attr.formatString1Date format, always ansiansi
4UserNameString1Name of the user who performed the actionEric Example
4UserEmailString1Email of the user in the compayn if it is defined and the user is not "System"eric.example@company.com.test
4UpdatedInformationFieldsAggr.0...nUpdated information
5FieldNameString1InfomationAccounted
5OldValueString1Old valueNo
5NewValueString1New valueYes


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.