1. Inventory
V8STD
  • Index
  • Inventory
    • TrfRsAdj
      POST
    • GRConfirm
      POST
    • ItemStockOnHand
      POST
    • GRUpdate
      POST
    • QtyAdj
      POST
    • TrfRsOut
      POST
    • QtyAdjConfirm
      POST
    • StkCntUpdate
      POST
    • GoodsReturnUpdate
      POST
    • GoodsReturnConfirm
      POST
    • TrfRsIn
      POST
    • TrfReqConfirm
      POST
    • TrfReq
      POST
    • POUpdate
      POST
    • POStatusChange
      POST
    • TrfRsConfirm
      POST
  • Inventory Enquiry
    • enq_TrfRsOsNote
      POST
    • enq_TrfRs
      POST
  • Master
    • itemSearchTTPos
      POST
  • Master Export
    • barCodeExport
      POST
    • storeExport
      POST
    • staffExport
      POST
    • ReasonExport
      POST
    • itemPriceExport
      POST
    • itemMasterExport
      POST
    • tenderExport
      POST
  • Master Import
    • itemPriceImport
    • barcodeImport
    • itemMasterImport
    • staffImport
  • Sales
    • salesTransStd
    • salesValidate
    • salesVoid
    • salesMemoStdEnquiry
  • Vip
    • vipBonusAdjustVipStd
    • vipSearchVipStd
    • vipMasterBasicCreateVipStd
    • vipBonusEnquiryVipStd
  • Device Login
    • Get_APIKEY
  1. Inventory

POUpdate

测试中
POST
/posservice/rest/purchaseorder/update
doc_POUpdate 采购单据信息更新
该接口更新采购单据内容信息,包括采购相关日期、结算类型、订货店铺信息、采购货品信息、数量成本
This interface updates the content information of purchase documents, including purchase related dates, settlement types, ordering store information, purchased goods information, quantity and cost

请求参数

Authorization
在 header 添加参数
apiKey
示例:
apiKey: ********************
Body 参数application/json

