Hi,
There were a couple of issues with your JSON:
Ordertype SO does not support the "orderID" field
It's not possible to set discountCode, discountPercent and discountAmount in the same request
This will still generate an issue if you try to create a shipment from this as it has no warehouse, for more information on how the drop-ship flow works i Visma.Net, please have a look at this article:
Create a drop-ship order flow
Try using the JSON below:
{
"type": "SO",
"date": "2023-12-14T00:00:00",
"requestOn": "0001-01-01T00:00:00",
"cancelBy": "0001-01-01T00:00:00",
"description": "Prog-It testi",
"status": "Open",
"customer": {
"id": "10001",
"order": "10905"
},
"shipping": {
"scheduledDate": "0001-01-01T00:00:00",
"contact": {
"name": "JSC Tehnoinform"
},
"intrastatTransactionTypeId": 0,
"residentialDelivery": false,
"saturdayDelivery": false,
"insurance": false,
"priority": 0
},
"orderLines": [
{
"inventoryId": "nonstocktest",
"description": "Coated Paper Stocklot",
"unitOfMeasure": "STK",
"quantity": 23.762,
"unitCost": 0,
"unitPrice": 855,
"undershipThreshold": 0,
"overshipThreshold": 100,
"shipDate": "0001-01-01T00:00:00",
"requestDate": "0001-01-01T00:00:00",
"note": "Coated Paper Stocklot, 35 RO, 0 PX, 23762 KG NET/23762 KG GROSS, 48101300 CUSTOM CODE",
"hasManualPrice": true,
"commissionable": false,
"supplierPrice": 0
}
],
"useReplacementCostForMarginAndProfit": false,
"originalOrderId": "10905"
}
... View more