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