List all scrap log entries
Retrieves all scrap log entries for the specified company, filtered by active status, ordered by log date descending.
path Parameters
companyIdThe unique identifier of the company
query Parameters
activeFilter by active status (true = active items, false = deleted items). Defaults to true.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
List all scrap log entries › Responses
List of scrap log entries retrieved successfully
loggedByNameDisplay name of the user who logged this entry
scrapLogIdUnique identifier for the scrap log entry
companyIdIdentifier of the owning company
logDateDate when the scrap was logged
binSkipReferenceBin or skip reference identifier
startingWeightStarting weight in kilograms
closingWeightClosing weight in kilograms
netWeightNet weight (calculated as ClosingWeight - StartingWeight) in kilograms
loggedByUser ID of the person who logged this entry
createdAtTimestamp when the record was created (UTC)
updatedAtTimestamp when the record was last updated (UTC)
activeSoft delete flag (true = active, false = deleted)
Update existing scrap log entries
Updates one or more existing scrap log entries. Each entry must belong to the specified company. Field-level change history is recorded automatically via temporal tables.
path Parameters
companyIdThe unique identifier of the company
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Update existing scrap log entries › Request Body
scrapLogIdlogDatebinSkipReferencestartingWeightclosingWeightUpdate existing scrap log entries › Responses
Scrap log entries updated successfully
loggedByNameDisplay name of the user who logged this entry
scrapLogIdUnique identifier for the scrap log entry
companyIdIdentifier of the owning company
logDateDate when the scrap was logged
binSkipReferenceBin or skip reference identifier
startingWeightStarting weight in kilograms
closingWeightClosing weight in kilograms
netWeightNet weight (calculated as ClosingWeight - StartingWeight) in kilograms
loggedByUser ID of the person who logged this entry
createdAtTimestamp when the record was created (UTC)
updatedAtTimestamp when the record was last updated (UTC)
activeSoft delete flag (true = active, false = deleted)
Create new scrap log entries
Creates one or more new scrap log entries for the specified company. Each entry will be associated with the companyId provided in the route and the current authenticated user.
path Parameters
companyIdThe unique identifier of the company
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Create new scrap log entries › Request Body
logDatebinSkipReferencestartingWeightclosingWeightloggedByCreate new scrap log entries › Responses
Scrap log entries created successfully
scrapLogIdUnique identifier for the scrap log entry
companyIdIdentifier of the owning company
logDateDate when the scrap was logged
binSkipReferenceBin or skip reference identifier
startingWeightStarting weight in kilograms
closingWeightClosing weight in kilograms
netWeightNet weight (calculated as ClosingWeight - StartingWeight) in kilograms
loggedByUser ID of the person who logged this entry
createdAtTimestamp when the record was created (UTC)
updatedAtTimestamp when the record was last updated (UTC)
activeSoft delete flag (true = active, false = deleted)
Delete scrap log entries
Soft deletes one or more scrap log entries by setting Active = 0. Temporal tables preserve the previous row state automatically.
path Parameters
companyIdThe unique identifier of the company owning the entries
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Delete scrap log entries › Responses
Scrap log entries deleted successfully
deletedCountNumber of items deleted
deletedIdsList of IDs that were deleted
Download scrap log as CSV
Downloads all scrap log entries for a company as a CSV file
path Parameters
companyIdThe unique identifier of the company
query Parameters
activeFilter by active status (true = active items, false = deleted items). Defaults to true.
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Download scrap log as CSV › Responses
CSV file with scrap log data
Get a scrap log entry by ID
Retrieves a single scrap log entry by its unique ID within the specified company.
path Parameters
companyIdThe unique identifier of the company that owns the scrap log entry
scrapLogIdThe unique identifier of the scrap log entry to retrieve
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get a scrap log entry by ID › Responses
Scrap log entry retrieved successfully
loggedByNameDisplay name of the user who logged this entry
scrapLogIdUnique identifier for the scrap log entry
companyIdIdentifier of the owning company
logDateDate when the scrap was logged
binSkipReferenceBin or skip reference identifier
startingWeightStarting weight in kilograms
closingWeightClosing weight in kilograms
netWeightNet weight (calculated as ClosingWeight - StartingWeight) in kilograms
loggedByUser ID of the person who logged this entry
createdAtTimestamp when the record was created (UTC)
updatedAtTimestamp when the record was last updated (UTC)
activeSoft delete flag (true = active, false = deleted)
Get scrap log change history
Returns field-level audit history for a specific scrap log entry, derived from SQL Server temporal tables.
path Parameters
companyIdThe unique identifier of the company
scrapLogIdThe unique identifier of the scrap log entry
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get scrap log change history › Responses
List of audit events for the scrap log entry
changedAtchangedByIdchangedByNamechangeTypeentityTypeentityLabelRestore deleted scrap log entries
Restores one or more soft-deleted scrap log entries by setting Active = 1.
path Parameters
companyIdThe unique identifier of the company owning the entries
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Restore deleted scrap log entries › Responses
Scrap log entries restored successfully
deletedCountNumber of items deleted
deletedIdsList of IDs that were deleted
Upload scrap log from CSV
Uploads and processes a CSV file to create scrap log entries in bulk
path Parameters
companyIdThe unique identifier of the company
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Upload scrap log from CSV › Responses
CSV uploaded and processed successfully
Get CSV upload template
Downloads a CSV template file with example scrap log data for bulk uploads
path Parameters
companyIdThe unique identifier of the company
Headers
AuthorizationThe Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Get CSV upload template › Responses
CSV template file with examples

