事件订阅 / 商品与库存

入库单入库

入库单完成入库后发送事件。

字段值说明
eventModule3事件模块编号
eventType311具体事件编号

事件结构

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

消息 ID,作为接收端幂等键;同一次业务通知的重试使用同一消息 ID

string
clinicId可选

授权门店 ID

string
eventModule可选

枚举:3

integer
eventType可选

枚举:311

integer
eventName可选

枚举:入库单入库

string
callbackCount可选
integer

结构示例

json
{
  "id": "string",
  "clinicId": "string",
  "eventModule": 3,
  "eventType": 311,
  "eventName": "入库单入库",
  "callbackCount": 0,
  "eventData": {
    "id": 0,
    "inOrderItemList": [
      {
        "id": 123456,
        "inId": 3123456,
        "originalItemId": 123456,
        "productId": "ffffffff0000000034966c3a883ec000",
        "productShortId": 1000001,
        "productName": "阿莫西林",
        "specification": "string",
        "expiryDate": "2022-05-10",
        "productionDate": "2024-05-10",
        "pieceNum": 5,
        "pieceUnit": "片",
        "packageUnit": "盒",
        "packageCostPrice": 12.5,
        "packageCount": 2,
        "pieceCount": 10,
        "unqualifiedPackageCount": 2,
        "unqualifiedPieceCount": 10,
        "purchaseOrderId": "string",
        "purchaseOrderItemId": "string",
        "amount": 6033.23,
        "totalCost": 6033.23,
        "batchId": 100026529,
        "batchNo": 20220526000001,
        "outDetailId": 12312,
        "stockInOutDetailId": 12312,
        "created": "2022-05-10 12:22:56",
        "lastModified": "2022-05-13 12:22:56",
        "traceableCodeList": [
          {
            "no": 86975041000000000000,
            "type": 0,
            "hisPieceCount": 10,
            "hisPackageCount": 1,
            "count": 1
          }
        ]
      }
    ],
    "inOrderId": 0,
    "orderNo": "RK20220526000001",
    "status": 0,
    "organName": "高新大源店",
    "organId": "ffffffff00000000264a75300d752999",
    "amount": 6033.23,
    "count": 12,
    "kindCount": 5,
    "operator": "string",
    "operatorId": "string",
    "supplier": "string",
    "supplierId": "string",
    "effectiveDate": "2022-04-07 15:12:53",
    "lastModified": "2022-05-13 12:22:56",
    "pharmacy": {
      "no": 0
    },
    "type": 0
  }
}

返回事件目录

ABC 开放平台 · 诊所管家

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

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

诊所管家