Appy Pie Food Court Order Listing API - Food Delivery API Docs

Order Listing

Order Listing API allows you to gain access to all the Order Listing details that exist in the Food Court feature. Using this API, you can obtain the order details including vendor details, product details, delivery boy details, shipping details, etc. in the response which you can use for tracking and other purposes.

Note: You can refer to the sample code provided on the right side of the screen and switch to your preferred language.

Order Listing API returns the order listing details for the specified App ID. To access this endpoint, login/signup to Appy Pie Developer account and obtain the required AccessToken key from the Authentication section. 

Below is the request URL and the Method is POST:

POST https://api.appexecutable.com/V4/webservices/FoodCourtApi.php

Parameter NameRequiredParameter TypeParameter Description
methodYesStringMethod foodOrderLisitingApi is pre-defined.
appIdYesStringApplication ID identifies a specific application on Appy Pie’s platform. You can obtain appID/BID from Appy Pie’s backend.
pageNoYesIntThe number of result pages to be displayed in the response. Input only number.
langYesStringLanguage
Required Parameters are mandatory to access the API endpoint.

Errors

This error section displays all the errors with details.

Following are the error codes that indicate the success or failure of an API request:

Error CodeMeaning
400Bad Request -- Your request is invalid.
401Unauthorized -- Your API key is wrong.
403Forbidden -- The method requested is hidden for administrators only.
404Not Found -- The specified method could not be found.
405Method Not Allowed -- You tried to access a method with an invalid method.
406Not Acceptable -- You requested a format that is not json.
410Gone -- Request has been removed from our servers.
429Too Many Requests
500Internal Server Error -- We had a problem with our server. Try again later.
503Service Unavailable -- We are temporarily offline for maintenance. Please try again later.
To authorize, use this code:

1wget --no-check-certificate --quiet \
2	--method POST \
3	--timeout=0 \
4	--header "ACCESSTOKEN: Access Token Key" \
5	--header "Content-Type: application/json" \
6	--body-data
7	'{
8		"method": "foodOrderLisitingApi",
9		"appId": "367eccf0391d",
10		"pageNo": "8",
11		"lang": "pt"
12	 }' \
13	"https://api.appexecutable.com/V4/webservices/FoodCourtApi.php"

RESPONSE

{
  "orderList": [
    {
      "vendorName": null,
      "vendorLat": null,
      "vendorLong": null,
      "vendoraddress": null,
      "vendorImg": {
        "name": "https://openapi-imag-dev-20190924124841-deployment.s3.amazonaws.com/media/user_space/367eccf0391d/defaultimage_2400_367eccf0391d.jpg",
        "main_image": 1,
        "type": "image"
      },
      "deliveryboyName": "",
      "noOfProducts": 1,
      "productDetails": [
        {
          "pname": "Test",
          "qty": "6",
          "custom_option": ""
        }
      ],
      "appId": "367eccf0391d",
      "orderId": "AP28703834773",
      "transactionId": "",
      "orderDate": "Apr-16-2020 13:33",
      "orderLastUpdateDate": "Apr-16-2020 13:34",
      "currency": "USD",
      "paymentMethod": "Pagamento na Entrega",
      "status": "Cancelled",
      "pickupComment": "",
      "orderType": "delivery",
      "is_date_flag": true,
      "deliveryPickupTime": "Apr-16-2020 14:19",
      "subtotal": 180,
      "gtotal": "2000.00",
      "delivery": 0,
      "tax": 0,
      "tip": 0,
      "discount": 0,
      "vendorDiscount": "",
      "coupon": 0,
      "misctax": [],
      "trackingDate": "",
      "trackingCarrier": "",
      "trackingNumber": "",
      "trackUrl": "",
      "vendorId": "28703",
      "pubnubChanel": "",
      "waiterLising": {
        "deviceType": "android",
        "deviceToken": "fZfTN32m9Kw:APA91bE1odl2gSwZK_wm9WeUFc-qlbBIOaFx6AdNezynXyE3CFVFp096J1FknLa_0bM5IPhCeKUlGiAdWJ3WeuDyeWmiE4VS_RYlDbWvxtdLdRX4iSBVPotYTFXxeIYexD8ONUYHc0E8",
        "deviceId": "03da9f1ce57c54a4367eccf0391d",
        "cust_lat": "28.5898353",
        "cust_long": "77.3089147"
      },
      "userDataLising": {
        "deviceType": "android",
        "deviceToken": "fZfTN32m9Kw:APA91bE1odl2gSwZK_wm9WeUFc-qlbBIOaFx6AdNezynXyE3CFVFp096J1FknLa_0bM5IPhCeKUlGiAdWJ3WeuDyeWmiE4VS_RYlDbWvxtdLdRX4iSBVPotYTFXxeIYexD8ONUYHc0E8",
        "deviceId": "03da9f1ce57c54a4367eccf0391d",
        "cust_lat": "28.5898353",
        "cust_long": "77.3089147"
      },
      "billing": {
        "name": "Test",
        "address": "billing address",
        "phone": "99xxxxxx99",
        "city": "",
        "state": "",
        "country": "",
        "zip": "",
        "pluscode": ""
      },
      "shipping": {
        "name": "Test",
        "address": "shipping address",
        "phone": "99xxxxxx99",
        "city": "",
        "state": "",
        "country": "",
        "zip": "",
        "pluscode": ""
      },
      "comments_if_cancel": "order cancelled"
    }
  ],
  "chatRoom": {
    "28703": {
      "storecontactus": {
        "contactus_chat": "",
        "contactus_phone": "+9199xxxxxx99"
      }
    }
  },
  "totalPage": 8,
  "status": "success"
}