# Request and Response

## Delete a given order for the indicated account

<mark style="color:red;">`DELETE`</mark> `https://api.alephcrm.com/v2/orders`

#### Query Parameters

| Name                                         | Type    | Description    |
| -------------------------------------------- | ------- | -------------- |
| API\_KEY<mark style="color:red;">\*</mark>   | String  | (default=none) |
| accountId <mark style="color:red;">\*</mark> | Integer | (default=none) |
| orderId                                      | Integer |                |
| revertStock                                  | Boolean |                |

{% tabs %}
{% tab title="204: No Content " %}

{% endtab %}

{% tab title="304: Not Modified {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="400: Bad Request {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="401: Unauthorized {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="403: Forbidden {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="404: Not Found {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="412: Precondition Failed {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="429: Too Many Requests {"Status": integer, "Message": string}" %}

{% endtab %}

{% tab title="500: Internal Server Error string" %}

{% endtab %}
{% endtabs %}

## Parameters details

### API\_KEY

The API\_KEY that was provided.

### accountId

The Alephee account ID of the shipping label you are trying to get.

### orderId

Alephee internal ID to identify the order.

### revertStock

Indicates if you want to reverse the stock movement and return the inventory quantities to the products after deleting an order.\
For example, an order was created that includes 5 units of product "XYZ". Those 5 units were removed from the available stock of the product. When the order is deleted, the stock movement will be reversed, and the 5 units will be returned to the "XYZ" product available stock.\
The user indicates whether he wants this behavior or not.
