Weight
Stay organized with collections
Save and categorize content based on your preferences.
The weight represented as the value in string and the unit.
JSON representation |
{
"unit": enum (WeightUnit ),
"amountMicros": string
} |
Fields |
unit |
enum (WeightUnit )
Required. The weight unit. Acceptable values are: kg and lb
|
amountMicros |
string (int64 format)
Required. The weight represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-31 UTC.
[null,null,["Last updated 2025-07-31 UTC."],[],[],null,["# Weight\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe weight represented as the value in string and the unit.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------|\n| ``` { \"unit\": enum (/merchant/api/reference/rest/Shared.Types/WeightUnit), \"amountMicros\": string } ``` |\n\n| Fields ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `unit` | `enum (`[WeightUnit](/merchant/api/reference/rest/Shared.Types/WeightUnit)`)` Required. The weight unit. Acceptable values are: kg and lb |\n| `amountMicros` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The weight represented as a number in micros (1 million micros is an equivalent to one's currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value. |"]]