API接口目录

平台业务

商品API
价格API
库存API
销售准备API
交易API
退货退款API(新)
财务API
店铺API
物流API
促销API
分销API
发票API
招商API
换货API
互动营销API
退货退款API
客服API
平台营销API
风控API
会员通API
账房API
财务记账API
异常码自查工具
suning.custom.prescriptionorder.query 待审核处方药订单详情查询
¥免费

通过此接口,可查询待审核处方药订单的详情信息。主要包含:患者信息、药品信息、患者病史等订单相关信息。
注意:
提供审核服务的服务商调用此接口,需请订购商户操作立即使用订购服务,并授权服务商查询商户下的订单信息

公共参数
请求参数
名称 类型 是否必须 示例值 描述
orderInfoStringN
orderIdStringY101231241541订单编号
orderItemIdStringN1234562112订单行号(指单个处方药商品对应的子订单ID)
supplierInfoStringN
supplierCodeStringY70057518商家编码
响应参数
名称 类型 示例值 描述
orderInfoString
orderIdString1234564订单编号
supplierCodeString70057518商家ID
onlineHospitalCodeString124578522互联网医院代码(在服务市场入驻后生成的编码)
isPrescriptionStringtrue是否包含处方药 true-是,false-否
orderItemListString
orderItemIdString1234562112订单行号(指单个处方药商品对应的子订单ID)
itemCountsString3订单行号数量
rxNoString5200000011011SS 处方单
orderLineStatusString20订单行项目状态。0:订单取消;5:等待支付;10=待发货;15:发货中;20=已发货;30=交易成功
returnStatusValueString1退款状态 1:退款待处理;2:已拒绝退款;3 待买家发货;4 待商家收货;5 退款失败;6 退款处理中;7 退款关闭;8 退款成功;
userInfoString
useDrugNameString张三患者姓名
phoneNumberString12345678910手机号码
identityTypeString1234证件类型
identityNumberString123456789证件号码
birthdayString2000-01-01出生日期
sexString12性别
weightString1234体重
pregnancyOptionString0备孕妊娠信息 0-无,1-备孕 ,2-怀孕/妊娠, 3-哺乳期
descriptionString肚子疼主诉
picInfoString
picUrlStringhttps://www.suning.com用户上传图片信息
diseaseInfoString
diseaseTypeString1确诊疾病类型
diseaseNameString过敏确诊疾病名
previousDiseasesHistoryString
diseasesFlagString0过往疾病史的标识 0 无;1 有
userRemarkString过敏自定义过往病史
diseasesListString
diseaseTypeString1病史类型
diseaseNameString病史名称病史名称
allergyHistoryString
diseasesFlagString0过敏史的标识 0- 无,1 -有
userRemarkString自定义过敏史自定义过敏史
diseasesListString
diseaseTypeString1病史类型
diseaseNameString病史名称病史名称
familialDiseasesHistoryString
diseasesFlagString1家族病史的标识 0- 无,1 -有
userRemarkString自定义家族病史自定义家族病史
diseasesListString
diseaseTypeString1病史类型
diseaseNameString病史名称病史名称
liverFunctionString
diseasesFlagString1肝功能是否正常
userRemarkString自定义肝功能信息自定义肝功能信息
diseasesListString
diseaseTypeString1病史类型
diseaseNameString病史名称病史名称
renalFunctionString
diseasesFlagString1肾功能是否正常
userRemarkString1自定义肾功能信息
diseasesListString
diseaseTypeString1病史类型
diseaseNameString病史名称病史名称
drugsInfoString
cmmdtyNameString感冒药商品名
commonNameString感冒灵通用名
specString150克规格
manufacturerString生产厂家生产厂家
barCodeString条形码条形码
lotNumberString批准文号批准文号
productUnitString商品单位商品单位
saleQtyString购买量购买量
orderItemIdString1234562112订单行号(指单个处方药商品对应的子订单ID)
prescriptionFlagStringY是否处方药行,Y是,N,空值为否
请求示例
  • XML示例
  • JSON示例
复制全部代码
                                
<sn_request>
  <sn_body>
    <prescriptionParams>
      <orderInfo>
        <orderId>101231241541</orderId>
        <orderItemId>1234562112</orderItemId>
      </orderInfo>
      <supplierInfo>
        <supplierCode>70057518</supplierCode>
      </supplierInfo>
    </prescriptionParams>
  </sn_body>
</sn_request>

			
                                
                                
{
  "sn_request": {
    "sn_body": {
      "prescriptionParams": {
        "orderInfo": {
          "orderId": "101231241541",
          "orderItemId": "1234562112"
        },
        "supplierInfo": {
          "supplierCode": "70057518"
        }
      }
    }
  }
}
			
                                
响应示例
  • XML示例
  • JSON示例
复制全部代码
                              
