# List Green Lots Retrieves a list of green lots from the inventory. Endpoint: POST /inventory.green.listGreenLots Security: oauth2 ## Request fields (application/json): - `params` (object) - `params.filter` (object) Defines all required and optional filter parameters for the operation. - `params.pagination` (object) Defines all required and optional pagination parameters for the operation. - `params.pagination.limit` (integer) The number of elements to be returned Example: 20 - `params.pagination.after` (string) The cursor to retrieve the next page. This is an opaque value that should not be interpreted by the client. Example: "aBc=" ## Response 200 fields (application/json): - `ok` (boolean) Indicates whether the request was successful. Example: true - `result` (object) Contains the response data of a successful request. - `result.greenLots` (array) - `result.greenLots.id` (string) The unique identifier of the green lot. Example: "550e8400-e29b-41d4-a716-446655440000" - `result.greenLots.name` (string) The name of the green lot. Example: "Ethiopia Natural" - `result.greenLots.icoNumber` (string) The ICO (International Coffee Organization) number associated with the green lot. Example: "5412" - `result.greenLots.externalId` (string) Represents the unique identifier of the imported green lot in an external system (e.g. ERP). Example: "green-lot-9876" - `result.greenLots.weight` (object) Represents the current weight of the object. - `result.greenLots.weight.amount` (number, required) The weight amount represented as floating-point number. Example: 12.5 - `result.greenLots.weight.unit` (string, required) The weight unit of the object. Enum: "KG", "LBS" - `result.greenLots.price` (object) Represents a price with an amount and a currency. - `result.greenLots.price.amount` (number, required) The price amount represented as floating-point number. Example: 25.5 - `result.greenLots.price.currency` (string, required) The currency of the price, represented as ISO 4217 currency code. Example: "USD" - `result.greenLots.location` (object) Represents the relationship between an internal object and its external identifier. - `result.greenLots.location.id` (string) The unique identifier of the object. Example: "550e8400-e29b-41d4-a716-446655440000" - `result.greenLots.location.externalId` (string) Represents the unique identifier of this object in an external system (e.g. ERP). Example: "location-1234" - `meta` (object) Contains the metadata (e.g. pagination information) of the response. - `meta.pagination` (object) Represents the pagination fields of the response. - `meta.pagination.endCursor` (string) Cursor value to retrieve the records of the next page. If there no further pages, this value is null. Example: "aBc=" ## Response 400 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 401 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 403 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 422 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided" ## Response 500 fields (application/json): - `ok` (boolean) Indicates whether the request was successful or not - `error` (object) - `error.code` (string) Specifies error code that can be handled programmatically. Example: "invalid_parameter" - `error.message` (string) A detailed description of the occurred error. Example: "Invalid parameter provided"