Nlc Report Ep
POST/v1/nlc_report
NLC Report
Returns Net Landed Cost (NLC) report data for all inventory costing states within the specified date range.
Request
start_date: datetime
The start date for the NLC report period.
end_date: datetime
The end date for the NLC report period.
Response
The response includes NLC data for each inventory costing state:
results: list[NLCReportRow]
A list containing NLC data for each inventory costing state, including:
Show Child Attributes
site_name: str
Site identifier in format "number-name" (e.g., "00001-Seattle").
site_number: str
Site identifier in format "number-name" (e.g., "00001-Seattle").
date: str
Date in mm/dd/yyyy format.
tank: str
Tank number identifier.
uom: str
Unit of measure from the store's market profile (e.g., "Gal" for gallons, "L" for liters). Defaults to "Gal" if profile not found.
grade: str
Product grade or type.
beginning_inventory: float
Beginning inventory volume (2 decimal places).
forecasted_sales: float
Forecasted sales volume (2 decimal places).
actual_sales: float
Actual sales volume (3 decimal places).
ending_inventory: float
Ending inventory volume (3 decimal places).
beginning_inv_nlc: float
Beginning inventory Net Landed Cost price per unit (3 decimal places).
frcst_nlc: float
Forecasted Net Landed Cost price per unit (3 decimal places).
cogs_nlc: float
Cost of Goods Sold Net Landed Cost price per unit (3 decimal places).
ending_inv_nlc: float
Ending inventory Net Landed Cost price per unit (3 decimal places).
Responses
- 200
- 422
Successful Response
- application/json
- Example (from schema)
{
"results": [
{
"store_name": "string",
"store_number": "string",
"date": "string",
"tank": 0,
"uom": "string",
"product": "string",
"beginning_volume": 0,
"ending_volume": 0,
"beginning_value": 0,
"ending_value": 0,
"actual_sales_value": 0,
"forecasted_sales_volume": 0,
"actual_sales_volume": 0
}
],
"errors": [
"string"
]
}
Validation Error
- application/json
- Example (from schema)
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}