PATCH
/
v1
/
app
/
command
/
{command-id}
curl --request PATCH \
  --url https://api.centralcart.com.br/v1/app/command/{command-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "<string>",
  "response": "<string>",
  "reason": "<string>"
}'
{
  "status": "DONE",
  "response": "Command successful delivered"
}
command-id
string
required

O ID do comando a ser atualizado

status
string
required

Um dos seguintes: “DONE”, “FAILED”, “PENDING”, “CANCELED”.
Só será listado em queued commands se o status do comando for PENDENTE

response
string

Se o status for “DONE” ou “FAILED” você poderá fornecer algumas informações sobre a entrega

reason
string

Se o status for “CANCELADO” você poderá fornecer o motivo do cancelamento

{
  "status": "DONE",
  "response": "Command successful delivered"
}