This page was automatically generated from tracezilla’s Swagger API documentation 2026-06-10

GET /lot-attributes/{attributeName}/values

Get list of Lot Attribute Values

Description

Returns list of Lot Attribute Values

Parameters (path)

Name Required Description Values
attributeName required The attribute to upsert a value for. internal, quality, size, state, specification, storage_bin, storage_bin_loc2, storage_bin_loc3, storage_bin_loc4, customs_status, eu_tariff_code, preservation, catch_method, fao_species_code, fao_fishing_area, product_destination, ewc_code, origin, origin_farm, origin_breeder, cutting, trim, pistol, age_of_animal, packaging, supplier_sku, date_extended, effective_ph, effective_temperature, enzyme_activity, diameter, thickness, whole, black_pieces, banana_strands, burnt_chips, evm, appearance, texture, flavour, density, shu, tmc, tyc, coliforms, ecoli, salmonella_spp, moisture, aflatoxin_b1, aflatoxin_total, pv, ffa, pah_benpyr, pah_sum, water_activity, ionizing_radiation, gmo, package_leaflet, foil, carton, pouch, label

Parameters (query)

Name Required Description Values
sortBy optional Field to sort by. Without sort specified it will sort first by ref and then name. value, ref, created_at, updated_at
sortDirection optional Direction of sort. asc, desc
keyword[ct] optional Search for attribute values using keyword. Allowed expression(s): ct  
value[eq] optional Search for attribute values using value. Allowed expression(s): eq, in, ct  
ref[eq] optional Search for attribute values using reference code. Allowed expression(s): eq, in, ct  
attribute[eq] optional Search for active lot attribute values. Allowed expression(s): eq  
include optional The resources that can be included in this request, delimited by a comma: on_skus  

Responses

200

successful operation

