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

GRUpdate

测试中
POST
/posservice/rest/goodsreceive/update
GRUpdate_收货单修改
用於新增修改非確認狀態下的收貨單據信息,包括貨品數量、成本,收貨店成本
It is used to add and modify the receiving document information in the non-confirmation state, including the quantity of items, cost, and cost of receiving items from the store

请求参数

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

示例
{
    "hdr": {
        "txMethod": 16,
        "staffCode": "ADMIN",
        "docStatus": "50",
        "grDate": "2024-07-05",
        "grCartonCount": 0,
        "suppCode": "Apple",
        "currCode": "HKD",
        "grLocationType": "S",
        "grFinalLocation": "BJ001",
        "exchRate": 1.1211,
        "ttlDiscValue1": 0.9888,
        "ttlDiscMth1": 1,
        "uom": "I"
    },
    "newItemDtl": [
        {
            "txMethod": 16,
            "itemOrgID": "000000",
            "styleCode": "10001111",
            "itemLotNum": "*",
            "grQty": 1.0,
            "itemDiscValue": 15.0,
            "itemDiscMth": 1,
            "poUnitCost": 5.0,
            "grUnitCost": 6.0,
            "suppQty": 1.0,
            "suppUom": "PCS",
            "siFactor": 1.1111
        }
    ],
    "deleteItemDtl": [],
    "modifyItemDtl": [],
    "newLocationDtl": [
        {
            "txMethod": 16,
            "docRowID": 9999,
            "grItemRecID": 9999,
            "itemOrgID": "000000",
            "itemCode": "10001111",
            "itemLotNum": "*",
            "grStoreCode": "BJ001",
            "grQty": 2.0,
            "poLocItemRecID": 9999
        }
    ],
    "deleteLocationDtl": [],
    "modifyLocationDtl": [],
    "newCostAdjDtl": [],
    "deleteCostAdjDtl": [],
    "modifyCostAdjDtl": [],
    "docType": "GR",
    "lotNumMode": 0,
    "transHdr": {
        "txDate": "2024-07-05",
        "programName": "BACKEND",
        "storeCode": "BJ001",
        "tillId": "00",
        "docType": "GR",
        "staffCode": "ADMIN",
        "docNo": "GROHQO230700008A",
        "orgPrefix": "HQ",
        "version":2
    },
    "apiKey": "{{apiKey}}",
    "languageUser": "en"
}

请求示例代码

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/goodsreceive/update' \
--header 'apiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "hdr": {
        "txMethod": 16,
        "staffCode": "ADMIN",
        "docStatus": "50",
        "grDate": "2024-07-05",
        "grCartonCount": 0,
        "suppCode": "Apple",
        "currCode": "HKD",
        "grLocationType": "S",
        "grFinalLocation": "BJ001",
        "exchRate": 1.1211,
        "ttlDiscValue1": 0.9888,
        "ttlDiscMth1": 1,
        "uom": "I"
    },
    "newItemDtl": [
        {
            "txMethod": 16,
            "itemOrgID": "000000",
            "styleCode": "10001111",
            "itemLotNum": "*",
            "grQty": 1.0,
            "itemDiscValue": 15.0,
            "itemDiscMth": 1,
            "poUnitCost": 5.0,
            "grUnitCost": 6.0,
            "suppQty": 1.0,
            "suppUom": "PCS",
            "siFactor": 1.1111
        }
    ],
    "deleteItemDtl": [],
    "modifyItemDtl": [],
    "newLocationDtl": [
        {
            "txMethod": 16,
            "docRowID": 9999,
            "grItemRecID": 9999,
            "itemOrgID": "000000",
            "itemCode": "10001111",
            "itemLotNum": "*",
            "grStoreCode": "BJ001",
            "grQty": 2.0,
            "poLocItemRecID": 9999
        }
    ],
    "deleteLocationDtl": [],
    "modifyLocationDtl": [],
    "newCostAdjDtl": [],
    "deleteCostAdjDtl": [],
    "modifyCostAdjDtl": [],
    "docType": "GR",
    "lotNumMode": 0,
    "transHdr": {
        "txDate": "2024-07-05",
        "programName": "BACKEND",
        "storeCode": "BJ001",
        "tillId": "00",
        "docType": "GR",
        "staffCode": "ADMIN",
        "docNo": "GROHQO230700008A",
        "orgPrefix": "HQ",
        "version":2
    },
    "apiKey": "{{apiKey}}",
    "languageUser": "en"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "asynCode": null,
    "asynMessage": null,
    "asynStatus": 0,
    "className": "com.techtrans.api.inventory.pogr.website.GRResponse",
    "errorCode": 0,
    "errorLog": null,
    "errorMessage": null
}
🟢200处理数据失败
🟠404响应失败
修改于 2024-09-30 02:53:12
上一页
ItemStockOnHand
下一页
QtyAdj
Built with