---
title: "getAttachmentsByPage"
method: GET
path: "/purchaseorder/v1/getAttachmentsByPage"
tags: ["Purchase Order Service"]
---

# getAttachmentsByPage

`GET /purchaseorder/v1/getAttachmentsByPage`

## Request

- Base URL: `//webservices-test.net-chef.com` (relative, and the document’s source URL is not known)
- URL: `//webservices-test.net-chef.com/purchaseorder/v1/getAttachmentsByPage`
- Auth: none declared. Required headers: `authenticationtoken`, `password`, `sitename`, `userid`

Retrieves purchase order attachment records with the accompanying information (by page).

## Query parameters

- `locationCode` string
- `purchaseOrderNumber` string
- `vendorCode` string
- `vendorInvoiceNumber` string
- `minutesSinceUpdate` integer
- `sortBy` 'purchaseOrderNumber' | 'fileName' | 'fileDescription' | 'fileSize' | 'uploadDate'
- `sortOrder` 'ASC' | 'DESC'
- `pageNumber` integer
- `traceabilityCode` string
- `pageSize` integer
- `includeNull` boolean

## Headers

- `authenticationtoken` string, required
- `password` string, required
- `sitename` string, required
- `userid` string, required
- `X-B3-TraceId` string

## Response `200`

Success

- PurchaseOrderAttachmentBatchResponseDto: PurchaseOrderAttachmentBatchResponseDto description
  - `totalPages` integer
  - `hasNext` boolean
  - `attachments` AttachmentDto[]
    - `locationCode` string: Location Code of the attachment file.
    - `purchaseOrderNumber` string: Purchase Order Number of the attachment file.
    - `fileName` string: File name associated with the attachment.
    - `fileDescription` string: File description associated with the attachment.
    - `fileSize` integer: File Size of the attachment file (in KB).
    - `fileUrl` string: Downloadable file url starts with https://download.net-chef.com/. This url expires 5 minutes after it is generated; call the endpoint again to generate a new link if the file still needs to be downloaded. Only one of fileContent or fileUrl will be populated in the response.
    - `fileContent` string, byte: Base64 encoded data representing binary byte file. Only one of fileContent or fileUrl will be populated in the response.
    - `vendorInvoiceNumber` string: Vendor Invoice/Reference Number.
    - `vendorCode` string: Vendor or customer code associated with the attachment.
    - `locationExportCode` string: Location export code associated with the attachment.
    - `vendorExportCode` string: Vendor export code associated with the attachment.
    - `uploadDate` string: Date the attachment file was uploaded.

## Other responses

- `400`: Validation Error
- `401`: Authorization
- `404`: purchase order attachments not found
- `429`: Too Many Requests
- `500`: Unexpected Error
- `503`: System under maintenance
- `504`: Timeout

## Changes

- **2026-11-03** `fff247a87cc9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crunchtime/apis/inventory-labor/changes/purchaseorder/v1/getAttachmentsByPage/get.md)

---

[API](https://skmtc.dev/crunchtime/apis/inventory-labor.md) - [All operations](https://skmtc.dev/crunchtime/apis/inventory-labor/llms.txt) - [OpenAPI document](https://skmtc.dev/crunchtime/apis/inventory-labor/revisions/fff247a87cc9?raw)
