apiKey: ********************{
"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"
}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"
}'{
"asynCode": null,
"asynMessage": null,
"asynStatus": 0,
"className": "com.techtrans.api.inventory.pogr.website.GRResponse",
"errorCode": 0,
"errorLog": null,
"errorMessage": null
}