Retrieve orders by criteria
Finds orders based on specified criteria, such as channel, account token, and various filters like sale date, status, and buyer details.
Query parameters
-
The name of the sales channel (e.g., eBay, Amazon).
Values are
ebay
,amazon
,walmart
,kaufland
, ortiktok
. -
A unique token identifying the account on the specified sales channel.
Body
Criteria for filtering and sorting orders.
POST /order/find/
curl \
-X POST https://m2e.cloud/api/v1/api/order/find/?channel=ebay&account_token=string \
-H "Content-Type: application/json" \
-d '{"sort":{"sale_date":"desc"},"_result":{"limit":{"count":10}},"filters":{"status":[1],"sale_date":{"from":"2020-12-01T15:30:50Z"}}}'
Request example
{
"sort": {
"sale_date": "desc"
},
"_result": {
"limit": {
"count": 10
}
},
"filters": {
"status": [
1
],
"sale_date": {
"from": "2020-12-01T15:30:50Z"
}
}
}
Response examples (200)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
{
"list": [
{
"token": "1529970e-7508-489f-8a79-281225ee330e",
"order_id": "113-00010001-0002002",
"source_order_id": "0002002",
"buyer_name": "Nadine Beebis",
"buyer_email": "nbeebis0@eventbrite.com",
"status": "completed",
"is_archived": false,
"sale_date": "2020-12-30T15:30:50Z",
"ship_date": "2020-12-31T10:20:00Z",
"ship_by_date": "2020-12-30T15:30:50Z",
"shipping_address": {
"name": "Nadine Beebis",
"phone": "318-395-7232",
"street_first": "7 Summerview Center",
"street_second": "PO Box 29079",
"city": "Sixi",
"state": "NY",
"postal_code": "976800",
"country_code": "US"
},
"country_code": "US",
"total": {
"total": 44.55,
"shipping": 5.55,
"subtotal": 40.0,
"tax": 0.55,
"discount": 1.0,
"currency": "USD"
},
"items": [
{
"title": "Wireless Bluetooth Headphones",
"sku": "WBH-12345",
"barcode": "012345678905",
"item_id": "item-5678",
"quantity": 2,
"price": 59.99,
"tracking_service": "UPS Ground",
"tracking_numbers": [
"1Z9999999999999999"
]
}
]
}
],
"total": 1
}
Response examples (400)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (404)
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (401)
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (429)
# Headers
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 90
X-RateLimit-Retry-After: 2022-11-04T13:43:28Z
# Payload
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]
Response examples (500)
[
{
"code": 404,
"message": "Not found.",
"data": {}
}
]