Get Upload Files
<h2>Overview</h2>
<p>This endpoint allows you to retrieve files that are associated with a particular order identified by <code>{orderId}</code>. It's useful for fetching documents, images, or any other files related to the order for viewing or downloading purposes.</p>
<h2>Request</h2>
<ul>
<li>Method: <strong>GET</strong></li>
<li>URI: <code>/orders/{orderId}/files</code></li>
</ul>
<h2>Code Example</h2>
<pre><code>Request:
curl --location 'https://api.drayeasy.com/api/v2/orders/6129/files' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxxxxx'
Response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
&quot;data&quot;: [
{
&quot;id&quot;: 364,
&quot;url&quot;: &quot;https://api.drayeasy.com/api/v2/orders/6129/files/364&quot;,
&quot;filename&quot;: &quot;1.jpeg&quot;
},
{
&quot;id&quot;: 365,
&quot;url&quot;: &quot;https://api.drayeasy.com/api/v2/orders/6129/files/365&quot;,
&quot;filename&quot;: &quot;u=1819248061,230866778&amp;fm=193&amp;f=GIF.jpeg&quot;
}
]
}</code></pre>
<h2>Response Fields Description</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>data</td>
<td>Array</td>
<td>Array of uploaded file information</td>
</tr>
<tr>
<td>data[id]</td>
<td>Integer</td>
<td>ID of the uploaded file</td>
</tr>
<tr>
<td>data[url]</td>
<td>String</td>
<td>URL to access the uploaded file</td>
</tr>
<tr>
<td>data[filename]</td>
<td>String</td>
<td>Name of the uploaded file</td>
</tr>
</tbody>
</table>