List the attachments of an order
const url = 'https://acme.mykreezalid.com/front_api/v1/orders/4242/attachments?page=1&limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://acme.mykreezalid.com/front_api/v1/orders/4242/attachments?page=1&limit=25' \ --header 'Authorization: Bearer <token>'Returns the files attached to an order. The signed-in member must be the customer or the vendor of the order. Results are paged, 25 per page by default; the response carries no paging information.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Identifier of the order.
Example
4242Query Parameters
Section titled “Query Parameters”Page to return, starting at 1.
Number of attachments per page.
Responses
Section titled “Responses”The attachments of the order.
object
A file attached to an order by its customer or its vendor.
object
Identifier of the member who attached the file.
Identifier of the member who last changed the attachment. Returned by the list and read operations only.
Name given to the attachment.
Public link to the file.
Name of the stored file.
Example
{ "attachments": [ { "id": 4242, "order_id": 4243, "createdBy": 4244, "name": "Invoice October", "type": "USER_MANUAL", "filename": "6526f1a3b2c4d.pdf" } ]}No signed-in member, or the signed-in member is neither the customer nor the vendor of the order (or the order does not exist).
Error body returned by the Front API when it refuses a request.
object
HTTP status code, repeated in the body.
Human-readable reason.
Example
{ "code": 403, "status": "error", "message": "Token not found in request"}The requested page is beyond the last page.