Export new orders
Find orders that have not been exported yet and mark them as exported after the receiving system confirms receipt.
Step 1: Search for unexported orders
Endpoint
POST /v2/orders/search?expands=ORDER_ITEMS,ADDRESSES
Request
{
"status": ["NEW"],
"exportStatuses": []
}
Response
{
"items": [
{
"id": 20106,
"uuid": "019d1f2a-6cbb-7590-9f18-bf40ce127ec4",
"status": "NEW",
"type": "dropshipment",
"email": "customer@example.com",
"currency": "EUR",
"language": "NL",
"date": "2026-03-24T09:26:07.333Z",
"postageData": {
"method": "DELIVERY",
"taxPercentage": 21,
"gross": 7.25,
"net": 5.99,
"tax": 1.26,
"partialDeliveryAllowed": "N",
"overruled": "N"
},
"paymentData": {
"net": 99.99,
"gross": 121.99,
"tax": 22,
"taxPercentage": 21,
"method": "rekening",
"status": "unknown",
"overruled": "N"
},
"total": {
"gross": 129.24,
"net": 105.98,
"tax": 23.26,
"discountValue": 0,
"discountType": "A"
},
"items": [
{
"productId": 408,
"sku": "#117",
"name": "voorbeeld artikel",
"quantity": 2,
"originalPrice": 49.99,
"price": 49.99,
"priceTotal": 99.98,
"taxPercentage": 21,
"taxCode": "H",
"id": 30539,
"orderId": 20106
}
],
"addresses": [
{
"type": "invoice",
"firstName": "Jan",
"lastName": "de Vries",
"company": "Voorbeeld B.V.",
"street": "Keizersgracht",
"number": "100",
"postalCode": "1015AA",
"city": "Amsterdam",
"country": "NL"
},
{
"type": "delivery",
"firstName": "Jan",
"lastName": "de Vries",
"company": "Voorbeeld B.V.",
"street": "Keizersgracht",
"number": "100",
"postalCode": "1015AA",
"city": "Amsterdam",
"country": "NL"
}
],
"userId": 174112,
"exportedAt": null,
"exportStatus": "",
"exportMessage": null
}
],
"itemsFound": 720,
"offset": 12,
"page": 1,
"pages": 60,
"start": 1,
"end": 12
}
Step 2: Mark the order as exported
After the receiving system has processed the order, update it with export metadata so it does not appear in the next export run.
Endpoint
PATCH /v2/orders/id/{id}
Request
PATCH /v2/orders/id/20106
{
"exportedAt": "2026-03-24T10:00:00.000Z",
"exportMessage": "ERP order id = 12355",
"exportStatus": "exported"
}
Response
{
"id": 20106,
"status": "NEW",
"exportedAt": "2026-03-24T10:00:00.000Z",
"exportStatus": "exported",
"exportMessage": "ERP order id = 12355"
}
How it works
The search filter exportStatuses: [] matches orders where no export status has been set. After you process each order, update it with exportStatus, exportedAt and exportMessage. The next search run will exclude these orders because they no longer have an empty export status. Use the expands query parameter to include order items and addresses in the search response so you get all the data you need in a single call.