<sn_responseContent>
  <sn_body>
    <prescriptionInfos>
      <userInfo>
        <birthday>2000-01-01</birthday>
        <pregnancyOption>0</pregnancyOption>
        <phoneNumber>12345678910</phoneNumber>
        <useDrugName>张三</useDrugName>
        <identityNumber>123456789</identityNumber>
        <identityType>1234</identityType>
        <sex>12</sex>
        <description>肚子疼</description>
        <weight>1234</weight>
      </userInfo>
      <previousDiseasesHistory>
        <userRemark>过敏</userRemark>
        <diseasesList>
          <diseaseName>病史名称</diseaseName>
          <diseaseType>1</diseaseType>
        </diseasesList>
        <diseasesFlag>0</diseasesFlag>
      </previousDiseasesHistory>
      <allergyHistory>
        <userRemark>自定义过敏史</userRemark>
        <diseasesList>
          <diseaseName>病史名称</diseaseName>
          <diseaseType>1</diseaseType>
        </diseasesList>
        <diseasesFlag>0</diseasesFlag>
      </allergyHistory>
      <liverFunction>
        <userRemark>自定义肝功能信息</userRemark>
        <diseasesList>
          <diseaseName>病史名称</diseaseName>
          <diseaseType>1</diseaseType>
        </diseasesList>
        <diseasesFlag>1</diseasesFlag>
      </liverFunction>
      <picInfo>
        <picUrl>https://www.suning.com</picUrl>
      </picInfo>
      <drugsInfo>
        <commonName>感冒灵</commonName>
        <orderItemId>1234562112</orderItemId>
        <cmmdtyName>感冒药</cmmdtyName>
        <lotNumber>批准文号</lotNumber>
        <productUnit>商品单位</productUnit>
        <prescriptionFlag>Y</prescriptionFlag>
        <saleQty>购买量</saleQty>
        <spec>150克</spec>
        <barCode>条形码</barCode>
        <manufacturer>生产厂家</manufacturer>
      </drugsInfo>
      <orderInfo>
        <onlineHospitalCode>124578522</onlineHospitalCode>
        <orderId>1234564</orderId>
        <orderItemList>
          <itemCounts>3</itemCounts>
          <rxNo>5200000011011SS</rxNo>
          <returnStatusValue>1</returnStatusValue>
          <orderItemId>1234562112</orderItemId>
          <orderLineStatus>20</orderLineStatus>
        </orderItemList>
        <isPrescription>true</isPrescription>
        <supplierCode>70057518</supplierCode>
      </orderInfo>
      <familialDiseasesHistory>
        <userRemark>自定义家族病史</userRemark>
        <diseasesList>
          <diseaseName>病史名称</diseaseName>
          <diseaseType>1</diseaseType>
        </diseasesList>
        <diseasesFlag>1</diseasesFlag>
      </familialDiseasesHistory>
      <renalFunction>
        <userRemark>1</userRemark>
        <diseasesList>
          <diseaseName>病史名称</diseaseName>
          <diseaseType>1</diseaseType>
        </diseasesList>
        <diseasesFlag>1</diseasesFlag>
      </renalFunction>
      <diseaseInfo>
        <diseaseName>过敏</diseaseName>
        <diseaseType>1</diseaseType>
      </diseaseInfo>
    </prescriptionInfos>
  </sn_body>
</sn_responseContent>

			
                              
                              
{
  "sn_responseContent": {
    "sn_body": {
      "prescriptionInfos": {
        "userInfo": {
          "birthday": "2000-01-01",
          "pregnancyOption": "0",
          "phoneNumber": "12345678910",
          "useDrugName": "张三",
          "identityNumber": "123456789",
          "identityType": "1234",
          "sex": "12",
          "description": "肚子疼",
          "weight": "1234"
        },
        "previousDiseasesHistory": {
          "userRemark": "过敏",
          "diseasesList": [
            {
              "diseaseName": "病史名称",
              "diseaseType": "1"
            }
          ],
          "diseasesFlag": "0"
        },
        "allergyHistory": {
          "userRemark": "自定义过敏史",
          "diseasesList": [
            {
              "diseaseName": "病史名称",
              "diseaseType": "1"
            }
          ],
          "diseasesFlag": "0"
        },
        "liverFunction": {
          "userRemark": "自定义肝功能信息",
          "diseasesList": [
            {
              "diseaseName": "病史名称",
              "diseaseType": "1"
            }
          ],
          "diseasesFlag": "1"
        },
        "picInfo": [
          {
            "picUrl": "https://www.suning.com"
          }
        ],
        "drugsInfo": [
          {
            "commonName": "感冒灵",
            "orderItemId": "1234562112",
            "cmmdtyName": "感冒药",
            "lotNumber": "批准文号",
            "productUnit": "商品单位",
            "prescriptionFlag": "Y",
            "saleQty": "购买量",
            "spec": "150克",
            "barCode": "条形码",
            "manufacturer": "生产厂家"
          }
        ],
        "orderInfo": [
          {
            "onlineHospitalCode": "124578522",
            "orderId": "1234564",
            "orderItemList": [
              {
                "itemCounts": "3",
                "rxNo": "5200000011011SS",
                "returnStatusValue": "1",
                "orderItemId": "1234562112",
                "orderLineStatus": "20"
              }
            ],
            "isPrescription": "true",
            "supplierCode": "70057518"
          }
        ],
        "familialDiseasesHistory": {
          "userRemark": "自定义家族病史",
          "diseasesList": [
            {
              "diseaseName": "病史名称",
              "diseaseType": "1"
            }
          ],
          "diseasesFlag": "1"
        },
        "renalFunction": {
          "userRemark": "1",
          "diseasesList": [
            {
              "diseaseName": "病史名称",
              "diseaseType": "1"
            }
          ],
          "diseasesFlag": "1"
        },
        "diseaseInfo": [
          {
            "diseaseName": "过敏",
            "diseaseType": "1"
          }
        ]
      }
    }
  }
}
			
                              
异常示例
  • XML示例
  • JSON示例
复制全部代码

  
  	API异常码
  	异常码中文描述
  

                           	  
{
  "sn_responseContent": {
    "sn_error": {
      "error_code": "API异常码",
      "error_msg": "异常码中文描述"
    }
  }
}
                           		
业务异常码
异常码 错误描述 解决方案
biz.custom.queryprescriptionorder.missing-parameter:* 参数必填 请检查此参数的值,*号表示参数字段名
biz.handler.data-get:no-result 查询没结果 请检查查询参数
isp.sys.service.unavailable.moms 服务不可用 请联系苏宁技术人员
公共异常码
API工具
FAQ