apiKey: ********************{
"staffRecord": [
{
"record": {
"xf_staffcode": "TESTSTAFF1",
"xf_orgid": "000000",
"xf_dataaccessid": "000000",
"xf_name": "test staff",
"xf_password": "24945000",
"xf_issuperuser": "0",
"xf_privid": "12",
"xf_usergroup": null,
"xf_address": "Kechuan Company",
"xf_telephone1": "13611111111",
"xf_telephone2": null,
"xf_sex": "M",
"xf_connectcount": 0,
"xf_modifydate": "2024-09-01"
}
},
{
"record": {
"xf_staffcode": "TESTSTAFF2",
"xf_orgid": "000001",
"xf_dataaccessid": "HK001",
"xf_name": "test staff2",
"xf_password": "24945000",
"xf_issuperuser": "0",
"xf_privid": "EO",
"xf_usergroup": "HKG01",
"xf_address": "Kechuan Company",
"xf_telephone1": "13812341234",
"xf_telephone2": null,
"xf_sex": "F",
"xf_connectcount": 1,
"xf_modifydate": "2024-08-01"
}
}
],
"apiKey": "{{apiKey}}"
}curl --location --request POST '/posservice/rest/staffimportation/staff' \
--header 'apiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"staffRecord": [
{
"record": {
"xf_staffcode": "TESTSTAFF1",
"xf_orgid": "000000",
"xf_dataaccessid": "000000",
"xf_name": "test staff",
"xf_password": "24945000",
"xf_issuperuser": "0",
"xf_privid": "12",
"xf_usergroup": null,
"xf_address": "Kechuan Company",
"xf_telephone1": "13611111111",
"xf_telephone2": null,
"xf_sex": "M",
"xf_connectcount": 0,
"xf_modifydate": "2024-09-01"
}
},
{
"record": {
"xf_staffcode": "TESTSTAFF2",
"xf_orgid": "000001",
"xf_dataaccessid": "HK001",
"xf_name": "test staff2",
"xf_password": "24945000",
"xf_issuperuser": "0",
"xf_privid": "EO",
"xf_usergroup": "HKG01",
"xf_address": "Kechuan Company",
"xf_telephone1": "13812341234",
"xf_telephone2": null,
"xf_sex": "F",
"xf_connectcount": 1,
"xf_modifydate": "2024-08-01"
}
}
],
"apiKey": "{{apiKey}}"
}'{
"asynCode": null,
"asynMessage": null,
"asynStatus": 0,
"className": "com.techtrans.api.master.website.staffimport.StaffImportResponse",
"errorCode": 0,
"errorLog": null,
"errorMessage": null,
"failureCount": 0,
"importErrorLog": {},
"length": 25,
"sort": "",
"start": 0,
"successCount": 2,
"total": 0
}