curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lot_ids": [
2
]
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete"
payload = { "lot_ids": [2] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({lot_ids: [2]})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'lot_ids' => [
2
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete"
payload := strings.NewReader("{\n \"lot_ids\": [\n 2\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lot_ids\": [\n 2\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"lot_ids\": [\n 2\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Deleted 2 of 3 lot(s).",
"deleted": 2,
"failed": 1,
"results": [
{
"lot_id": 1234,
"status": "deleted",
"message": "Lot deleted."
}
]
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Bulk delete lots
Best-effort bulk soft-delete of lots. Each lot follows the same UI-parity
behavior as DELETE /lots/{lotId}: its regular on-hand stock is auto-cleared
(via an inventory adjustment posted by the authenticated user) and the lot is
soft-deleted. A per-lot failure — an unknown ID, or a lot whose stock could
not be cleared first (picklist-committed stock, no base unit of measure, or
stock remaining after the auto-clear adjustment) — is captured in that lot’s
results row and does not abort the rest of the batch, so the call
returns 200 even on a partial failure. Inspect deleted, failed, and
results for per-lot outcomes.
curl --request POST \
--url https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lot_ids": [
2
]
}
'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete"
payload = { "lot_ids": [2] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({lot_ids: [2]})
};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'lot_ids' => [
2
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete"
payload := strings.NewReader("{\n \"lot_ids\": [\n 2\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lot_ids\": [\n 2\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/lots/bulk-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"lot_ids\": [\n 2\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Deleted 2 of 3 lot(s).",
"deleted": 2,
"failed": 1,
"results": [
{
"lot_id": 1234,
"status": "deleted",
"message": "Lot deleted."
}
]
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Body
Lot IDs to delete. 1–200 per call; duplicates are de-duplicated.
1 - 200 elementsx >= 1Response
Batch processed. Always returned even when some lots failed — check the
per-lot results.