# Eliminar orden - deleteOrder

##### <span class="api-method" data-method="POST">POST</span> https://api.service24gps.com/api/v1/ondelivery/deleteOrder

Este método permite editar una orden.

<details class="mb-m" id="bkmrk-body-parametersparam"><summary class="text-muted">Ver parámetros de solicitud:</summary>

<div><table class="table" style="width: 809px; height: 946px;"><tbody><tr style="height: 41px;"><th style="width: 163px; height: 41px;">Parámetros</th><th style="width: 353px; height: 41px;">Descripción</th><th style="width: 293px; height: 41px;">Ejemplo</th></tr><tr style="height: 41px;"><td style="width: 163px; height: 41px;">apikey</td><td style="width: 353px; height: 41px;">Llave de autorización para uso de los Servicios Web.</td><td style="width: 293px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">25sdsd234234aa93sdsdsd37c70118e72</span></td></tr><tr style="height: 41px;"><td style="width: 163px; height: 41px;">token</td><td style="width: 353px; height: 41px;">Token devuelto por el método getToken.</td><td style="width: 293px; height: 41px;"><span role="presentation" style="padding-right: 0.1px; color: #3366ff;">wfszR/oPIQKjt5HT5NgjDnZ2SAZQ==</span></td></tr><tr><td style="width: 163px;">order\_id</td><td style="width: 353px;">Identificador único de la orden.

</td><td style="width: 293px;"><span style="color: #3366ff;">5309</span></td></tr></tbody></table>

</div></details>##### Solicitud de ejemplo:

```shell
curl --location --request POST 'http://api.service24gps.com/api/v1/ondelivery/deleteOrder' \
--header 'Cookie: PHPSESSID=bk9ighpj0cmprh88e7nift0kkb' \
--form 'apikey="25sdsd234234aa93sdsdsd37c70118e72"' \
--form 'token="SwfszR/oPIQKjt5HT5NgjDnZ2SAZQ=="' \
--form 'order_id="5307"'
```

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "status": "ok",
        "message": "El pedido ha sido eliminado"
    }
}
```

En caso de no encontrarse la orden muestra la siguiente respuesta.

##### Respuesta de ejemplo:

```JSON
{
    "status": 200,
    "data": {
        "status": "error",
        "message": "No se encontró el pedido"
    }
}
```