示例
{
    "apiKey": "{{apiKey}}",
    "deleteItemDtl": [],
    "deleteLocationDtl": [],
    "hdr": {
        "approveAmt": 0.0,
        "attrib1": null,
        "attrib2": null,
        "attrib3": null,
        "attrib4": null,
        "attrib5": null,
        "currCode": "RMB",
        "dlvyDate": "2024-09-19",
        "docStatus": "10",
        "exchRate": 1.0,
        "expiryDate": "2024-10-19",
        "interimWhCode": null,
        "modifyBy": "HQADMIN",
        "modifyDate": "2024-09-19",
        "orderStoreList": "[{\"allocperc\":1,\"storeCode\":\"BJ001\"}]",
        "orgID": "000000",
        "payTermCode": "AAAAAA",
        "PKRequired": "0",
        "poDate": "2024-09-19",
        "poRefNo": null,
        "poSendDate": null,
        "priceTerm": null,
        "remark": null,
        "reqDocNo": null,
        "staffCode": "ADMIN",
        "suppCode": "CZ0001",
        "ttlDiscMth1": 1,
        "ttlDiscMth2": null,
        "ttlDiscValue1": 0.0,
        "ttlDiscValue2": null,
        "txMethod": 16,
        "uom": "I"
    },
    "modifyItemDtl": [],
    "modifyLocationDtl": [],
    "newItemDtl": [
        {
            "attrib1": null,
            "attrib2": null,
            "attrib3": null,
            "attrib4": null,
            "attrib5": null,
            "colorCode": null,
            "intQty": 1.0,
            "itemDiscMth": 1,
            "itemDiscValue": 0.0,
            "itemOrgID": "000000",
            "itemTtlCost": 2.0,
            "itemUnitCost": 2.0,
            "recID": null,
            "siFactor": 1.0,
            "sizeCode": null,
            "styleCode": "10001111",
            "suppQty": 1.0,
            "suppUom": "PC",
            "ttlPOFinalQty": 1.0,
            "ttlPOQty": 1.0,
            "txMethod": 16
        }
    ],
    "newLocationDtl": [
        {
            "dlvyDate": "2024-09-19",
            "docRowID": null,
            "docTraceFmSrc": null,
            "docTraceToDst": null,
            "grLocation": "BJ001",
            "intQty": 1.0,
            "itemCode": "10001111",
            "itemOrgID": "000000",
            "orderStoreCode": "BJ001",
            "poFinalQty": 1.0,
            "poItemRecID": null,
            "poQty": 1.0,
            "poReqRecID": null,
            "suppQty": 1.0,
            "txMethod": 16
        }
    ],
    "transHdr": {
        "docLockSequence": null,
        "docNo": "PO00001",
        "docType": "PU",
        "jobNum": null,
        "ledgerDatetime": null,
        "offlineMode": false,
        "orgPrefix": "HQ",
        "programName": null,
        "staffCode": "HQADMIN",
        "storeCode": "ZCNRET",
        "tillId": "00",
        "txAttrib": null,
        "txDate": "2024-09-19",
        "txSerial": null,
        "version": 2,
        "vipCode": null,
        "voidDocNo": null
    }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/posservice/rest/purchaseorder/update' \
--header 'apiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "apiKey": "{{apiKey}}",
    "deleteItemDtl": [],
    "deleteLocationDtl": [],
    "hdr": {
        "approveAmt": 0.0,
        "attrib1": null,
        "attrib2": null,
        "attrib3": null,
        "attrib4": null,
        "attrib5": null,
        "currCode": "RMB",
        "dlvyDate": "2024-09-19",
        "docStatus": "10",
        "exchRate": 1.0,
        "expiryDate": "2024-10-19",
        "interimWhCode": null,
        "modifyBy": "HQADMIN",
        "modifyDate": "2024-09-19",
        "orderStoreList": "[{\"allocperc\":1,\"storeCode\":\"BJ001\"}]",
        "orgID": "000000",
        "payTermCode": "AAAAAA",
        "PKRequired": "0",
        "poDate": "2024-09-19",
        "poRefNo": null,
        "poSendDate": null,
        "priceTerm": null,
        "remark": null,
        "reqDocNo": null,
        "staffCode": "ADMIN",
        "suppCode": "CZ0001",
        "ttlDiscMth1": 1,
        "ttlDiscMth2": null,
        "ttlDiscValue1": 0.0,
        "ttlDiscValue2": null,
        "txMethod": 16,
        "uom": "I"
    },
    "modifyItemDtl": [],
    "modifyLocationDtl": [],
    "newItemDtl": [
        {
            "attrib1": null,
            "attrib2": null,
            "attrib3": null,
            "attrib4": null,
            "attrib5": null,
            "colorCode": null,
            "intQty": 1.0,
            "itemDiscMth": 1,
            "itemDiscValue": 0.0,
            "itemOrgID": "000000",
            "itemTtlCost": 2.0,
            "itemUnitCost": 2.0,
            "recID": null,
            "siFactor": 1.0,
            "sizeCode": null,
            "styleCode": "10001111",
            "suppQty": 1.0,
            "suppUom": "PC",
            "ttlPOFinalQty": 1.0,
            "ttlPOQty": 1.0,
            "txMethod": 16
        }
    ],
    "newLocationDtl": [
        {
            "dlvyDate": "2024-09-19",
            "docRowID": null,
            "docTraceFmSrc": null,
            "docTraceToDst": null,
            "grLocation": "BJ001",
            "intQty": 1.0,
            "itemCode": "10001111",
            "itemOrgID": "000000",
            "orderStoreCode": "BJ001",
            "poFinalQty": 1.0,
            "poItemRecID": null,
            "poQty": 1.0,
            "poReqRecID": null,
            "suppQty": 1.0,
            "txMethod": 16
        }
    ],
    "transHdr": {
        "docLockSequence": null,
        "docNo": "PO00001",
        "docType": "PU",
        "jobNum": null,
        "ledgerDatetime": null,
        "offlineMode": false,
        "orgPrefix": "HQ",
        "programName": null,
        "staffCode": "HQADMIN",
        "storeCode": "ZCNRET",
        "tillId": "00",
        "txAttrib": null,
        "txDate": "2024-09-19",
        "txSerial": null,
        "version": 2,
        "vipCode": null,
        "voidDocNo": null
    }
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "asynCode": null,
    "asynMessage": null,
    "asynStatus": 0,
    "className": "com.techtrans.api.inventory.pogr.website.POResponse",
    "errorCode": 0,
    "errorLog": null,
    "errorMessage": null
}
🟢200处理数据失败
🟠404响应失败
修改于 2024-09-19 09:55:05
上一页
TrfReq
下一页
POStatusChange
Built with