# Set Shipping Weight Via CatalogueBatchUpsert. Item or Item\_var

**URL:** <https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054>\
**Category:** Questions\
**Tags:** catalog-api\
**Created:** [September 22, 2025, 4:43pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054 "2025-09-22T16:43:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![zochie](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zochie](https://developer.squareup.com/forums/u/zochie)\
**Post date:** [September 22, 2025, 4:43pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/1 "2025-09-22T16:43:16Z")

</div>

Hi there.  
I’ve been searching through the forums here about shipping rates and weights by item (or item variation) in the square API, But I’ve only found manual options or [functionality to be added]’s from years ago.

Is there currently a way to reach the item variation/s child object weight via the api? It seems like a valuable add to me, and I’m wondering why I can’t find more about it.

 ![image](https://global.discourse-cdn.com/square/original/2X/d/dbaa07e2807706464448bec269f46e8d54936c33.png)

I’ll recreate my item catalog in any way that supports me being able to pass in a weight for every orderable item on my online square page. Or have my ‘Shipping rate by weight"‘ be mapped to a custom attribute that I call shipping\_weight and set myself.

Please advise! Thank you.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [September 22, 2025, 4:44pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/2 "2025-09-22T16:44:13Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Define Item Variations Using Options](https://developer.squareup.com/docs/catalog-api/item-options)**
>
> Learn how to use item options to simplify the process of creating standard variants for catalog items.

> **[Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog)**
>
> When designing a product catalog, learn where to draw the line between an item, item variation, and item modifier.

> **Additional Documentation**
>
> [Build and Manage a Simple Inventory](https://developer.squareup.com/docs/inventory-api/build-with-inventory)  
> [Apply Catalog Taxes to Orders](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes)  
> [Add a Catalog Item](https://developer.squareup.com/docs/catalog-api/build-with-catalog)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![zochie](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zochie](https://developer.squareup.com/forums/u/zochie)\
**Post date:** [September 22, 2025, 5:03pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/3 "2025-09-22T17:03:31Z")

</div>

This doesn’t solve my issue.

The following is an aged example of what I’m looking for, [Field "weight" for products - #2 by Bryan-Square](https://developer.squareup.com/forums/t/field-weight-for-products/6587/2)

Is that (using node as an example):  
customAttributeValues: {  
weight: { stringValue: slab.[MY\_CALC’D\_WEIGHT] },  
}  
?

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [September 22, 2025, 5:04pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/4 "2025-09-22T17:04:37Z")

</div>

As of the latest information available, the Square Catalog API does not natively support a specific field for item weight within the item variation or item objects. However, you can achieve your goal by using custom attributes to store and manage the weight of each item variation.

Here’s how you can proceed:

1. **Create a Custom Attribute Definition** : Use the Catalog API to create a custom attribute definition for weight. This will allow you to store weight information for each item variation. You can define this attribute as a number type to store the weight value.

2. **Assign Custom Attributes to Item Variations** : Once the custom attribute definition is created, you can assign a weight value to each item variation using the custom attribute. This will allow you to manage and retrieve the weight information programmatically.

3. **Use the Custom Attribute in Your Application** : When calculating shipping rates, you can retrieve the weight custom attribute for each item variation in an order and use it to determine the shipping cost based on the total weight.

By using custom attributes, you can effectively manage and utilize item weights in your application, even though the Catalog API does not directly support a weight field. This approach provides flexibility and allows you to integrate weight-based shipping calculations into your workflow.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![zochie](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zochie](https://developer.squareup.com/forums/u/zochie)\
**Post date:** [September 22, 2025, 5:09pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/5 "2025-09-22T17:09:37Z")

</div>

Is that functionality available in square’s online site package?

 ![image](https://global.discourse-cdn.com/square/original/2X/9/92be556457e90a127d2bbe22f1057913f9549598.png)

---

<div class="post-metadata">

**Author:** ![zochie](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zochie](https://developer.squareup.com/forums/u/zochie)\
**Post date:** [September 22, 2025, 5:12pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/6 "2025-09-22T17:12:36Z")

</div>

Also…It doesn’t seem that #1 in your suggestion is possible according to: [Custom Attributes](https://developer.squareup.com/docs/devtools/customattributes/overview)

As catalog does not have a custom attributes call

---

<div class="post-metadata">

**Author:** ![zochie](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zochie](https://developer.squareup.com/forums/u/zochie)\
**Post date:** [September 22, 2025, 5:15pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/7 "2025-09-22T17:15:17Z")

</div>

@Bryan-Square halp pleae, I fear the dev AI is lying

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 22, 2025, 6:08pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/8 "2025-09-22T18:08:39Z")

</div>

Catalog has [custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes) that you can use for this use case. 🙂

---

<div class="post-metadata">

**Author:** ![zochie](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zochie](https://developer.squareup.com/forums/u/zochie)\
**Post date:** [September 23, 2025, 3:20pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/9 "2025-09-23T15:20:04Z")

</div>

Thank you so much, Bryan! Your suggestion works to pass in a custom field I generate called Weight. Unfortunately it doesn’t solve my use case, as I’m looking to calculate shipping rates on my square store using weight per item variation.

 ![image](https://global.discourse-cdn.com/square/original/2X/6/6a665ecb49dad5f14ecc41aa167365c4d1c8ebe1.png)

It appears that custom variable’s aren’t able to be accessed by something like a shipping rate calculation on square’s online stores. The weight field under Item Library \> Item \> Edit Variation is the one I wish to populate dynamically. Are there any plans on the dev roadmap to add this functionality to the catalog API?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [September 23, 2025, 4:15pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/10 "2025-09-23T16:15:35Z")

</div>

That is correct. At this time that isn’t currently available. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. 🙂

---

<div class="post-metadata">

**Author:** ![zochie](https://avatars.discourse-cdn.com/v4/letter/z/a3d4f5/32.png) [@zochie](https://developer.squareup.com/forums/u/zochie)\
**Post date:** [September 23, 2025, 5:09pm UTC](https://developer.squareup.com/forums/t/set-shipping-weight-via-cataloguebatchupsert-item-or-item-var/24054/11 "2025-09-23T17:09:23Z")

</div>

Thank you so much for your help! I hope it gets added relatively soon, but I know dev roadmaps can be tricky.

Thanks again!
