1. Master Import
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
      POST
    • barcodeImport
      POST
    • itemMasterImport
      POST
    • staffImport
      POST
  • Sales
    • salesTransStd
    • salesValidate
    • salesVoid
    • salesMemoStdEnquiry
  • Vip
    • vipBonusAdjustVipStd
    • vipSearchVipStd
    • vipMasterBasicCreateVipStd
    • vipBonusEnquiryVipStd
  • Device Login
    • Get_APIKEY
  1. Master Import

staffImport

测试中
POST
/posservice/rest/staffimportation/staff
staffImport 员工导入接口
该接口根据请求内的数据,插入到本地数据库中对应表数据(表名:员工表)
This interface inserts the corresponding table data into the local database based on the data in the request . (table name: xf_staff)

请求参数

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

示例
{
    "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}}"
}

请求示例代码

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/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}}"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "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
}
🟢200处理数据失败
🟠404响应失败
修改于 2024-09-23 07:16:16
上一页
itemMasterImport
下一页
Sales
Built with