Brief Description
- Create or update or delete inventory adjustment data.
Request URL
https://6409627-sb2.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=648&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 |
customer |
False |
String |
A customer who receives goods or services |
1 |
account |
True |
String |
account of transaction |
1 |
subsidiary |
True |
String |
Subsidiary,Default to:"徐工俄罗斯有限责任公司(新徐俄)" |
1 |
department |
False |
String |
Department |
1 |
fromLocation |
False |
String |
Location of Transaction |
1 |
memo |
Falae |
String |
Memos for the transaction |
1 |
lines |
True |
Array |
line property name |
item |
True |
String |
Transaction goods or service |
2 |
quantity |
True |
Number |
The quantity of goods example(+1 -1) |
2 |
unit |
False |
String |
Unit |
2 |
unitPrice |
False |
Number |
Unit price of goods or service |
2 |
location |
True |
String |
Transaction line location |
2 |
department |
False |
String |
Transaction line Department |
2 |
memo |
False |
String |
Transaction line memo |
2 |
fromBin |
False |
String |
Bin of transaction line |
2 |
serialNumber |
False |
String |
batch/serial number,If itemType="vehicle" ,then this field is mandatory |
2 |
itemType |
True |
String |
If the item is a whole machine, the field is "vehicle". If the item is a spare part, the field is "spare part". |
2 |
Samples
{
"operateType":"create",
"invAdjustType": "",
"docNum": "",
"date": "2023/02/08",
"customer": "КРАНМАШ СТРОЙ ООО с 2021",
"account": "19.03",
"subsidiary": "徐工俄罗斯有限责任公司(新徐俄)",
"department": "отдел сервисного обслуживания",
"fromLocation": "БП-000065",
"memo": "",
"lines": [{
"item": "ZL50RU",
"quantity": "1",
"unit": "PCS",
"unitPrice": "1000",
"location": "БП-000065",
"department": "отдел сервисного обслуживания",
"memo": "",
"fromBin": "БП-000065-1",
"serialNumber": "XUG0050GHLCB02231",
"itemType": "vehicle"
}]
}
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