Recent Orders
GET /RecentOrders
Used to list the restaurant's orders in Adisyo.
You can retrieve orders that are greater than a specific order ID or orders after a specific date in bulk.
Example Request
Recent orders
curl -X GET "https://ext.adisyo.com/api/External/v2/RecentOrders?onlyRestaurantCourier=true&orderType=TakeAway,Table" \
--header "x-api-key: ..." \
--header "x-api-secret: ..." \
--header "x-api-consumer: ..."Request Parameters
You can send the following parameters as
query string
| Parameter | Data Type | Description |
|---|---|---|
page | Number? | Current page |
minimumId | Number? | Minimum order ID |
minimumUpdateDate | Date? ISO 8601 | Minimum update date |
status | String (Comma-separated, multiple) | Order statuses |
onlyRestaurantCourier | Boolean? | Filters for package orders delivered by restaurant courier. If true and orderType includes TakeAway, only TakeAway orders delivered by restaurant courier are returned. |
orderType | String? (Comma-separated, multiple) | Default "TakeAway". Comma-separated order types. Possible values: TakeAway, Table, Retail. To send multiple types, separate by comma (e.g., orderType=TakeAway,Table). |
Constraints
The following constraints must be considered when creating the request
minimumIdandminimumUpdateDateshould not be sent in the same request. If sent,minimumUpdateDateis taken into account.MinimumUpdateDateshould not be more than 24 hours. If it is more, the last 24 hours are taken into account.- A maximum of 100 order objects can be displayed in each response. If the
TotalCountparameter in the displayed object is more than 100, you can see other orders on the next page by changing thePageparameter. - You can only view package orders and orders delivered with restaurant courier.
- If the
statusparameter is not sent, you can view unclosed and non-cancelled orders by default. When sending multiple statuses, you should separate them with commas (For examplestatus=Ordered,OnDelivery). You can access Order statuses from here. - If the
minimumIdorminimumUpdateDateparameter is sent empty, orders within the last 24 hours are displayed. - If the
onlyRestaurantCourierparameter is not provided,trueis used by default. - If the
orderTypeparameter is not provided, "TakeAway" is used by default.
Example Response
Recent orders
{
"data": [
{
"id": 163105139,
"waiterName": "Anil",
"deliveryUserName": "Emre Akkaya",
"externalAppName": "YemekSepeti",
"restaurantName": null,
"orderTotal": 74.90,
"paymentMethodName": "Nakit",
"paymentMethodId": 1,
"deliveryTime": "2023-09-03T16:16:16.617",
"discountAmount": 0.00,
"currency": "TRY",
"orderNote": "",
"externalAppId": "9710581620",
"salesChannelId": 19174,
"salesChannelName": "Ana Kanal",
"statusId": 5,
"status": "Teslimatta",
"orderCancelReason": null,
"tableName": null,
"orderNumber": 261,
"taxAmount": 5.55,
"insertDate": "2023-09-03T16:07:37.403",
"updateDate": "2023-09-03T16:52:30.787",
"customerId": 18692782,
"customerLatitude": null,
"customerLongitude": null,
"confirmationCode": "374877476",
"integrationRestaurantName": "X Hatay Döner",
"addressId": 37222914,
"isScheduledOrder": false,
"scheduledTime": null,
"deliveryType": 2,
"restaurantKey": 29207,
"externalAppKey": 1435,
"customer": {
"customerName": "Rabia A.",
"customerSurname": null,
"customerEmail": null,
"customerId": 18692782,
"customerPhone": "5351532323",
"customerPhone2": null,
"address": "190 Kayalar No:14 daire no:10 kat:2",
"addressDescription": "10",
"region": "İnönü Bağcılar",
"addressHeader": "YemekSepeti",
"city": null,
"company": null,
"phoneCode": null,
"addressId": 0,
"isDefault": null
},
"products": [
{
"id": 592526451,
"orderId": 163105139,
"productUnitId": 4643308,
"quantity": 1.000,
"unitPrice": 74.90,
"productName": "Hatay Usulü Tavuk Döner Dürüm",
"productNote": null,
"productCode": null,
"isMenu": false,
"parentId": null,
"cost": 0.0,
"totalAmount": 74.90,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2023-09-03T16:07:37.447",
"description": "60 gr.",
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [],
"features": []
}
],
"payments": []
},
{
"id": 624513916,
"waiterName": "Anil",
"deliveryUserName": "ENGIN",
"externalAppName": "YemekSepeti",
"restaurantName": null,
"orderTotal": 105.90,
"paymentMethodName": "Nakit",
"paymentMethodId": 1,
"deliveryTime": "2023-09-03T16:32:06.65",
"discountAmount": 0.00,
"currency": "TRY",
"orderNote": "Servis (plastik çatal, peçete vs.) İSTEMİYORUM.",
"externalAppId": "1620974153",
"salesChannelId": 19174,
"salesChannelName": "Ana Kanal",
"statusId": 5,
"status": "Teslimatta",
"orderCancelReason": null,
"tableName": null,
"orderNumber": 274,
"taxAmount": 1.05,
"insertDate": "2023-09-03T16:18:26.137",
"updateDate": "2023-09-03T16:52:30.833",
"customerId": 48669150,
"customerLatitude": null,
"customerLongitude": null,
"confirmationCode": "374891111",
"integrationRestaurantName": "Mogaf Hatay Döner",
"addressId": 22914806,
"isScheduledOrder": false,
"scheduledTime": null,
"deliveryType": 2,
"restaurantKey": 29207,
"externalAppKey": 1435,
"customer": {
"customerName": "Hamza V.",
"customerSurname": null,
"customerEmail": null,
"customerId": 48669150,
"customerPhone": "5540195012",
"customerPhone2": null,
"address": "Gecit Sk. no:14 daire no:27 kat:6",
"addressDescription": "A101 marketin asagisindaki sari bina;",
"region": "Güneşli Bağcılar",
"addressHeader": "YemekSepeti",
"city": null,
"company": null,
"phoneCode": null,
"addressId": 0,
"isDefault": null
},
"products": [
{
"id": 331451603,
"orderId": 624513916,
"productUnitId": 1230286,
"quantity": 1.000,
"unitPrice": 105.90,
"productName": "Zurna Tavuk Döner Dürüm",
"productNote": null,
"productCode": null,
"isMenu": false,
"parentId": null,
"cost": 0.0,
"totalAmount": 105.90,
"groupName": null,
"groupId": 0,
"discountAmount": 0.00,
"insertDate": "2023-09-03T16:18:26.163",
"description": "Çift Lavaş|90 gr.",
"cancelReason": null,
"excludedComposites": null,
"excludedItems": [],
"features": []
}
],
"payments": []
}
],
"totalCount": 2,
"pageCount": 1,
"status": 100,
"message": null
}