Viewing Recent Orders

Viewing Recent Orders

  • The last orders of the relevant restaurant are x-api-key, x-api-secret and x-api-consumer information. It can be withdrawn from https://ext.adisyo.com/api/External/v2/RecentOrders address.

  • The request should be sent with the GET method.

Parameters

Request Header Parameters

ParameterDescriptionType
x-api-keyAPI key of your accountstring
x-api-secretAPI Secret key of your accountstring
x-api-consumerIntegrator restaurant/company namestring

Required Parameters

ParameterDescriptionType
pageNumber of Pagesint
minimumIdMinimum Order Idint
minimumUpdateDateMinimum Update Datestring
statusStatus of the Orderstring

Limitations

When creating the request, you should consider the following restrictions.

  • Parameters minimumId and minimumUpdateDate should not be sent in the same request. If sent minimumUpdateDate is taken into account.
  • MinimumUpdateDate should not exceed 24 hours. If it is too much, the last 24 hours are taken into account.
  • Up to 100 order objects can be displayed in each response. If the TotalCount parameter is more than 100 in the displayed object, by changing the Page parameter, you can see the other orders on the next page.
  • You can view only takeaway and restaurant delivery orders.
  • If the status parameter is not sent, you can view the orders that have not been closed and canceled by default. When sending multiple statuses, you must separate them with a comma. (For example status=Ordered,OnDelivery). You can find order statuses here.
  • If the minimumId or minimumUpdateDate parameter is sent empty, you can view the orders in the last 24 hours.
Example Request
curl https://ext.adisyo.com/api/External/v2/RecentOrders
Example Response
{
   "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
}