{
  "openapi": "3.0.3",
  "info": {
    "title": "条码查询接口",
    "description": "商品条形码、药品条形码查询，根据条形码信息，返回对应的名称、价格、厂家等信息。能实现来源可查、去向可追，有效控制产品质量安全风险，保障消费者权益。【注：条码查询接口，目前支持69开头的13或069开头的14位国内商品】",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/66-24": {
      "x-pointCode": 24,
      "x-mode": "mapping",
      "x-read-timeout": 60,
      "x-connect-timeout": 60,
      "post": {
        "summary": "药品条码查询",
        "description": "每种商品的分类\\属性不一致,本参数表中的参数不是全部参数,具体参数表情查看我们的\"条码参数表\"。【注意：自2023年9月1日0点起，图片URL地址仅支持24小时的存储有效期，请您将图片下载到本地进行存储，以避免因图片访问失效而引起您本地业务的异常。】",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "spec": {
                              "type": "string",
                              "description": "规格"
                            },
                            "taboo": {
                              "type": "string",
                              "description": "禁忌"
                            },
                            "other": {
                              "type": "string",
                              "description": "其它注意事项"
                            },
                            "basis": {
                              "type": "string",
                              "description": "主要成分"
                            },
                            "remark": {
                              "type": "string",
                              "description": "返回描述"
                            },
                            "consideration": {
                              "type": "string",
                              "description": "注意事项"
                            },
                            "img": {
                              "type": "string",
                              "description": "图片"
                            },
                            "approval": {
                              "type": "string",
                              "description": "批准文号"
                            },
                            "dosage": {
                              "type": "string",
                              "description": "用法用量"
                            },
                            "code": {
                              "type": "string",
                              "description": "条形码"
                            },
                            "purpose": {
                              "type": "string",
                              "description": "功能主治/适用范围"
                            },
                            "character": {
                              "type": "string",
                              "description": "性状"
                            },
                            "manuName": {
                              "type": "string",
                              "description": "生产厂家"
                            },
                            "ret_code": {
                              "type": "number",
                              "description": "成功标志，0扣费，其它不扣费"
                            },
                            "trademark": {
                              "type": "string",
                              "description": "商品名/商标"
                            },
                            "validity": {
                              "type": "string",
                              "description": "有效期"
                            },
                            "name": {
                              "type": "string",
                              "description": "产品名称"
                            },
                            "manuAddress": {
                              "type": "string",
                              "description": "生产地址"
                            },
                            "note": {
                              "type": "string"
                            },
                            "storage": {
                              "type": "string",
                              "description": "贮藏补充说明"
                            },
                            "type": {
                              "type": "string",
                              "description": "1、OTC，2、非药品"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "66_24_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "国内药品条形码（69开头）"
                  }
                },
                "required": [
                  "code"
                ]
              }
            }
          }
        }
      }
    },
    "/66-22": {
      "x-pointCode": 22,
      "x-mode": "mapping",
      "x-read-timeout": 60,
      "x-connect-timeout": 60,
      "post": {
        "summary": "条码查询",
        "description": "每种商品的分类\\属性不一致,本参数表中的参数不是全部参数,具体参数表情查看我们的\"条码参数表\"。【注意：自2023年9月1日0点起，图片URL地址仅支持24小时的存储有效期，请您将图片下载到本地进行存储，以避免因图片访问失效而引起您本地业务的异常。】",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "flag": {
                              "type": "string",
                              "description": "操作是否成功"
                            },
                            "code": {
                              "type": "string",
                              "description": "条形码"
                            },
                            "goodsName": {
                              "type": "string",
                              "description": "商品名称"
                            },
                            "manuName": {
                              "type": "string",
                              "description": "厂商"
                            },
                            "spec": {
                              "type": "string",
                              "description": "规格"
                            },
                            "price": {
                              "type": "string",
                              "description": "参考价格(单位:元)"
                            },
                            "trademark": {
                              "type": "string",
                              "description": "商标/品牌名称"
                            },
                            "img": {
                              "type": "string",
                              "description": "图片地址（图片下载时效为1小时，请及时下载）"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "返回代码 0为成功,其他为失败"
                            },
                            "goodsType": {
                              "type": "string",
                              "description": "商品分类"
                            },
                            "sptmImg": {
                              "type": "string",
                              "description": "条码图片"
                            },
                            "ycg": {
                              "type": "string",
                              "description": "原产地(可能无此参数信息)"
                            },
                            "note": {
                              "type": "string",
                              "description": "备注信息"
                            },
                            "remark": {
                              "type": "string",
                              "description": "返回结果的描述"
                            },
                            "manuAddress": {
                              "type": "string",
                              "description": "厂商地址"
                            },
                            "imgList": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "图片列表（图片下载时效为1小时，请及时下载）"
                            },
                            "gpc": {
                              "type": "string",
                              "description": "gpc分类代码"
                            },
                            "gpcType": {
                              "type": "string",
                              "description": "gpc分类名称"
                            },
                            "keyword": {
                              "type": "string",
                              "description": "关键词"
                            },
                            "qs": {
                              "type": "string",
                              "description": "生产许可证号"
                            },
                            "width": {
                              "type": "string",
                              "description": "宽"
                            },
                            "hight": {
                              "type": "string",
                              "description": "高"
                            },
                            "depth": {
                              "type": "string",
                              "description": "深"
                            },
                            "gw": {
                              "type": "string",
                              "description": "毛重"
                            },
                            "nw": {
                              "type": "string",
                              "description": "净重"
                            },
                            "description": {
                              "type": "string",
                              "description": "形态描述"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "66_22_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "条形码（国内及进口商品、8位商品短码、UPC-A、UPC-E）"
                  }
                },
                "required": [
                  "code"
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/66?tab=book"
  },
  "x-apiCode": "66",
  "x-is-own": false,
  "x-is-op": false
}