- Mirakl Platform
- Rest Front APIs
- OR13 - Export orders asynchronously
The API returns a tracking id to be used to query API OR14.
Mirakl recommends to use API OR13 instead of API OR11 as it can handle very large volumes of data.
You must give at least one date range filter: created, last updated date or refunds created date.
API OR13 supports the chunk of the export file into multiple files in order to:
- respect a maximum megabyte weight using the
megabytes_per_chunkparameter. - respect a maximum amount of exported items using the
items_per_chunkparameter.
- Differential: every 15 minutes
- Differential: every 5 minutes
- Full: every 24 hours
This resource supports locale parameter (see documentation)
Localized output fields will be highlighted with an icon:
End refund creation date to filter on orders with at least one refund created before this date. Must be used with start_refund_creation_date, and cannot be later than a month after start_refund_creation_date.
End order update date for filtering. Must be used with start_update_date.
Maximum number of items included in the generated files
Maximum mega bytes weight for generated files
Return only orders without channel. If true, ignore the channel_codes
Please note: If the taxes are not specified, the prices with mode TAX_EXCLUDED and with mode TAX_INCLUDED will return the same amounts.
Possible values:
TAX_EXCLUDED: the price fields (price, unit price, shipping price, cancellation amount, refund amount and order total prices) do not include taxes.TAX_INCLUDED: the price fields include the tax amount.
Enum: "TAX_INCLUDED", "TAX_EXCLUDED"
Filter on the refund state To be used in combination with filters start_update_date and end_update_date, with a maximum of one month period.
Start refund creation date to filter on orders with at least one refund created after this date. Must be used with end_refund_creation_date.
Start order update date for filtering. Mirakl will subtract a time delta to ensure no orders are missed due to network and/or software latency. Must be used with end_update_date.
If true returns only orders for which taxes must be recalculated on at least one order line. When false it does not impact the result. Must be used with at least one date range filter: created or last updated date, of a maximum duration of one month.
If true returns only orders awaiting a funding update. When false it does not impact the result.
- URL to be replaced by your Mirakl instance URLhttps://your-instance.mirakl.net/api/orders/async-export
curl -i -X POST \
https://your-instance.mirakl.net/api/orders/async-export \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"channel_codes": [
"US"
],
"end_date": "2022-01-31T00:00:00.000Z",
"end_update_date": "2022-09-19T14:58:22.460Z",
"fulfillment_center_codes": "fulfillment_center_codes_001",
"items_per_chunk": 10000,
"megabytes_per_chunk": 100,
"only_null_channel": false,
"order_state_codes": [
"WAITING_ACCEPTANCE",
"SHIPPING"
],
"order_tax_mode": "TAX_INCLUDED",
"refund_state_codes": [
"WAITING_REFUND"
],
"shop_ids": [
2310
],
"start_date": "2022-01-01T00:00:00.000Z",
"start_update_date": "2022-08-20T14:58:22.460Z",
"tax_recalculation_required_only": true,
"waiting_funding_confirmation": false,
"waiting_tax_confirmation": false
}'