Response content JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "properties": {
          "id": {
            "description": "Id of the record",
            "type": "string",
            "format": "uuid",
            "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
          },
          "attribute": {
            "description": "Name of the attribute",
            "type": "string",
            "format": "string",
            "readOnly": "true",
            "example": "quality"
          },
          "value": {
            "description": "The value of the attribute",
            "type": "string",
            "format": "string",
            "example": "A string"
          },
          "ref": {
            "description": "A reference code that uniquely identifies the value",
            "type": "string",
            "format": "string",
            "example": "A string"
          },
          "version": {
            "description": "A version identifier",
            "type": "string",
            "format": "string",
            "example": "1.0"
          },
          "valid_to": {
            "description": "This attribute value is considered valid untill the end of this date",
            "type": "string",
            "format": "date",
            "example": "2025-12-31"
          },
          "created_at": {
            "description": "The time when the record was created in UTC date & time (Iso8601 ZuluString)",
            "type": "string",
            "format": "date-time",
            "readOnly": "true",
            "example": "2019-01-01T13:25:32.312Z"
          },
          "updated_at": {
            "description": "The time when the record was last updated in UTC date & time (Iso8601 ZuluString)",
            "type": "string",
            "format": "date-time",
            "readOnly": "true",
            "example": "2020-01-01T13:25:32.312Z"
          },
          "on_skus": {
            "description": "Information related to SKUs that has this attribute value as a default.\nNotice that these will only be included if *on_skus* are included in the include parameter",
            "type": "array",
            "items": {
              "properties": {
                "sku_id": {
                  "description": "Id of Sku",
                  "type": "string",
                  "format": "uuid",
                  "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
                },
                "sku_code": {
                  "description": "Sku code",
                  "type": "string",
                  "format": "string",
                  "example": "ABC1234"
                },
                "sku_global_name": {
                  "description": "Global name of SKU",
                  "type": "string",
                  "format": "string",
                  "example": "Burger"
                },
                "sku_active": {
                  "description": "If the SKU is active",
                  "type": "string",
                  "format": "boolean",
                  "example": false
                },
                "attribute_enabled": {
                  "description": "If the attribute is enabled on the SKU",
                  "type": "string",
                  "format": "boolean",
                  "example": true
                }
              },
              "type": "object"
            },
            "readOnly": true
          }
        },
        "type": "object"
      }
    },
    "links": {
      "description": "Links",
      "properties": {
        "first": {
          "description": "Link to the first page",
          "type": "string"
        },
        "last": {
          "description": "Link to the last page",
          "type": "string"
        },
        "next": {
          "description": "Link to the next page",
          "type": "string"
        },
        "prev": {
          "description": "Link to the previous page",
          "type": "string"
        }
      },
      "type": "object"
    },
    "meta": {
      "description": "Meta with pagination",
      "properties": {
        "current_page": {
          "description": "The current page",
          "type": "integer"
        },
        "from": {
          "description": "The starting position of the current page results",
          "type": "integer"
        },
        "last_page": {
          "description": "The last page",
          "type": "integer"
        },
        "path": {
          "description": "The current path of the request",
          "type": "string"
        },
        "per_page": {
          "description": "Records that are displayed pr request",
          "type": "integer"
        },
        "to": {
          "description": "The ending position of the current page results",
          "type": "integer"
        },
        "total": {
          "description": "Number of records that are matched by the current query",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}

406

not acceptable

500

internal server error

PUT /lot-attributes/{attributeName}/values

Create or update lot attribute value

Description

Create or update lot attribute value. When an *id* has been set an existing entity will be looked up and used for update. When an *id* is not present and the reference code is available this will be used as the key, otherwise the value will be used as the key.

Parameters (path)

Name Required Description Values
attributeName required The attribute to upsert a value for. internal, quality, size, state, specification, storage_bin, storage_bin_loc2, storage_bin_loc3, storage_bin_loc4, customs_status, eu_tariff_code, preservation, catch_method, fao_species_code, fao_fishing_area, product_destination, ewc_code, origin, origin_farm, origin_breeder, cutting, trim, pistol, age_of_animal, packaging, supplier_sku, date_extended, effective_ph, effective_temperature, enzyme_activity, diameter, thickness, whole, black_pieces, banana_strands, burnt_chips, evm, appearance, texture, flavour, density, shu, tmc, tyc, coliforms, ecoli, salmonella_spp, moisture, aflatoxin_b1, aflatoxin_total, pv, ffa, pah_benpyr, pah_sum, water_activity, ionizing_radiation, gmo, package_leaflet, foil, carton, pouch, label

Request body

Description

Data to store.

Required

This parameter is required.

Request body JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
  "properties": {
    "value_data": {
      "properties": {
        "id": {
          "description": "Id of the record",
          "type": "string",
          "format": "uuid",
          "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
        },
        "attribute": {
          "description": "Name of the attribute",
          "type": "string",
          "format": "string",
          "readOnly": "true",
          "example": "quality"
        },
        "value": {
          "description": "The value of the attribute",
          "type": "string",
          "format": "string",
          "example": "A string"
        },
        "ref": {
          "description": "A reference code that uniquely identifies the value",
          "type": "string",
          "format": "string",
          "example": "A string"
        },
        "version": {
          "description": "A version identifier",
          "type": "string",
          "format": "string",
          "example": "1.0"
        },
        "valid_to": {
          "description": "This attribute value is considered valid untill the end of this date",
          "type": "string",
          "format": "date",
          "example": "2025-12-31"
        },
        "created_at": {
          "description": "The time when the record was created in UTC date & time (Iso8601 ZuluString)",
          "type": "string",
          "format": "date-time",
          "readOnly": "true",
          "example": "2019-01-01T13:25:32.312Z"
        },
        "updated_at": {
          "description": "The time when the record was last updated in UTC date & time (Iso8601 ZuluString)",
          "type": "string",
          "format": "date-time",
          "readOnly": "true",
          "example": "2020-01-01T13:25:32.312Z"
        },
        "on_skus": {
          "description": "Information related to SKUs that has this attribute value as a default.\nNotice that these will only be included if *on_skus* are included in the include parameter",
          "type": "array",
          "items": {
            "properties": {
              "sku_id": {
                "description": "Id of Sku",
                "type": "string",
                "format": "uuid",
                "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
              },
              "sku_code": {
                "description": "Sku code",
                "type": "string",
                "format": "string",
                "example": "ABC1234"
              },
              "sku_global_name": {
                "description": "Global name of SKU",
                "type": "string",
                "format": "string",
                "example": "Burger"
              },
              "sku_active": {
                "description": "If the SKU is active",
                "type": "string",
                "format": "boolean",
                "example": false
              },
              "attribute_enabled": {
                "description": "If the attribute is enabled on the SKU",
                "type": "string",
                "format": "boolean",
                "example": true
              }
            },
            "type": "object"
          },
          "readOnly": true
        }
      },
      "type": "object"
    },
    "set_as_default_on_sku_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid",
        "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
      }
    },
    "set_as_default_on_sku_codes": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "string",
        "example": "ABC123"
      }
    }
  },
  "type": "object"
}

Responses

200

lot attribute value was updated

