Brief Description
- create or update or delete vendor payment data.
Request URL
https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=651&deploy=1
Request Method
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 |
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 |
currency2 |
False |
String |
If the payment has another currency, please send the currency through this field.For example, some payment is RUB,but there is a CNY currency, Please send the CNY through this filed |
1 |
exchangeRate2 |
False |
Number |
If the payment has another currency, please send the currency exchange rate through this field.For example, some payment is RUB,but there is a CNY currency, Please send the exchange rate through this filed. |
1 |
amount2 |
False |
Number |
If the payment has another currency, please send the currency exchange rate through this field.For example, some payment is RUB,but there is a CNY currency, Please send the exchange rate through this filed. |
1 |
account |
True |
String |
account of transaction |
1 |
bankAccount |
True |
String |
bank account of transaction |
1 |
subsidiary |
True |
String |
Subsidiary,Default to:"徐工俄罗斯有限责任公司(新徐俄)" |
1 |
department |
False |
String |
Department |
1 |
fromLocation |
False |
String |
location of Transaction |
1 |
associatedDoc |
False |
String |
Documents related to transaction processing |
1 |
associatedDoctype |
False |
String |
1C document Type of the associatedDoc |
1 |
cashFlow |
True |
String |
Cash flows from bank accounts |
1 |
memo |
False |
String |
Memos for the transaction |
1 |
purchaseContract |
False |
String |
Sales Contract Number |
1 |
Samples
{
"operateType":"create",
"docNum": "",
"date": "2023/02/08",
"vendor": "Айнабеков Ергали Абдуакасович ИП",
"currency":"RUB",
"exchangeRate":1,
"account": "60.01",
"bankAccount": "52.01",
"subsidiary": "徐工俄罗斯有限责任公司(新徐俄)",
"department": "отдел сервисного обслуживания",
"fromLocation": "БП-000065",
"amount":1000,
"associatedDoc":"",
"cashFlow":"поставщикам (подрядчикам) за сырье, материалы, работы, услуги",
"memo": "",
"purchaseContract":""
}
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