v2-listOrderDocuments - List documents
Changed onUse this API to retrieve documents across orders with pagination support.
Each document in the response includes its associated order_id along with metadata such as name, type, size, and last update date.
Documents are returned as a flat list sorted by updated_at in descending order (most recent first).
At least one of the <code>updated_from</code> or <code>order_ids</code> filters must be provided.
<div class="api-description-extension"> <div class="extension-title">Call Frequency</div> <div class="recommended-call-frequency">Recommended usage: When you need to retrieve documents for orders</div> <div class="max-call-frequency">Maximum usage: When you need to retrieve documents for orders</div> <div class="extension-title">Pagination</div> <p>This resource supports seek pagination (<a href="#section/Seek-pagination-and-sort">see documentation</a>)</p> <div class="extension-title">Sort fields</div><code>sort</code> field can have the following values:<ul><li><b>updated_at</b> (Default) - Sort by document last update time (desc by default)</li></ul>
</div>Request
- Base URLhttps://miraklconnect.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Optional list of order identifiers in Mirakl Connect to filter documents. Mandatory if <code>updated_from</code> is not provided.
Filter by Connect document types
Filter by channel-specific document types.
Only applicable when one of the types is <code>CHANNEL_SPECIFIC</code>.
Select documents that were last updated in Mirakl Connect from the specified date time. Mandatory if <code>order_ids</code> is not provided.
Token to access a specific page of results
Maximum number of documents to return per page
Response
List of documents sorted by updated_at in descending order
Example response
{
"documents": [
{
"file_format": "application/pdf",
"id": "01JYGX5H2E9R4KQ7VN8WSMTB3C",
"name": "invoice_2024.pdf",
"size_in_bytes": 245680,
"type": "CUSTOMER_INVOICE",
"updated_at": "2024-10-15T14:30:00Z",
"order_id": "01JYGX2Z4V9KQ8RD3TCE5MHW7N"
}
]
}Changes
- warning
added the new
CHANNEL_SPECIFICenum value to the///////response property for the response status - warning
added the new
CUSTOMER_INVOICEenum value to the///////response property for the response status - warning
added the new
DELIVERY_SLIPenum value to the///////response property for the response status - warning
added the new
RETURN_LABELenum value to the///////response property for the response status - warning
added the new
SHIPMENT_DELIVERY_SLIPenum value to the///////response property for the response status
- warning