Hi Experts,
I am facing an issue while update any field of Sales Order Line. Below are the details.
URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrders(SalesOrder ID)?$expand=salesOrderLines
with headers : Content-Type: Application/son, if-match: *
Body :
{
"prepayment": 40,
"salesOrderLines": [
{
"quantity": 25,
"unitPrice": 2000,
}
]
}
Response:
{
"@odata.etag": "W/\"JzIwOzEwMTIxNjUwMjAwMDU2MzY4ODQ2MTswMDsn\"",
"no": "1006",
"documentType": "Order",
"selltoCustomerNo": "C000001",
"prepayment": 40,
"salesOrderLines": []