XCMG NS API


Customer

Brief Description
  • Create or update customer data.
Request URL
  • https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=644&deploy=1
Request Method
  • POST
Request Parameter Description
Parameter Required Type Description
name True String 1C Customer Company name
abbreviation False String 1C Customer abbreviation
category True Number 1C Customer category.List of values:[customer categery](https://www.showdoc.com.cn/2076069668546132/9591168335720565 "customer categery")
country True String 1C Customer country
salesRep False Array[String] 1C Customer sales representative
salesDept True String 1C Customer sales department
mainSubsidiary True String 1C Customer main subsidiary
subsidiary False Array[String] 1C Customer subsidiary
contact False String 1C Customer contact
address False String 1C Customer company address
ifExport True Number Self-operation/acquisition. List of values:Self-operation=1;acquisition=2
mainCurrency True String 1C Customer Currency
taxRegistNum True String 1C Customer Tax Registration Number
account False String 1C Customer account
Samples
    {
    "name": "",
    "abbreviation": "",
    "category": 2,
    "country": "",
    "salesRep": [
        "jerry","lisa"
    ],
    "salesDept": "jerry",
    "mainSubsidiary": "a",
    "subsidiary": [
        "a","b"
    ],
    "contact": "",
    "address": "",
    "ifExport": 1,
    "mainCurrency": "",
    "taxRegistNum": "",
    "account": ""
    }
Response Parameter Description
Parameter Type Description
success Boolean true:success,false:failed
message String errors message
data Array Data
Return Samples
    // Error
    {
    "success": false,
    "message": "name must be filled!",
    "data": []
    }
    // Success
    {
        "success": true,
        "message": "",
        "data": [{
            "internalid" :3995
        }]
    }
Memo

页面列表

ITEM_HTML