Response content JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
  "properties": {
    "properties": {
      "id": {
        "description": "Id of the record",
        "type": "string",
        "format": "uuid",
        "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
      },
      "attribute": {
        "description": "Name of the attribute",
        "type": "string",
        "format": "string",
        "readOnly": "true",
        "example": "quality"
      },
      "value": {
        "description": "The value of the attribute",
        "type": "string",
        "format": "string",
        "example": "A string"
      },
      "ref": {
        "description": "A reference code that uniquely identifies the value",
        "type": "string",
        "format": "string",
        "example": "A string"
      },
      "version": {
        "description": "A version identifier",
        "type": "string",
        "format": "string",
        "example": "1.0"
      },
      "valid_to": {
        "description": "This attribute value is considered valid untill the end of this date",
        "type": "string",
        "format": "date",
        "example": "2025-12-31"
      },
      "created_at": {
        "description": "The time when the record was created in UTC date & time (Iso8601 ZuluString)",
        "type": "string",
        "format": "date-time",
        "readOnly": "true",
        "example": "2019-01-01T13:25:32.312Z"
      },
      "updated_at": {
        "description": "The time when the record was last updated in UTC date & time (Iso8601 ZuluString)",
        "type": "string",
        "format": "date-time",
        "readOnly": "true",
        "example": "2020-01-01T13:25:32.312Z"
      },
      "on_skus": {
        "description": "Information related to SKUs that has this attribute value as a default.\nNotice that these will only be included if *on_skus* are included in the include parameter",
        "type": "array",
        "items": {
          "properties": {
            "sku_id": {
              "description": "Id of Sku",
              "type": "string",
              "format": "uuid",
              "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
            },
            "sku_code": {
              "description": "Sku code",
              "type": "string",
              "format": "string",
              "example": "ABC1234"
            },
            "sku_global_name": {
              "description": "Global name of SKU",
              "type": "string",
              "format": "string",
              "example": "Burger"
            },
            "sku_active": {
              "description": "If the SKU is active",
              "type": "string",
              "format": "boolean",
              "example": false
            },
            "attribute_enabled": {
              "description": "If the attribute is enabled on the SKU",
              "type": "string",
              "format": "boolean",
              "example": true
            }
          },
          "type": "object"
        },
        "readOnly": true
      }
    },
    "type": "object"
  },
  "type": "object"
}

201

lot attribute value was created

Response content JSON schema
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
  "properties": {
    "properties": {
      "id": {
        "description": "Id of the record",
        "type": "string",
        "format": "uuid",
        "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
      },
      "attribute": {
        "description": "Name of the attribute",
        "type": "string",
        "format": "string",
        "readOnly": "true",
        "example": "quality"
      },
      "value": {
        "description": "The value of the attribute",
        "type": "string",
        "format": "string",
        "example": "A string"
      },
      "ref": {
        "description": "A reference code that uniquely identifies the value",
        "type": "string",
        "format": "string",
        "example": "A string"
      },
      "version": {
        "description": "A version identifier",
        "type": "string",
        "format": "string",
        "example": "1.0"
      },
      "valid_to": {
        "description": "This attribute value is considered valid untill the end of this date",
        "type": "string",
        "format": "date",
        "example": "2025-12-31"
      },
      "created_at": {
        "description": "The time when the record was created in UTC date & time (Iso8601 ZuluString)",
        "type": "string",
        "format": "date-time",
        "readOnly": "true",
        "example": "2019-01-01T13:25:32.312Z"
      },
      "updated_at": {
        "description": "The time when the record was last updated in UTC date & time (Iso8601 ZuluString)",
        "type": "string",
        "format": "date-time",
        "readOnly": "true",
        "example": "2020-01-01T13:25:32.312Z"
      },
      "on_skus": {
        "description": "Information related to SKUs that has this attribute value as a default.\nNotice that these will only be included if *on_skus* are included in the include parameter",
        "type": "array",
        "items": {
          "properties": {
            "sku_id": {
              "description": "Id of Sku",
              "type": "string",
              "format": "uuid",
              "example": "be3233c4-c0a2-4f47-a62a-303492c20ba6"
            },
            "sku_code": {
              "description": "Sku code",
              "type": "string",
              "format": "string",
              "example": "ABC1234"
            },
            "sku_global_name": {
              "description": "Global name of SKU",
              "type": "string",
              "format": "string",
              "example": "Burger"
            },
            "sku_active": {
              "description": "If the SKU is active",
              "type": "string",
              "format": "boolean",
              "example": false
            },
            "attribute_enabled": {
              "description": "If the attribute is enabled on the SKU",
              "type": "string",
              "format": "boolean",
              "example": true
            }
          },
          "type": "object"
        },
        "readOnly": true
      }
    },
    "type": "object"
  },
  "type": "object"
}

406

not acceptable

500

internal server error