接口文档 / 商品接口

获取商品详情

GET/api/v2/open-agency/products/{productId}在线调试

请求参数

名称说明类型
Path 参数
productId必填

商品id

示例:ffffffff0000000022195dc8114b8000

string
Query 参数
pharmacyNo可选

药房号,不传默认0

示例:0

integer

请求示例

http
GET /api/v2/open-agency/products/ffffffff0000000022195dc8114b8000?pharmacyNo=0

响应参数

名称说明类型
Body 参数
data可选

数据

object
id可选

商品ID

string
name可选

商品名称

示例:阿莫西林

string
disableSell可选

禁售销售 0:正常 1:禁止销售

示例:0

integer
typeId可选

系统分类ID

示例:1

integer
dismounting可选

是否拆零 0:不可拆零 1:可拆零

示例:0

integer
typeName可选

系统分类名称

示例:药品

string
customTypeId可选

自定义分类ID

示例:213

string
isSell可选

是否可对外销售 0:不可销售 1:可销售

示例:1

integer
customTypeName可选

自定义分类名称

示例:抗生素

string
inTaxRat可选

进项税率(百分比整数,例如 13 表示 13%)

示例:13

number
manufacturer可选

生产厂家

示例:拜耳

string
outTaxRat可选

销项税率(百分比整数,例如 13 表示 13%)

示例:13

number
medicineNmpn可选

国药准字

示例:H20000001

string
barCode可选

条形码

string
pieceUnit可选

制剂单位

示例:支

string
pieceNum可选

制剂数量(10支/盒中的10)

示例:10

number
piecePrice可选

制剂单价

示例:10.5

number
packageUnit可选

包装单位

示例:盒

string
packagePrice可选

包装单价

示例:105

number
shortId可选

药品编码

示例:K1001

string
specification可选

规格: 组装好的格式

示例:1ml:0.5mg*10支/盒

string
otcType可选

OTC药物 1处方药 2:甲类非处方 4:乙类非处方

示例:1

integer
status可选

商品状态 1:正常 99:删除

示例:1

integer
lastModified可选

最后修改时间

示例:2022-05-13 12:22:56

格式:date-time

string
remark可选

商品备注

示例:常温避光保存

string
dosageFormType可选

剂型编码。常见值:100:片剂 200:丸剂 300:散剂 400:软膏剂 401:乳膏剂 500:颗粒剂 600:胶囊剂 700:口服溶液剂 701:口服混悬剂 800:注射剂 900:气雾剂 1000:洗剂 1300:贴剂 1400:眼用制剂 1401:鼻用制剂 1402:耳用制剂 1600:栓剂 1700:糖浆剂 1800:缓释制剂 1900:凝胶剂 2401:喷雾剂 2500:吸入制剂 10000:其他(中文名见 dosageFormTypeName)

示例:100

integer
dosageFormTypeName可选

剂型名称

string
priceType可选

定价类型 1=固定售价 3=进价加成

integer
priceMakeupPercent可选

加成比例 priceType=3有值

number

响应示例

json
{
  "data": {
    "children": [
      null
    ],
    "id": "string",
    "name": "阿莫西林",
    "shebao": {
      "nationalCode": "T001700643",
      "insuranceTypes": [
        {
          "insuranceType": 391,
          "reimbursementRatio": 0.1
        }
      ]
    },
    "disableSell": 0,
    "typeId": 1,
    "dismounting": 0,
    "typeName": "药品",
    "customTypeId": 213,
    "isSell": 1,
    "customTypeName": "抗生素",
    "inTaxRat": 13,
    "manufacturer": "拜耳",
    "outTaxRat": 13,
    "medicineNmpn": "H20000001",
    "barCode": "string",
    "pieceUnit": "支",
    "pieceNum": 10,
    "piecePrice": 10.5,
    "packageUnit": "盒",
    "packagePrice": 105,
    "shortId": "K1001",
    "specification": "1ml:0.5mg*10支/盒",
    "otcType": 1,
    "status": 1,
    "lastModified": "2022-05-13 12:22:56",
    "goodsSpu": {
      "id": "string",
      "name": "string",
      "brandName": "string",
      "material": "string"
    },
    "goodsSpec": {
      "color": "string",
      "spec": "string"
    },
    "remark": "常温避光保存",
    "dosageFormType": 100,
    "dosageFormTypeName": "string",
    "priceType": 0,
    "priceMakeupPercent": 0
  },
  "error": null
}

业务失败包装示意

json
{
  "data": null,
  "error": {
    "code": 11003,
    "message": "不支持的授权类型{grantType}"
  }
}

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

如有疑问,请扫码加入企业微信群咨询。

企业微信群二维码
没有匹配结果

诊所管家