DrayEasy API v2

DrayEasy API v2


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 { &amp;quot;data&amp;quot;: [ { &amp;quot;id&amp;quot;: 364, &amp;quot;url&amp;quot;: &amp;quot;https://api.drayeasy.com/api/v2/orders/6129/files/364&amp;quot;, &amp;quot;filename&amp;quot;: &amp;quot;1.jpeg&amp;quot; }, { &amp;quot;id&amp;quot;: 365, &amp;quot;url&amp;quot;: &amp;quot;https://api.drayeasy.com/api/v2/orders/6129/files/365&amp;quot;, &amp;quot;filename&amp;quot;: &amp;quot;u=1819248061,230866778&amp;amp;fm=193&amp;amp;f=GIF.jpeg&amp;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>

页面列表

ITEM_HTML