curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview', 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/posted-quantity-corrections/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Posted quantity correction preview.",
"data": {
"transaction_type": "assembly_order",
"transaction_id": 123,
"sku": "<string>",
"old_quantity": 123,
"new_quantity": 123,
"onhand_delta": 123,
"message": "Rewritten quantity logs were rematerialized into Core where Core tables exist.",
"correction_id": 123,
"adjustment_id": 123,
"balancing_entry": {
"date": "2026-10-19",
"lines": [
{
"sku": "<string>",
"quantity": 123,
"onhand_after": 123
}
]
},
"requires_full_core_rebuild": false
}
}{
"message": "<string>",
"error": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Preview a posted quantity correction
Previews rewriting the posted finished-good quantity of one completed
historical transaction, without writing anything. Returns the same shape as
POST /posted-quantity-corrections, minus correction_id.
Supported transaction_type values:
transaction_type | transaction_id |
|---|---|
assembly_order | Assembly order ID |
disassembly_order | Disassembly order ID |
The same eligibility and balancing rules as the save endpoint apply
(completed order, exactly one finished-good on-hand log, new quantity differs
from the posted quantity, transaction_type matches the order’s actual type).
By default the preview includes the balancing_entry that would be posted so
today’s on-hand does not move; pass allow_shelf_change=true to preview the
shelf absorbing the delta instead. See POST /posted-quantity-corrections.
curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview', 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/posted-quantity-corrections/preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/posted-quantity-corrections/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"message": "Posted quantity correction preview.",
"data": {
"transaction_type": "assembly_order",
"transaction_id": 123,
"sku": "<string>",
"old_quantity": 123,
"new_quantity": 123,
"onhand_delta": 123,
"message": "Rewritten quantity logs were rematerialized into Core where Core tables exist.",
"correction_id": 123,
"adjustment_id": 123,
"balancing_entry": {
"date": "2026-10-19",
"lines": [
{
"sku": "<string>",
"quantity": 123,
"onhand_after": 123
}
]
},
"requires_full_core_rebuild": false
}
}{
"message": "<string>",
"error": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.
Query Parameters
Type of transaction to correct.
assembly_order, disassembly_order ID of the transaction (assembly or disassembly order ID).
x >= 1New finished-good quantity. Must be greater than zero.
x > 0Date of the balancing adjustment. Not in the future. When omitted (and
allow_shelf_change is not true) the balancing entry is dated today.
true skips the balancing adjustment so today's on-hand moves by
onhand_delta. Rejected (422) when a later shipment, transfer, count or
adjustment already exists on the finished-good stock.