Page Summary
-
This document describes the
Priceobject, which is part of the deprecated Orders version 2 API. -
The
Priceobject includes atypeand anamount, which is represented by aMoneyobject. -
The
Moneyobject represents a monetary amount with its currency type, including fields for currency code, whole units, and nano units.
Price in order.
| JSON representation | |
|---|---|
{ "type": enum( |
|
| Fields | |
|---|---|
type |
Type of price. Required. |
amount |
Monetary amount. Required. |
Money
Represents an amount of money with its currency type.
| JSON representation | |
|---|---|
{ "currencyCode": string, "units": string, "nanos": number } |
|
| Fields | |
|---|---|
currencyCode |
The 3-letter currency code defined in ISO 4217. |
units |
The whole units of the amount. For example if |
nanos |
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |