Get an attachment of an order
const url = 'https://acme.mykreezalid.com/front_api/v1/orders/4242/attachments/4243';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/4243 \ --header 'Authorization: Bearer <token>'Returns one file attached to an order. The signed-in member must be the customer or the vendor of the order. Note the spelling of the response key: attachement.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Identifier of the order.
Example
4242Identifier of the attachment.
Example
4243Responses
Section titled “Responses”The attachment.
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
{ "attachement": { "id": 4242, "order_id": 4243, "createdBy": 4244, "name": "Invoice October", "type": "USER_MANUAL", "filename": "6526f1a3b2c4d.pdf" }}No signed-in member.
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 attachment does not exist on this order, or the signed-in member is neither the customer nor the vendor of the order.
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"}