1、新建应用->企业应用
![1.png](https://www.99make.com/attachment/images/0/2019/09/oXqBCCBEWZGekYRrv8cR6EYWr1e6YE.png)
![2.png](https://www.99make.com/attachment/images/0/2019/09/bPgTNXXdQoxS8yNxTR0sSgdtPvee8z.png)
应用权限选择:订单服务、信息服务、店铺服务、商户服务
![3.png](https://www.99make.com/attachment/images/0/2019/09/W86WPe86zprxuxJ2J3x74363E64X73.png)
2、饿了么设置
(1)沙箱环境配置
![4.png](https://www.99make.com/attachment/images/0/2019/09/o8Tv5Uq78eE55e5EvC5eb7EEUUJJzj.png)
![微信截图_20190926100411.png](https://www.99make.com/attachment/images/0/2019/09/gpWz2uI4Rk4ParM24K47RKCcArwfCf.png)
推送消息必须选择:type=10、type=12、type=14、type=15、type=17、type=18、type=20、type=21、type=22、type=23
将饿了么商家开发平台的应用的沙箱环境的Key、Secret填写到跑腿后台,将跑腿后台的回调地址URL、推送URL填写到沙箱环境中(如图)
![5-2.png](https://www.99make.com/attachment/images/0/2019/09/Gj0ZEv27r2C2JeHLX7b66yktEmbGbb.png)
对应的大客户中,填写对应的饿了么店铺ID
![微信截图_20191010121050.png](https://www.99make.com/attachment/images/0/2019/10/yll5OdozeLsva20coA1E5aAALlACEL.png)
获取饿了么店铺ID
![微信截图_20190926095254.png](https://www.99make.com/attachment/images/0/2019/09/BWHUM4o33PB42HnN3Bo422hnbndZ23.png)
授权沙箱环境测试店铺
![微信截图_20191010115033.png](https://www.99make.com/attachment/images/0/2019/10/WoxjbGjUU2zEr1EX2O5bG5NoWU2g9G.png)
输入饿了么店铺的账号密码
![微信截图_20190926105802.png](https://www.99make.com/attachment/images/0/2019/09/lLp92lc1vMWKF28Z8v6CJ2x6kVI69i.png)
(2)正式环境上线审核
沙箱环境测试正常后,上线审核正式环境
![微信截图_20190925102435.png](https://www.99make.com/attachment/images/0/2019/09/K911fmw4S9MGsg881883x8MG78weRs.png)
![微信截图_20190925102512.png](https://www.99make.com/attachment/images/0/2019/09/WUuo8bYUkjWaSuOz6OBc8bVvNqO8kN.png)
![微信截图_20190925102645.png](https://www.99make.com/attachment/images/0/2019/09/w9HVTFh5VK93Ws9sfht8IRkk9V3Th9.png)
将正式环境的Key、Secret填写到跑腿后台,将跑腿后台的推送URL、回调地址URL填写到正式环境,开启跑腿后台的正式环境
![5-2.png](https://www.99make.com/attachment/images/0/2019/09/Gj0ZEv27r2C2JeHLX7b66yktEmbGbb.png)
3、饿了么店铺授权
应用授权->正式环境授权->复制授权链接打开浏览器->登录饿了么店铺(商家账号/密码)->饿了么商家授权
![微信截图_20191010115033.png](https://www.99make.com/attachment/images/0/2019/10/WoxjbGjUU2zEr1EX2O5bG5NoWU2g9G.png)
输入饿了么店铺的账号密码进行授权绑定
![8.png](https://www.99make.com/attachment/images/0/2019/09/uzBP72y1N1jItiQG4Y1mYIGSys1bFi.png)
4、饿了么店铺授权过期重新授权
![微信截图_20191010115614.png](https://www.99make.com/attachment/images/0/2019/10/E0eVESJGJXErzXk8eXgvwQkMmgg83x.png)![8.png](https://www.99make.com/attachment/images/0/2019/09/uzBP72y1N1jItiQG4Y1mYIGSys1bFi.png)
输入饿了么店铺的账号密码进行授权绑定
注意:沙箱环境有效期为1天,正式环境有效期为30天,过期后需重新授权