XCMG NS API


Vendor

Brief Description
  • Create or update vendor data.
Request URL
  • https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=642&deploy=1
Request Method
  • POST
Request Parameter Description
Parameter Required Type Description
name True String 1C Vendor Company name
category False Number 1C Vendor category.List of values:[vendor categery](https://www.showdoc.com.cn/2076069668546132/9591367013275824 "vendor categery")
mainSubsidiary True String 1C Vendor main subsidiary
subsidiary False Array[String] 1C Vendor subsidiary
purchaseType True Number 1C Purchase type. List of values:Internal purchase=1;External purchase=2
mainCurrency True String 1C Vendor Currency
taxRegistNum True String 1C Vendor Tax Registration Number
account False String 1C Vendor account
Samples
    {
    "name": "",
    "category": 2,
    "mainSubsidiary": "a",
    "subsidiary": [
        "a","b"
    ],
    "purchaseType": 1,
    "mainCurrency": "CNY",
    "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