apiKey: ********************{
"hdr": {
"txMethod": 16,
"staffCode": "ADMIN",
"docStatus": "10",
"gtStoreCode": "BJ001",
"gtInvtType": 0,
"suppCode": "Apple",
"gtDate": "2023-02-01",
"ledgerDateTime": "2023-02-01 16:00:00",
"gtBy": "ADMIN",
"gtCartonCount": 0,
"modifyBy": "ADMIN",
"modifyDate": "2023-02-01"
},
"newItemDtl": [
{
"txMethod": 16,
"grDocNo": "",
"itemOrgID": "000000",
"styleCode": "10001111",
"itemLotNum": "*",
"gtQty": 1.0,
"gtNetAmt": 1.0,
"gtAmt": 1.0,
"currCode": "HKD",
"exchRate": 1.0001
}
],
"deleteItemDtl": [],
"modifyItemDtl": [],
"transHdr": {
"txDate": "2023-06-01",
"ledgerDatetime": "2023-02-01 10:00:00",
"programName": "BACKEND",
"storeCode": "BJ001",
"tillId": "00",
"docType": "GT",
"staffCode": "ADMIN",
"docNo": "GTOHQO230100001",
"orgPrefix": "HQ"
},
"apiKey": "{{apiKey}}"
}curl --location --request POST '/posservice/rest/goodsreturn/update' \
--header 'apiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"hdr": {
"txMethod": 16,
"staffCode": "ADMIN",
"docStatus": "10",
"gtStoreCode": "BJ001",
"gtInvtType": 0,
"suppCode": "Apple",
"gtDate": "2023-02-01",
"ledgerDateTime": "2023-02-01 16:00:00",
"gtBy": "ADMIN",
"gtCartonCount": 0,
"modifyBy": "ADMIN",
"modifyDate": "2023-02-01"
},
"newItemDtl": [
{
"txMethod": 16,
"grDocNo": "",
"itemOrgID": "000000",
"styleCode": "10001111",
"itemLotNum": "*",
"gtQty": 1.0,
"gtNetAmt": 1.0,
"gtAmt": 1.0,
"currCode": "HKD",
"exchRate": 1.0001
}
],
"deleteItemDtl": [],
"modifyItemDtl": [],
"transHdr": {
"txDate": "2023-06-01",
"ledgerDatetime": "2023-02-01 10:00:00",
"programName": "BACKEND",
"storeCode": "BJ001",
"tillId": "00",
"docType": "GT",
"staffCode": "ADMIN",
"docNo": "GTOHQO230100001",
"orgPrefix": "HQ"
},
"apiKey": "{{apiKey}}"
}'{
"asynCode": null,
"asynMessage": null,
"asynStatus": 0,
"className": "com.techtrans.api.inventory.gt.website.GTResponse",
"errorCode": 0,
"errorLog": null,
"errorMessage": null
}