Get a defective report
curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/defective-reports/{defectiveReportId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/defective-reports/{defectiveReportId}"
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/defective-reports/{defectiveReportId}', 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/defective-reports/{defectiveReportId}",
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/defective-reports/{defectiveReportId}"
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/defective-reports/{defectiveReportId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/defective-reports/{defectiveReportId}")
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{
"id": 123,
"reported_date": "2026-11-03",
"reported_by": "<string>",
"reported_at": "<string>",
"defect_type": 10,
"total_quantity": "<string>",
"total_cost": 123,
"total_tax": 123,
"status": 123,
"created_by": 123,
"updated_by": 123,
"created_at": "<string>",
"updated_at": "<string>",
"defective_report_rfq": [
{
"id": 123,
"defective_report_id": 123,
"purchase_order_id": 123,
"purchase_order_rfq_id": 123,
"quantity": "2.000000",
"defective_uom_id": 123,
"base_uom_id": 123,
"defective_qty": "<string>",
"unit": "pcs",
"unit_price": 123,
"line_total": 123,
"remarks": "<string>",
"factory_id": 123,
"factory_name": "<string>",
"receiving_report_id": 123,
"received_date": "2023-12-25",
"sku": "<string>",
"product_name": "<string>",
"stock_id": 123,
"location_id": 123,
"lot_id": 123,
"created_at": "<string>",
"updated_at": "<string>",
"purchase_order_rfq": {},
"factory": {},
"stock": {},
"rfq": {}
}
]
}{
"message": "<string>"
}{
"error": "Defective report not found."
}Defective Reports
Get a defective report
Get one defective report with its lines. Deleted reports return 404.
GET
/
defective-reports
/
{defectiveReportId}
Get a defective report
curl --request GET \
--url https://{companyName}.api.joinluminous.com/external/api/v1/defective-reports/{defectiveReportId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://{companyName}.api.joinluminous.com/external/api/v1/defective-reports/{defectiveReportId}"
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/defective-reports/{defectiveReportId}', 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/defective-reports/{defectiveReportId}",
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/defective-reports/{defectiveReportId}"
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/defective-reports/{defectiveReportId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{companyName}.api.joinluminous.com/external/api/v1/defective-reports/{defectiveReportId}")
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{
"id": 123,
"reported_date": "2026-11-03",
"reported_by": "<string>",
"reported_at": "<string>",
"defect_type": 10,
"total_quantity": "<string>",
"total_cost": 123,
"total_tax": 123,
"status": 123,
"created_by": 123,
"updated_by": 123,
"created_at": "<string>",
"updated_at": "<string>",
"defective_report_rfq": [
{
"id": 123,
"defective_report_id": 123,
"purchase_order_id": 123,
"purchase_order_rfq_id": 123,
"quantity": "2.000000",
"defective_uom_id": 123,
"base_uom_id": 123,
"defective_qty": "<string>",
"unit": "pcs",
"unit_price": 123,
"line_total": 123,
"remarks": "<string>",
"factory_id": 123,
"factory_name": "<string>",
"receiving_report_id": 123,
"received_date": "2023-12-25",
"sku": "<string>",
"product_name": "<string>",
"stock_id": 123,
"location_id": 123,
"lot_id": 123,
"created_at": "<string>",
"updated_at": "<string>",
"purchase_order_rfq": {},
"factory": {},
"stock": {},
"rfq": {}
}
]
}{
"message": "<string>"
}{
"error": "Defective report not found."
}Authorizations
Response
Successful response
A defective report from Inventory > Defectives.