Skip to content

Instantly share code, notes, and snippets.

@gabeodess
Forked from casconed/gist:fecca5a6800decc0a1a5
Last active February 18, 2016 17:16
Show Gist options
  • Save gabeodess/b7356ca342c07e90bddd to your computer and use it in GitHub Desktop.
Save gabeodess/b7356ca342c07e90bddd to your computer and use it in GitHub Desktop.
Domino's API
find: https://order.dominos.com/power/store-locator?s=${line1}&c=${line2}&type=${type}
method: GET
s: Street Address
c: City, State and/or Postal Code
type: Delivery or Carryout
store info: https://order.dominos.com/power/store/${storeID}/profile
method: GET
storeId: store id number
store menu: https://order.dominos.com/power/store/${storeID}/menu?lang=${lang}&structured=true
method: GET
storeId: store id number
lang: lanuage (en/fr/es)
validate: https://order.dominos.com/power/validate-order
method: POST
submit order object for validation
price: https://order.dominos.com/power/price-order
method: POST
submit order for pricing
place order: https://order.dominos.com/power/place-order
method: POST
submit order for delivery/carryout
track order: https://trkweb.dominos.com/orderstorage/GetTrackerData?StoreID={$storeID}&OrderKey=${orderKey}
method: GET
storeId: storeId from order
orderKey: order number returned from place-order
sample order object:
{
"Order": {
"Address": {
"Street": "7346 TRASK AVE",
"City": "PLAYA DEL REY",
"Region": "CA",
"PostalCode": "90293-8069",
"Type": "House",
"StreetName": "TRASK AVE"
},
"Coupons": [],
"CustomerID": "",
"Email": "",
"Extension": "",
"FirstName": "",
"FutureOrderTime": "2016-02-02 12:45:00",
"LastName": "",
"LanguageCode": "en",
"OrderChannel": "OLO",
"OrderID": "",
"OrderMethod": "Web",
"OrderTaker": null,
"Payments": [],
"Phone": "",
"PhonePrefix": "",
"Products": [{
"Code": "P14IRECZ",
"Qty": 1,
"ID": 1,
"isNew": true,
"Options": {
"C": {
"1/1": "1"
},
"E": {
"1/1": "1"
},
"Fe": {
"1/1": "1"
},
"Cs": {
"1/1": "1"
},
"Cp": {
"1/1": "1"
},
"X": {
"1/1": "1"
}
}
}],
"ServiceMethod": "Carryout",
"SourceOrganizationURI": "order.dominos.com",
"StoreID": "8224",
"Tags": {},
"Version": "1.0",
"NoCombine": true,
"Partners": {},
"OrderInfoCollection": []
}
}
Order: {Address: {Street: "93 MONITOR ST # 3", StreetName: "MONITOR ST", UnitNumber: "3", UnitType: "#",…},…}
Address: {Street: "93 MONITOR ST # 3", StreetName: "MONITOR ST", UnitNumber: "3", UnitType: "#",…}
City: "BROOKLYN"
PostalCode: "11222-4740"
Region: "NY"
Street: "93 MONITOR ST # 3"
StreetName: "MONITOR ST"
Type: "Apartment"
UnitNumber: "3"
UnitType: "#"
Coupons: []
CustomerID: ""
Email: "gabeodess@gmail.com"
Extension: ""
FirstName: "Gabriel"
LanguageCode: "en"
LastName: "Odess-Gillett"
NewUser: false
NoCombine: true
OrderChannel: "OLO"
OrderID: "SM4bVUP1sQZFH4LLaAbO"
OrderInfoCollection: []
OrderMethod: "Web"
OrderTaker: null
Partners: {}
Payments: [,…]
0: {Type: "CreditCard", Amount: 20.13, Number: "xxxxxxxxxxxxxxxx", CardType: "VISA", Expiration: "0319",…}
Amount: 20.13
CardType: "VISA"
Expiration: "0319"
Number: "xxxxxxxxxxxxxxxx"
PostalCode: "11222"
SecurityCode: "xxx"
Type: "CreditCard"
Phone: "4132484223"
PhonePrefix: ""
Products: [{Code: "P12IPAPV", Qty: 1, ID: 1, isNew: false,…}]
0: {Code: "P12IPAPV", Qty: 1, ID: 1, isNew: false,…}
Code: "P12IPAPV"
ID: 1
Options: {C: {1/1: "1"}, Fe: {1/1: "1"}, Cs: {1/1: "1"}, Cp: {1/1: "1"}, R: {1/1: "1"}, M: {1/1: "1"},…}
C: {1/1: "1"}
Cp: {1/1: "1"}
Cs: {1/1: "1"}
Fe: {1/1: "1"}
M: {1/1: "1"}
O: {1/1: "1"}
R: {1/1: "1"}
Rr: {1/1: "1"}
Si: {1/1: "1"}
Td: {1/1: "1"}
X: {1/1: "1"}
Qty: 1
isNew: false
ServiceMethod: "Delivery"
SourceOrganizationURI: "order.dominos.com"
StoreID: "3679"
Tags: {}
Version: "1.0"
metaData: {}
{"Order":{"Address":{"Street":"93 MONITOR ST # 3","StreetName":"MONITOR ST","UnitNumber":"3","UnitType":"#","City":"BROOKLYN","Region":"NY","PostalCode":"11222-4740","Type":"Apartment"},"Coupons":[],"CustomerID":"","Email":"gabeodess@gmail.com","Extension":"","FirstName":"Gabriel","LastName":"Odess-Gillett","LanguageCode":"en","OrderChannel":"OLO","OrderID":"ptTYN5KjUwugxXLIj8G_","OrderMethod":"Web","OrderTaker":null,"Payments":[],"Phone":"4132484223","PhonePrefix":"","Products":[{"Code":"12SCREEN","Qty":1,"ID":1,"isNew":false,"Options":{"C":{"1/1":"1"},"X":{"1/1":"1"}}}],"ServiceMethod":"Delivery","SourceOrganizationURI":"order.dominos.com","StoreID":"3679","Tags":{},"Version":"1.0","NoCombine":true,"Partners":{},"OrderInfoCollection":[]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment