Why when I called this "VTEX" API, responses "The request is invalid"?

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
}
}

Hey Cristiano,
how are you? :slight_smile:

I think you’re using the Patch Items API, right?

As it seems a specific case, I believe the best you can do is opening a ticket to VTEX support, because some possible causes of this invalid requisition could be related to hidden informations in your cURL.

This article explains How to open tickets to VTEX support :slight_smile:

Count on us!