Quantity

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

An infinitely divisible representation of quantity. Uses the JSR-363 representation for measurement. See - https://jcp.org/en/jsr/detail?id=363

Fields

FieldDescription
amount (Decimal required)

The numerical count or magnitude of the item it represents.

unit (String)

Uses the Unit spec from JSR-363.