---
title: "Update the status of the specified account's orders"
method: PUT
path: "/Pedidos"
tags: ["Pedidos: \n            Operations on orders\n            "]
---

# Update the status of the specified account's orders

`PUT /Pedidos`

## Request

- Base URL: `https://api.alephee.com`
- URL: `https://api.alephee.com/Pedidos`
- Auth: none declared

The indicated account number must correspond to the one authorized by the provided API KEY. Otherwise, an authentication error will occur.<br /><br />
First, you must obtain the corresponding Ids for the order items from the GET method.
The order status can be updated to:
<br />
• Sent = 20
<br />
• Delivered = 80
<br />
The result is a list of item id and current status, in case of error it is reported through the Status and Message fields.
<br />
It is necessary to iterate through the list of reported items to analyze the status of each order item.

## Query parameters

- `IdCuenta` integer, required

## Request body

- AlephWebApiModelsPedidosPedidoEstado[]
  - `IdPedidoItem` integer
  - `Estado` 20 | 80 | 90: 20 = Enviado, 80 = Entregado, 90 = Cancelado

## Response `200`

OK

- AlephWebApiModelsListResultAlephWebApiModelsPedidosResponsePedidoEstado
  - `CantidadItems` integer
  - `Items` AlephWebApiModelsPedidosResponsePedidoEstado[]
    - `Status` string
    - `Message` string
    - `ItemPedidoEstado` AlephWebApiModelsPedidosPedidoEstado
      - `IdPedidoItem` integer
      - `Estado` 20 | 80 | 90: 20 = Enviado, 80 = Entregado, 90 = Cancelado

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/alephee/apis/alephee-api-v1.md) - [All operations](https://skmtc.dev/alephee/apis/alephee-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/alephee/apis/alephee-api-v1/revisions/e5f66de76630?raw)
