---
title: "WeightUnit"
description: "重量测量单位。"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/enums/weight-unit'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/enums/weight-unit.md'
---
# WeightUnit

重量测量单位。

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Enum

## Type Signature

`WeightUnit`

## Values

* `GRAMS`

  公制质量单位。

* `KILOGRAMS`

  1公斤等于1000克。

* `OUNCES`

  英制质量单位。

* `POUNDS`

  1 磅等于 16 盎司。

## Schema Definition

```graphql
enum WeightUnit { 
	GRAMS 
	KILOGRAMS 
	OUNCES 
	POUNDS  
}
```

## Field from

* [ProductVariant](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/objects/product-variant.md).weightUnit

  变体重量的测量单位。如果未指定 `weight_unit`，则将应用商店的默认测量单位

## Input field from

* [ProductVariantsBulkInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/inputs/product-variants-bulk-input.md).weightUnit

  变体重量的测量单位。如果未指定 `weight_unit`，则将使用商店的默认测量单位

* [ProductVariantInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/inputs/product-variant-input.md).weightUnit

  变体重量的测量单位。如果未指定 `weight_unit`，则将使用商店的默认测量单位

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

