XCMG NS API


JournalAccount

Brief Description
  • create or update or delete journal account data.
Request URL
  • https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=654&deploy=1
Request Method
  • POST
Request Parameter Description
Parameter Required Type Description field level
operateType True String Operate type, value: create,update,delete 1
docNum True String The document number of the Transaction 1
documentType True String The document Type of the Transaction 1
date True String The Posting date of the Transaction,format of "2022/11/23" 1
subsidiary True String Subsidiary,Default to:"徐工俄罗斯有限责任公司(新徐俄)" 1
memo False String Memos for the transaction 1
lines True Array line property name,There must be at least two lines of debit and credit
debitAccount False String The debit account number in the accounting entry generated by the transaction 2
creditAccount False String The credit account number in the accounting entry generated by the transaction 2
unitPrice True Number Amount 2
department False String Transaction line Department 2
vendor False String A supplier of goods or services 2
customer False String A customer who receives goods or services 2
employee False String The employees of the transaction 2
memo False String Transaction remarks (lines) 2
currency True String Currency of Transaction 2
exchangeRate True Number The exchange rate 2
cashFlow False String Cash flows from bank accounts(lines) 2
Samples
    {
    "operateType":"create",
    "docNum": "",
    "date": "2023/02/08",
    "currency":"RUB",
    "exchangeRate":"1",
    "subsidiary": "徐工俄罗斯有限责任公司(新徐俄)",
    "memo": "",
    "lines": [{
        "debitAccount": "60.01",
        "creditAccount":"",
        "unitPrice":1000,
        "department":"отдел сервисного обслуживания",
        "vendor":"Айнабеков Ергали Абдуакасович ИП",
        "customer":"",
        "employee":"Крюков Николай Николаевич",
        "memo": "debit line",
        "cashFlow": ""
    },{
        "debitAccount":"52.01",
        "creditAccount":"creditAcc1",
        "unitPrice":200,
        "department":"отдел сервисного обслуживания",
        "vendor":"Айнабеков Ергали Абдуакасович ИП",
        "customer":"",
        "employee":"Крюков Николай Николаевич",
        "memo": "credit line",
        "cashFlow": "поставщикам (подрядчикам) за сырье, материалы, работы, услуги"
    }]
    }
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