Transaction - Sales Order/Purchase Order with Multiple Lines
Sales Order/Purchase Order with Multiple Lines:-
This transaction is used to post data for Sales order or Purchase Order with all the relevant information from 3rd party systems
URI:- /api/app/system/salesorder
Sample Payload:-
{
"id": "",
"error": "",
"msg": "",
"documentno": "",
"bpartner": "Customer Key/Search Key",
"ordertype": "Document Type Name",
"bpartner_location": "BP Order Address Name",
"orderdate": 1696271400000,
"promiseddate": 1696271400000,
"pricelist": "Price List Name(if empty default is used",
"warehouse": "Name of Warehouse",
"paymentterm": "Payment Term Name(default immediate)",
"description": "Order Description",
"ordersource": "Order Source Name",
"salestransaction": true,
"lines": [
{
"lineno": 10,
"description": "Line Description",
"productkey": "Product Key/Search Key",
"chargename": "Charge Name(when Product is blank)",
"promiseddate": 1696271400000,
"taxname": "Tax Category Name",
"qty": 0.0,
"price": 0.0
},
{
"lineno": 20,
"description": "Line Description2",
"productkey": "Product Key/Search Key",
"chargename": "Charge Name(when Product is blank)",
"promiseddate": 1696271400000,
"taxname": "Tax Category Name",
"qty": 0.0,
"price": 0.0
}
]
}
Payload Attribute |
Type ( JAVA) |
Remarks |
Validations |
documentno |
String |
If Order Posted successfully the document no would be returned here |
|
bpartner |
String |
Customer/Vendor Search Key |
The value is validated against existing Values |
ordertype |
String |
Document Type Name of Sales Order or Purchase Order |
The value is validated against existing Values |
bpartner_location |
String |
Business partner location name, if left blank it would be taken from default values |
Optional |
orderdate |
Long(Timestamp value) |
Date of Order |
|
promiseddata |
Long(Timestamp value) |
Required Date of Order |
|
pricelist |
String |
Price List Name(if empty default is used) |
Optional |
warehouse |
String |
Name of Warehouse |
|
paymentterm |
String |
Payment Term Name(default immediate) |
Optional |
description |
String |
Order Description |
Optional |
ordersource |
String |
Order Source Name |
Optional |
salestransaction |
Boolean |
True for Sales order/False for Purchase order |
|
lines |
ArrayList<Lines) |
Contains arraylist of the lines of the order |
Atleast 1 line required to create the order |
lineno |
Integer |
Sequence of the Line |
|
description |
String |
Line Description |
Optional |
productkey |
String |
Product Key/Search Key |
Product or Charge is mandatory |
chargename |
String |
Charge Name(when Product is blank) |
Product or Charge is mandatory |
promiseddate |
Long(TimeStamp) |
Promised Date of Line |
|
taxname |
String |
Tax Category Name |
Optional, else will be taken from product master |
qty |
Double |
Qty of the Product |
|
price |
Double |
Price of Item |
Amount before tax is calculated as qty*price |
No Comments