Resource: getattachments.nv
HTTP-method: GET
Returns purchase invoice attachments.
Also returns purchase invoice's finvoice-style attachment as an image.
| Parameter | Occurs | Description | Example |
| attachmentsource | 1 | Always purchaseinvoice | purchaseinvoice |
| netvisorkey | 1 | Netvisor ID of the purchase invoice | 123 |
| convertpdfstoimages | 0...1 | With value true pdf attachments are converted to png images. Every pdf page as their own image. | true |
Response:
| Level | Element | Type | Occurs | Description | Example |
| root | Root | Aggr. | 1 | ||
| 1 | Attachments | Aggr. | 1 | ||
| 2 | Attachment | Aggr. | 1...n | ||
| 3 | AttachmentNetvisorKey | Numeric | 1 | Netvisor ID of attachment | 123 |
| 3 | AttachmentPageNumber | Numeric | 1 | Page number | 1 |
| 3 | FileName | String | 1 | Date of invoice | Testimage.jpg |
| 3 | FileType | String | 1 | image/png | |
| 3 | Content | String | 1 | Base64 encoded file | iVBORw0KGgoAAAANSUhEUgAAB |
Did you find it helpful? Yes No
Send feedback