Amount

Version 2024-11-01

📘

Important

The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.

Overview

Represents a quantifiable amount, combining a numeric value with a unit of measurement. This type adheres to the JSR-363 specification for measurement representation. For more detailed information, please refer to the JSR-363 specification: https://jcp.org/en/jsr/detail?id=363

Fields

FieldDescription
unit (String)

Unit of measure for the amount.

value (Decimal required)

The numeric value of the amount. This represents the associated quantity or measure.