I used this reference: Cart Update
My Real Sample Is… (I removed my sensetive data)
curl --request PATCH
–url https://myaccountname.myenviroment.com.br/api/checkout/pub/orderForm/{my-order-hash-id}/items
–header ‘Accept: application/json’
–header ‘Content-Type: application/json’
–header ‘X-VTEX-API-AppKey: MYAPPKEY’
–header ‘X-VTEX-API-AppToken: MYAPPTOKEN’
–data ’
{
“orderItems”: [
{
“quantity”: 1,
“index”: 1,
“seller”: “1”,
“id”: “1”
}
]
}
’
Response:
{
“Fields”: {},
“operationId”: “operation-hash-id”,
“error”: {
“code”: “1”,
“message”: “A requisição é inválida”,
“exception”: null
}
}