Hi George, here is what you need to do :
1. Get the Etag for Sales Line that you want to update, in this example is line no. 10000
GET salesOrders(0b57e18a-5d93-475e-b9d2-fe63a6e307dd)/salesOrderLines(documentId=(0b57e18a-5d93-475e-b9d2-fe63a6e307dd),sequence=(10000))
"@odata.etag": "W/\"JzQwO1pCVUFBQUNSaXVGWEM1TmRYa2U1MHY1anB1TUgzUUNIRUNjQUFBQUExOzAwOyc=\"",
Take note the etag response value .
2. Update the sales line for line no. 10000
PATCH salesOrders(0b57e18a-5d93-475e-b9d2-fe63a6e307dd)/salesOrderLines(documentId=(0b57e18a-5d93-475e-b9d2-fe63a6e307dd),sequence=(10000))
Take note at the request header you must put the etag from step 1 like below :
IF-Match value = W/"JzQwO1pCVUFBQUNSaXVGWEM1TmRYa2U1MHY1anB1TUgzUUNIRUNjQUFBQUExOzAwOyc="
let say , you just want to change the quantity to 10 , put in the body like below ( Sequence field is mandatory in the body) :
{
"sequence":10000,
"quantity":10
}
Here is the result which i tried in postman :
