getAttachmentsByPage
Changed onRetrieves purchase order attachment records with the accompanying information (by page).
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
- Authnone declared. Required headers: authenticationtoken, password, sitename, userid
Query parameters
Code for the Location to retrieve. Required if minutesSinceUpdate or one of purchaseOrderNumber, vendorCode, or vendorInvoiceNumber is not provided.
Purchase Order Number to retrieve. Required if minutesSinceUpdate or one of locationCode, vendorCode, or vendorInvoiceNumber is not provided.
Code for the Vendor to retrieve. Required if minutesSinceUpdate or one of locationCode, purchaseOrderNumber or vendorInvoiceNumber is not provided.
Vendor Invoice Number to retrieve. Required if minutesSinceUpdate or one of locationCode, purchaseOrderNumber or vendorCode is not provided.
The number of minutes since the file was uploaded. Use to set how far back to search. Must be more than 0 and less than 10080 (7 days). Required if one of locationCode, purchaseOrderNumber, vendorCode, or vendorInvoiceNumber is not provided.
Specifies the field to sort the attachments by. Default field 'fileName' (optional).
Specifies record sort order in ascending (ASC) or descending (DESC) direction, Default ASC.(Optional).
Retrieve one or more records by pageNumber. \n Use to retrieve data in smaller chunks. \n If left blank, the default is 1.
Retrieve orders where the Traceability Code in the details matches the value provided (optional).
Number of items to display per page.
Specify 'true' to output null data elements.
Headers
Secure token for API authentication.
Password for the Crunchtime Application User.
Crunchtime site identifier. (test or production)
"User ID for the Crunchtime Application User.
Optional trace identifier for troubleshooting.
Response
Success
Example response
{
"attachments": [
{
"locationCode": "LOC123",
"purchaseOrderNumber": "vo-98637",
"fileName": "IMG_6717.JPG",
"fileDescription": "Delivery photo",
"fileSize": 20,
"fileUrl": "https://download.net-chef.com/attachment",
"vendorCode": "KATSIR",
"locationExportCode": "0409",
"vendorExportCode": "VREIN15",
"uploadDate": "05/25/2021 08:11:18"
}
]
}Changes
- info
endpoint added
- info