cURL
curl -sS -X DELETE 'http://localhost:8081/api/v1/inventory-orders/{inventoryOrderId}' \
-H 'Authorization: ApiKey YOUR_API_KEY' \
-H 'Accept: application/json'import requests
url = "http://localhost:8081/api/v1/inventory-orders/{inventoryOrderId}"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('http://localhost:8081/api/v1/inventory-orders/{inventoryOrderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}Inventory Orders
Cancel inventory order
Cancels an inventory order. Allowed only when the order is in SUBMITTED status.
DELETE
http://localhost:8081
/
api
/
v1
/
inventory-orders
/
{inventoryOrderId}
cURL
curl -sS -X DELETE 'http://localhost:8081/api/v1/inventory-orders/{inventoryOrderId}' \
-H 'Authorization: ApiKey YOUR_API_KEY' \
-H 'Accept: application/json'import requests
url = "http://localhost:8081/api/v1/inventory-orders/{inventoryOrderId}"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('http://localhost:8081/api/v1/inventory-orders/{inventoryOrderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}{
"errors": [
{
"detail": "Invalid request",
"source": "request"
}
]
}⌘I