Weight disappeared from item_variation_data?

There was a Weight field being returned in item_variation_data and now it seems to have disappeared. Is it coming back? Is it somewhere else?

Thanks

The weight field was an undocumented field and shouldn’t be relied on. We hope to have more for you in the future. :slight_smile:

What a undocumented field means Bryan? So, I cant access the weight in any API now?

Thanks

Do you have an example of what you were seeing before and what the API is returning now? :slight_smile:

I am implementing now a integration btw Square and Shopify. When I do a catalog_search, the field weight is not coming. Is impossible to get its data from the API?

[{ type: 'ITEM',
     id: 'SLS5DSWQOP5UCHUPVSAFVE3W',
     updated_at: '2023-08-30T18:55:03.208Z',
     created_at: '2022-01-24T23:38:46.964Z',
     version: 1_693_421_703_208,
     is_deleted: false,
     present_at_all_locations: true,
     item_data: { name: 'CM: HI FROM SAN DIEGO TOTE',
                  description: 'Say hello to the CM: Hi from San Diego Tote! With its stylish design, durable construction, and spacious interior, this tote is the perfect companion for your everyday  adventures. Carry your essentials in style and make a statement wherever you go with this must-have accessory!',
                  is_taxable: true,
                  visibility: 'PRIVATE',
                  category_id: 'EEZUV3B56S6XD2MUXLPTCC6Z',
                  tax_ids: %w[Z2BFZF6PVCKOVB2I4M53GYU4
                              JOOIOCZ2UQBM7VGWXY5Z5YWE
                              V5SXINOBAWXOLMJBSLA2SGQL
                              WMD5KEHYLXNWBXPIVJK6TKWE],
                  variations: [{ type: 'ITEM_VARIATION',
                                 id: 'TILQOUCO6BMZLLX4IM7FMS5D',
                                 updated_at: '2023-08-30T18:55:03.208Z',
                                 created_at: '2022-01-24T23:38:46.964Z',
                                 version: 1_693_421_703_208,
                                 is_deleted: false,
                                 custom_attribute_values: { "Square:8938af7b-f28a-454d-9535-aefb90b96e90": { name: 'shopify',
                                                                                                             custom_attribute_definition_id: 'J2X7RMW72WZYYWOHHBVLDZUX',
                                                                                                             type: 'BOOLEAN',
                                                                                                             boolean_value: true,
                                                                                                             key: 'Square:8938af7b-f28a-454d-9535-aefb90b96e90' } },
                                 present_at_all_locations: true,
                                 item_variation_data: { item_id: 'SLS5DSWQOP5UCHUPVSAFVE3W',
                                                        name: 'Regular',
                                                        sku: 'CM-HISDT',
                                                        ordinal: 1,
                                                        pricing_type: 'FIXED_PRICING',
                                                        price_money: { amount: 2000, currency: 'USD' },
                                                        location_overrides: [{ location_id: '3GPC8TJJ7FHE3', track_inventory: true },
                                                                             { location_id: '3X0Z6H9T4XN7Y',
                                                                               track_inventory: true },
                                                                             { location_id: 'EE21XC67WA6V9',
                                                                               track_inventory: true,
                                                                               sold_out: true },
                                                                             { location_id: 'L0VVEFBQ3H4FP',
                                                                               track_inventory: true,
                                                                               sold_out: true },
                                                                             { location_id: 'LBFGPZVQD6FZR',
                                                                               track_inventory: true },
                                                                             { location_id: 'LG99RJG0TV69C',
                                                                               track_inventory: true }],
                                                        track_inventory: true,
                                                        sellable: true,
                                                        stockable: true,
                                                        default_unit_cost: { amount: 500, currency: 'USD' },
                                                        channels: ['CH_aRsGwa3suhDSj4oHKCsF1EYjLlbKjbYYzWgjwQlQuYC'],
                                                        item_variation_vendor_info_ids: ['KM5GUQT3AOUYM6YKK772IC6Y'],
                                                        item_variation_vendor_infos: [{ type: 'ITEM_VARIATION_VENDOR_INFO',
                                                                                        id: 'KM5GUQT3AOUYM6YKK772IC6Y',
                                                                                        updated_at: '2022-01-24T23:39:40.442Z',
                                                                                        created_at: '2022-01-24T23:39:40.442Z',
                                                                                        version: 1_643_067_580_442,
                                                                                        is_deleted: false,
                                                                                        present_at_all_locations: true,
                                                                                        item_variation_vendor_info_data: { ordinal: 1,
                                                                                                                           price_money: { amount: 500,
                                                                                                                                          currency: 'USD' },
                                                                                                                           item_variation_id: 'TILQOUCO6BMZLLX4IM7FMS5D',
                                                                                                                           vendor_id: 'VY3M57VPX63MGL3K' } }] } }],
                  product_type: 'REGULAR',
                  skip_modifier_screen: false,
                  ecom_uri: '',
                  ecom_image_uris: ['https://communalcoffee.square.site/uploads/1/3/1/3/131354597/s883638558196564168_p8197_i1_w483.png'],
                  ecom_available: false,
                  ecom_visibility: 'UNINDEXED',
                  image_ids: ['IFXSZIVXYYRKVFPIKADVDWDF'],
                  pickup_fulfillment_preferences_id: 'fprefs_127cykp77kqutf1xemnf9agwm',
                  delivery_fulfillment_preferences_id: 'fprefs_127hrtl22yd5iiboyxtjlwdzz',
                  description_html: '<p>Say hello to the CM: Hi from San Diego Tote! With its stylish design, durable construction, and spacious interior, this tote is the perfect companion for your everyday  adventures. Carry your essentials in style and make a statement wherever you go with this must-have accessory!</p>',
                  description_plaintext: 'Say hello to the CM: Hi from San Diego Tote! With its stylish design, durable construction, and spacious interior, this tote is the perfect companion for your everyday  adventures. Carry your essentials in style and make a statement wherever you go with this must-have accessory!',
                  channels: ['CH_aRsGwa3suhDSj4oHKCsF1EYjLlbKjbYYzWgjwQlQuYC'] } }]

Until recently, it was a member of item_variation_data.