Skip to main content

Papa John's

Placing an order

TBD

Tracking an order

After placing an order through the Papa John's website, you will be redirected to an order confirmation page. An example URL for the order confirmation page is https://www.papajohns.co.uk/order-confirmation.aspx?OrderID=50009189&StoreID=603.

Screenshot_2021-05-17 Pizza Delivery Order Quality Pizza Online With Papa John's.png

Loading this page requires a set of request headers in order to load. These are listed below.

Show headers
GET /order-confirmation.aspx?OrderID=50009189&StoreID=603 HTTP/2
Host: www.papajohns.co.uk
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://www.papajohns.co.uk/stores/gloucester-hucclecote/checkout.aspx
Upgrade-Insecure-Requests: 1
Connection: keep-alive
Cookie: apay-session-set=Bl3nCyAOX%2FBVfTmEkUfBgoSmTcEw%2FJUs9LxmbtoyiOMR7BAh0AMIODSgZePNAmQ%3D; DismissCookieBanner=Yes; asuid=10780892; asuidHash=873B200E6B6D0A562D310F1B0092F0017845E09A; ABTasty=uid=dp5mvcj0p5p9jra5&fst=1616532916411&pst=1617991107615&cst=1621278139332&ns=3&pvt=83&pvis=15&th=509902.638027.6.6.1.1.1616533120187.1621278479723.1_642258.0.83.15.3.1.1616532918396.1621279878514.1_669083.829517.83.15.3.1.1616532916421.1621279877178.1_683095.847193.10.10.1.1.1616532916424.1621278423046.1_686078.-1.3.3.1.1.1621278151995.1621278423048.1; _gcl_au=1.1.1851597768.1616532918; _tq_id.TV-81185418-1.0dc4=2a7edf482385ca8b.1616532919.0.1621279879..; _ga=GA1.3.1237940931.1616532919; _hjid=112f0ff1-0101-4755-9d3b-ea21e193f987; _scid=09fe78da-41b7-4003-8c2f-6889bdf84a61; _fbp=fb.2.1616532920373.1093171843; user_transaction_ids=48334663,48881284,50009189; ak_bmsc=AFBDE736E8663562FD3ED51F00076DF05C7A36301C6F0000BABDA260FF513970~plafu8kPFJ6G/cFEHUsNPVBhEyLhaaOVZVaK76PrO/y5uHmShjLSedgFWe9U7eMy9gnHH6kZAS/ZYPcxI26vUqNlXvZy7RKOeUyYW7uD/tQraWH5+EuYSZH4xaujGtMvNmLlfpAAD+KwrFSsxaDhN/364f2SPHTV4pti4uZ8LEzkWeArAsIFv3X7dSd0/eDZQlr+LEU92GIGJys86toAFj8986fJfDIe6ZjrERK3dAWbvb4CKsW5imAIBkqE+LZztq; akavpau_www_papajohns_co_uk=1621280182~id=6cb323d81a232e42d7039d2701b5ddc9; ASP.NET_SessionId=wjhyilcrs42fd1vnt30zputb; AKA_A2=A; ABTastySession=mrasn=&lp=https%253A%252F%252Fwww.papajohns.co.uk%252F&sen=51; redwp=_; _gid=GA1.3.1029724204.1621278142; _hjIncludedInSessionSample=1; _hjTLDTest=1; RT="dm=papajohns.co.uk&si=06vr58e10r06&ss=1621278138296&sl=18&tt=37690&obo=0&sh=1621279878416%3D18%3A0%3A37690%2C1621278655905%3D17%3A0%3A35554%2C1621278554228%3D16%3A0%3A34251%2C1621278540025%3D15%3A0%3A33661%2C1621278525560%3D14%3A0%3A32576&rl=1&ld=1621279878416&r=https%3A%2F%2Fwww.papajohns.co.uk%2Forder-confirmation.aspx%3Fa9cff004ae9f6c0b5e7ea854acce19d7&ul=1621280290417"; bm_sv=E3B35A190C079033739A55312C0F6295~fjerq20nn9hVdRaqkx3GM97GwgamrOYzPqBSYjVEEMQBRxNnEVF+kK43KOAXD7pNMBlACbzsJR1ALQrCoX6QdoweXoNwn/3q9X1xEJt/KVXvH74DtyizJm6M1kV1B8tjbWeNv2Tb9O4HoJ6Ltf00WniXXThER58ZIbDEdWfuRYg=; SearchedPostcode=GL4 4DX; DelCol=Del; sid=603; language=en_GB; amazon-pay-connectedAuth=connectedAuth_general; oTrack=,50009189,; SL_C_23361dd035530_VID=qcHRHhZ4fMA; SL_C_23361dd035530_KEY=a1db90e2e7c3721df05d3bb9da4822e8acabe541; SL_C_23361dd035530_SID=Pv8s1UyuAx; _uetsid=687394d0b74211ebbd174720482c0e5a; _uetvid=6873c7f0b74211eb9221096978a1f758
Cache-Control: max-age=0

At the top of the page is a "LAUNCH TRACKER" banner/button, whose link contains a UUID. The URL can safely be extracted using .orderTrackerLink a as a query selector.

Screenshot 2021-05-17 at 21.52.33.png

This page looks a little something like this:

Screenshot_2021-05-17 Track Your Order - Papa John's Pizza Delivery Takeaway Order Quality Pizza.png

You can use the UUID extracted from this URL to query Papa John's backend. The backend URL is https://papajohns-ordertracker-live.azurewebsites.net/api/ordertracker/<UUID>. GET requests to this URL are unauthenticated and return a JSON response that looks a little like this:

{
  "id": "7f22ab7c-7793-4505-ac20-6df7889a5ee8",
  "orderId": 50009189,
  "orderTime": "20:08",
  "orderType": 2,
  "paymentType": "PayPal",
  "storeName": "Gloucester - Hucclecote",
  "storePhone": "01452 616165",
  "statusId": 25,
  "tipJarUrl": "",
  "lastUpdated": "20:09",
  "errorMessage": null
}

The statusId field represents the status of the order. There are five status IDs in total. It is unclear why these specific IDs have been chosen, and I'm not certain that they'll remain this way forever... The ones I found are enumerated in the table below:

Status ID Description
25 Order accepted
5 In the oven
20 Pizza peer review (-:
6 On the road
8 Supposedly delivered