接口文档 / 商品接口

获取商品详情

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

响应参数

名称说明类型
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可选

商品备注

示例:abc

string
dosageFormType可选

剂型

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": "abc",
    "dosageFormType": 0,
    "dosageFormTypeName": "string",
    "priceType": 0,
    "priceMakeupPercent": 0
  },
  "error": null
}

业务失败包装示意

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

查看 HTTP 状态与业务码排查

ABC 开放平台 · 诊所管家

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

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

诊所管家