XCMG NS API


VendorPrepayment

Brief Description
  • Create or update or delete vendor prepayment data.
Request URL
  • https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=656&deploy=1
Request Method
  • POST
Request Parameter Description
Parameter Required Type Description field leval
operateType True String Operate type, value: create,update,delete 1
docNum True String The document number of the Transaction 1
date True String The Posting date of the Transaction,format of "2022/11/23" 1
vendor True String A supplier of goods or services 1
currency True String Currency of Transaction 1
exchangeRate True Number The exchange rate 1
amount True Number The total amount of a transaction 1
bankAccount True String account of bank 1
subsidiary True String Subsidiary 1
department False String Department 1
fromLocation False String location of Transaction 1
associatedDoc True String Documents related to transaction processing 1
cashFlow True String Cash flows from bank accounts 1
memo False String Memos for the transaction 1
saleConNum False String Sales Contract Number 1
Samples
    {
    "operateType":"create",
    "docNum": "",
    "date": "2022/11/23",
    "customer": "test",
    "currency":"CNY",
    "exchangeRate":"",
    "amount":20,
    "bankAccount": "",
    "subsidiary": "",
    "department": "",
    "fromLocation": "",
    "associatedDoc":"",
    "cashFlow" : "",
    "memo": "",
    "saleConNum" : ""
    }
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": "docNum must be filled!",
    "data": []
    }
    // Success
    {
        "success": true,
        "message": "",
        "data": [{
            "internalid" :3995
        }]
    }
Memo

页面列表

ITEM_HTML