OR11 - List Orders
OR11 - List Orders
When available, refunds will be returned within the refunds object under orders.order_lines.refunds
GET
https://saksus2-dev.mirakl.net/api/orders
Query Parameters
- order_idsstringDescription
- order_references_for_customerstringDescription
- order_references_for_sellerstringDescription
- order_state_codesstringDescription
- channel_codesstringDescription
- only_null_channelBooleanDescription
- start_datestringDescription
- end_datestringDescription
- start_update_datestringDescription
- end_update_datestringDescription
- paginateBooleanDescription
- customer_debitedBooleanDescription
- payment_workflowstringDescription
- has_incidentBooleanDescription
- fulfillment_center_codeArrayDescription
- order_tax_modestringDescription
- shop_idIntegerDescription
Header Parameters
- Authorizationstringrequired
curl
curl --location --request GET 'https://saksus2-dev.mirakl.net/api/orders?order_ids=string&order_references_for_customer=string&order_references_for_seller=string&order_state_codes=string&channel_codes=string&only_null_channel=Boolean&start_date=string&end_date=string&start_update_date=string&end_update_date=string&paginate=Boolean&customer_debited=Boolean&payment_workflow=string&has_incident=Boolean&fulfillment_center_code=Array&order_tax_mode=string&shop_id=Integer' \
--header 'Accept: application/json' \
--header 'Authorization: string'nodejs
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://saksus2-dev.mirakl.net/api/orders?order_ids=string&order_references_for_customer=string&order_references_for_seller=string&order_state_codes=string&channel_codes=string&only_null_channel=Boolean&start_date=string&end_date=string&start_update_date=string&end_update_date=string&paginate=Boolean&customer_debited=Boolean&payment_workflow=string&has_incident=Boolean&fulfillment_center_code=Array&order_tax_mode=string&shop_id=Integer',
'headers': {
'Accept': 'application/json',
'Authorization': 'string'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://saksus2-dev.mirakl.net/api/orders?order_ids=string&order_references_for_customer=string&order_references_for_seller=string&order_state_codes=string&channel_codes=string&only_null_channel=Boolean&start_date=string&end_date=string&start_update_date=string&end_update_date=string&paginate=Boolean&customer_debited=Boolean&payment_workflow=string&has_incident=Boolean&fulfillment_center_code=Array&order_tax_mode=string&shop_id=Integer", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));python
import requests
url = "https://saksus2-dev.mirakl.net/api/orders?order_ids=string&order_references_for_customer=string&order_references_for_seller=string&order_state_codes=string&channel_codes=string&only_null_channel=Boolean&start_date=string&end_date=string&start_update_date=string&end_update_date=string&paginate=Boolean&customer_debited=Boolean&payment_workflow=string&has_incident=Boolean&fulfillment_center_code=Array&order_tax_mode=string&shop_id=Integer"
payload={}
headers = {
'Accept': 'application/json',
'Authorization': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
ruby
require "uri"
require "net/http"
url = URI("https://saksus2-dev.mirakl.net/api/orders?order_ids=string&order_references_for_customer=string&order_references_for_seller=string&order_state_codes=string&channel_codes=string&only_null_channel=Boolean&start_date=string&end_date=string&start_update_date=string&end_update_date=string&paginate=Boolean&customer_debited=Boolean&payment_workflow=string&has_incident=Boolean&fulfillment_center_code=Array&order_tax_mode=string&shop_id=Integer")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Authorization"] = "string"
response = https.request(request)
puts response.read_body
200
CALL FREQUENCIES
Recommended: - Asynchronous: every 5 minutes - Synchronous: at each order page display Maximum: - Asynchronous: once per minute - Synchronous: at each order page display
PAGINATION
This resource supports offset pagination.
SORT FIELDS
Sort field can have the following values: dateCreated (Default) - Sort by creation date, and then by order identifier (asc by default)
LOCALIZATION
This resource supports locale parameter (see documentation). Localized output fields will be highlighted with a flag icon.