海王星辰iPAAS对外通用接口

第三方对接 开放接口


5.4 获取门店列表(仅限O2O)

<p>[TOC]</p> <h3>5.4 获取门店列表(仅限O2O)</h3> <p>&gt; - Url路径:{appKey}/getBranch</p> <h4>5.4.1 接口请求模型</h4> <table> <thead> <tr> <th>参数代码      </th> <th>参数类型参数类型      </th> <th>参数长度</th> <th>代码标识说明</th> <th>是否非空</th> <th>说明                                  </th> </tr> </thead> <tbody> <tr> <td>isDelivery    </td> <td>int                  </td> <td>1        </td> <td>Y            </td> <td>Y        </td> <td>仅查询支持闪送(默认0:否,1:是)        </td> </tr> <tr> <td>customerInfos</td> <td>getBranchCustomerInfo</td> <td>         </td> <td>Y            </td> <td>         </td> <td>闪送目标地(当仅查询支持闪送为1时必传)</td> </tr> </tbody> </table> <p>getBranchCustomerInfo</p> <table> <thead> <tr> <th>参数代码  </th> <th>参数类型参数类型</th> <th>参数长度</th> <th>代码标识说明</th> <th>是否非空</th> <th>说明                          </th> </tr> </thead> <tbody> <tr> <td>longitude</td> <td>number          </td> <td>9,5      </td> <td>             </td> <td>         </td> <td>收件经度                      </td> </tr> <tr> <td>latitude  </td> <td>number          </td> <td>9,5      </td> <td>             </td> <td>         </td> <td>收件纬度                      </td> </tr> <tr> <td>mapType  </td> <td>int              </td> <td>1        </td> <td>Y            </td> <td>         </td> <td>经纬度类型(默认0:高德,1:百度)</td> </tr> </tbody> </table> <h4>5.4.2 接口返回模型</h4> <table> <thead> <tr> <th>参数代码</th> <th>参数类型参数类型    </th> <th>参数长度</th> <th>代码标识说明</th> <th>是否非空</th> <th>说明              </th> </tr> </thead> <tbody> <tr> <td>branchs  </td> <td>List&lt;getBranchModel&gt;</td> <td>         </td> <td>             </td> <td>Y        </td> <td>符合条件的门店列表</td> </tr> </tbody> </table> <p>getBranchModel                      </p> <table> <thead> <tr> <th>参数代码    </th> <th>参数类型参数类型</th> <th>参数长度</th> <th>代码标识说明</th> <th>是否非空</th> <th>说明                              </th> </tr> </thead> <tbody> <tr> <td>pharmacyCode</td> <td>string          </td> <td>4        </td> <td>             </td> <td>Y        </td> <td>门店号                            </td> </tr> <tr> <td>pharmacyName</td> <td>string          </td> <td>20      </td> <td>             </td> <td>Y        </td> <td>门店名称                          </td> </tr> <tr> <td>longitude    </td> <td>number          </td> <td>9,5      </td> <td>             </td> <td>         </td> <td>门店经度(高德坐标系)              </td> </tr> <tr> <td>latitude    </td> <td>number          </td> <td>9,5      </td> <td>             </td> <td>         </td> <td>门店纬度(高德坐标系)              </td> </tr> <tr> <td>polygons    </td> <td>string          </td> <td>500      </td> <td>             </td> <td>         </td> <td>门店闪送电子围栏                  </td> </tr> <tr> <td>onlineTime  </td> <td>string          </td> <td>11      </td> <td>             </td> <td>Y        </td> <td>门店营业时间(HH:mm-HH:mm)        </td> </tr> <tr> <td>isCenter    </td> <td>int              </td> <td>1        </td> <td>Y            </td> <td>Y        </td> <td>中心店标识(0:否,1:是)              </td> </tr> <tr> <td>isFull      </td> <td>int              </td> <td>1        </td> <td>Y            </td> <td>Y        </td> <td>24小时门店(0:否,1:是)              </td> </tr> <tr> <td>address      </td> <td>string          </td> <td>200      </td> <td>             </td> <td>         </td> <td>地点地址                          </td> </tr> <tr> <td>tel          </td> <td>string          </td> <td>20      </td> <td>             </td> <td>         </td> <td>地点电话                          </td> </tr> <tr> <td>status      </td> <td>int              </td> <td>1        </td> <td>Y            </td> <td>Y        </td> <td>地点状态(0:关闭 1:待填资料 2:开启)</td> </tr> <tr> <td>statusName  </td> <td>string          </td> <td>20      </td> <td>             </td> <td>         </td> <td>状态说明                          </td> </tr> <tr> <td>stateId      </td> <td>int              </td> <td>6        </td> <td>             </td> <td>         </td> <td>省份ID                            </td> </tr> <tr> <td>stateName    </td> <td>string          </td> <td>20      </td> <td>             </td> <td>         </td> <td>省份名称                          </td> </tr> <tr> <td>cityId      </td> <td>int              </td> <td>6        </td> <td>             </td> <td>         </td> <td>城市ID                            </td> </tr> <tr> <td>cityName    </td> <td>string          </td> <td>20      </td> <td>             </td> <td>         </td> <td>城市名称                          </td> </tr> <tr> <td>districtId  </td> <td>int              </td> <td>6        </td> <td>             </td> <td>         </td> <td>区县ID                            </td> </tr> <tr> <td>districtName</td> <td>string          </td> <td>20      </td> <td>             </td> <td>         </td> <td>区县名称                          </td> </tr> </tbody> </table> <h4>5.4.3 Demo:</h4> <p>Request:</p> <pre><code>{     &amp;quot;appKey&amp;quot;:&amp;quot;NepHealth&amp;quot;,     &amp;quot;nonce&amp;quot;:&amp;quot;Tdsad2saa2a&amp;quot;,     &amp;quot;timestamp&amp;quot;:1639119614,     &amp;quot;sign&amp;quot;:&amp;quot;a1f8f760de8edfe74b3b7bb9d9c51e4379abfbdb1&amp;quot;,     &amp;quot;input&amp;quot;:{         &amp;quot;isDelivery&amp;quot;:0     } }</code></pre> <p>Response:</p> <pre><code>{     &amp;quot;code&amp;quot;: 200,     &amp;quot;msg&amp;quot;: &amp;quot;ok&amp;quot;,     &amp;quot;nonce&amp;quot;: &amp;quot;Tdsad2saa2a&amp;quot;,     &amp;quot;output&amp;quot;: {         &amp;quot;branchs&amp;quot;: [{ ​             &amp;quot;isCenter&amp;quot;: 0, ​            &amp;quot;tel&amp;quot;: &amp;quot;0755-86575574&amp;quot;, ​            &amp;quot;stateId&amp;quot;: 98, ​            &amp;quot;cityId&amp;quot;: 903, ​            &amp;quot;pharmacyCode&amp;quot;: &amp;quot;SA79&amp;quot;, ​            &amp;quot;longitude&amp;quot;: 114.137994, ​            &amp;quot;latitude&amp;quot;: 22.624985, ​            &amp;quot;statusName&amp;quot;: &amp;quot;开启&amp;quot;, ​            &amp;quot;stateName&amp;quot;: &amp;quot;广东省&amp;quot;, ​            &amp;quot;cityName&amp;quot;: &amp;quot;深圳市&amp;quot;, ​            &amp;quot;districtId&amp;quot;: 2958, ​            &amp;quot;districtName&amp;quot;: &amp;quot;龙岗区&amp;quot;, ​            &amp;quot;polygons&amp;quot;: &amp;quot;114.167252 22.624933,114.166614 22.630543,114.164725 22.635907,114.16167 22.640791,114.159469 22.642448,114.156758 22.640693,114.153579 22.639344,114.149834 22.637506,114.147499 22.635447,114.141179 22.632055,114.13079 22.636099,114.122242 22.639913,114.114377 22.637939,114.111321 22.635907,114.109433 22.630543,114.108794 22.624933,114.109433 22.619324,114.111321 22.61396,114.114377 22.609075,114.118465 22.604883,114.123409 22.601568,114.128991 22.599274,114.134968 22.598101,114.141079 22.598101,114.147056 22.599274,114.152638 22.601568,114.157581 22.604883,114.16167 22.609075,114.164725 22.61396,114.166614 22.619324&amp;quot;, ​            &amp;quot;onlineTime&amp;quot;: &amp;quot;00:00-23:59&amp;quot;, ​            &amp;quot;address&amp;quot;: &amp;quot;深圳市龙岗区南湾街道南岭村社区布澜路7号岭宏健康家园9栋东兴街40、41&amp;quot;, ​            &amp;quot;isFull&amp;quot;: 1, ​            &amp;quot;pharmacyName&amp;quot;: &amp;quot;健康花城店&amp;quot;, ​            &amp;quot;status&amp;quot;: 2 ​      }] ​   } }</code></pre>

页面列表

ITEM_HTML