Waste Log by ID

Prev Next
Get
/public/v1/inventory/waste-logs/{id}

Retrieves a specified waste log

Security

The requesting user must have the following permission to retrieve a waste log:

  • Food → Waste Logs → View Waste Logs
Security
HTTP
Type Bearer
Header parameters
x-r365-context-tenant-id
stringRequired

Identifies the R365 tenant the request applies to. Required on every request.

Path parameters
id
integer (int64) Required

Identifier of the waste log

Responses
200

waste log entity

Expand All
object

Waste Log

id
integer (int64)

The unique identifier for the Waste Log.

number
string | null

Waste Log Number.

template
object (WasteLogTemplateReference)

A reference to a Waste Log Template.

id
integer (int64)

Unique identifier of the waste log template.

name
string | null

Display name of the waste log template.

date
string (date-time)

Waste Log Date.

location
object (InventoryLocationReference)

Represents a reference to a location.

id
string (uuid)

The id of the location.

name
string | null

The name of the location.

number
string | null

The location number.

totalAmount
number (double)

Total Amount.

lastComment
string | null

Last Comment.

status
string | null

status.

transactionId
string (uuid) | null

The transaction id for the Waste Log.

details
Array of object | null

List of Waste Log Details.

object

Waste Log Detail

id
integer (int64)

The unique identifier for the Waste Log detail.

item
object (PublicItemReference)

A reference to an item.

id
string (uuid)

Unique identifier of the public item.

name
string | null

Display name of the public item.

number
string | null

Number assigned to the public item.

itemType
string | null
unitOfMeasure
object (InventoryUnitOfMeasureReference)

A reference to a unit of measure.

id
string (uuid)

Unique identifier of the unit of measure.

name
string | null

Display name of the unit of measure.

costAccount
object (GeneralLedgerAccountReference)

A reference to a General Ledger Account.

id
string (uuid)

Unique identifier of the general ledger account.

name
string | null

Display name of the general ledger account.

number
string | null

Number assigned to the general ledger account.

wasteAccount
object (GeneralLedgerAccountReference)

A reference to a General Ledger Account.

id
string (uuid)

Unique identifier of the general ledger account.

name
string | null

Display name of the general ledger account.

number
string | null

Number assigned to the general ledger account.

quantity
number (double)

Quantity.

eachAmount
number (double)

Each Amount.

totalAmount
number (double)

Total Amount.

comment
string | null

Comment.

completedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

completedOn
string (date-time) | null

The date and time the waste log was completed.

createdBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

createdOn
string (date-time)

The date and time the waste log was created.

modifiedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

modifiedOn
string (date-time) | null

The date and time the waste log was last modified.

approvedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

approvedOn
string (date-time) | null

The date and time the waste log was approved.

Expand All
object

Waste Log

id
integer (int64)

The unique identifier for the Waste Log.

number
string | null

Waste Log Number.

template
object (WasteLogTemplateReference)

A reference to a Waste Log Template.

id
integer (int64)

Unique identifier of the waste log template.

name
string | null

Display name of the waste log template.

date
string (date-time)

Waste Log Date.

location
object (InventoryLocationReference)

Represents a reference to a location.

id
string (uuid)

The id of the location.

name
string | null

The name of the location.

number
string | null

The location number.

totalAmount
number (double)

Total Amount.

lastComment
string | null

Last Comment.

status
string | null

status.

transactionId
string (uuid) | null

The transaction id for the Waste Log.

details
Array of object | null

List of Waste Log Details.

object

Waste Log Detail

id
integer (int64)

The unique identifier for the Waste Log detail.

item
object (PublicItemReference)

A reference to an item.

id
string (uuid)

Unique identifier of the public item.

name
string | null

Display name of the public item.

number
string | null

Number assigned to the public item.

itemType
string | null
unitOfMeasure
object (InventoryUnitOfMeasureReference)

A reference to a unit of measure.

id
string (uuid)

Unique identifier of the unit of measure.

name
string | null

Display name of the unit of measure.

costAccount
object (GeneralLedgerAccountReference)

A reference to a General Ledger Account.

id
string (uuid)

Unique identifier of the general ledger account.

name
string | null

Display name of the general ledger account.

number
string | null

Number assigned to the general ledger account.

wasteAccount
object (GeneralLedgerAccountReference)

A reference to a General Ledger Account.

id
string (uuid)

Unique identifier of the general ledger account.

name
string | null

Display name of the general ledger account.

number
string | null

Number assigned to the general ledger account.

quantity
number (double)

Quantity.

eachAmount
number (double)

Each Amount.

totalAmount
number (double)

Total Amount.

comment
string | null

Comment.

completedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

completedOn
string (date-time) | null

The date and time the waste log was completed.

createdBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

createdOn
string (date-time)

The date and time the waste log was created.

modifiedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

modifiedOn
string (date-time) | null

The date and time the waste log was last modified.

approvedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

approvedOn
string (date-time) | null

The date and time the waste log was approved.

Expand All
object

Waste Log

id
integer (int64)

The unique identifier for the Waste Log.

number
string | null

Waste Log Number.

template
object (WasteLogTemplateReference)

A reference to a Waste Log Template.

id
integer (int64)

Unique identifier of the waste log template.

name
string | null

Display name of the waste log template.

date
string (date-time)

Waste Log Date.

location
object (InventoryLocationReference)

Represents a reference to a location.

id
string (uuid)

The id of the location.

name
string | null

The name of the location.

number
string | null

The location number.

totalAmount
number (double)

Total Amount.

lastComment
string | null

Last Comment.

status
string | null

status.

transactionId
string (uuid) | null

The transaction id for the Waste Log.

details
Array of object | null

List of Waste Log Details.

object

Waste Log Detail

id
integer (int64)

The unique identifier for the Waste Log detail.

item
object (PublicItemReference)

A reference to an item.

id
string (uuid)

Unique identifier of the public item.

name
string | null

Display name of the public item.

number
string | null

Number assigned to the public item.

itemType
string | null
unitOfMeasure
object (InventoryUnitOfMeasureReference)

A reference to a unit of measure.

id
string (uuid)

Unique identifier of the unit of measure.

name
string | null

Display name of the unit of measure.

costAccount
object (GeneralLedgerAccountReference)

A reference to a General Ledger Account.

id
string (uuid)

Unique identifier of the general ledger account.

name
string | null

Display name of the general ledger account.

number
string | null

Number assigned to the general ledger account.

wasteAccount
object (GeneralLedgerAccountReference)

A reference to a General Ledger Account.

id
string (uuid)

Unique identifier of the general ledger account.

name
string | null

Display name of the general ledger account.

number
string | null

Number assigned to the general ledger account.

quantity
number (double)

Quantity.

eachAmount
number (double)

Each Amount.

totalAmount
number (double)

Total Amount.

comment
string | null

Comment.

completedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

completedOn
string (date-time) | null

The date and time the waste log was completed.

createdBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

createdOn
string (date-time)

The date and time the waste log was created.

modifiedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

modifiedOn
string (date-time) | null

The date and time the waste log was last modified.

approvedBy
object (GlAccountUserReference)

A reference to a user.

id
string (uuid)

The unique identifier of the user.

name
string | null

The name of the user.

approvedOn
string (date-time) | null

The date and time the waste log was approved.

400

Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range.

401

Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant.

403

Forbidden — the caller lacks the permission required for this operation.

404

Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired.

409

Conflict — the request conflicts with the current state of the resource and cannot be applied.

422

Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid.

429

Too Many Requests — the caller has exceeded the rate limit; retry after a short delay.

500

Internal Server Error — an unexpected error occurred while processing the request.