The Price data structure represents an amount of money in a given currency.
The Price data structure is used as a parameter for the following operations:
In a call to
CurrencyCode elements must be specified.
FormattedPrice is only used in responses
sent by the service.
The Price data structure is used in the HIT data structure.
The following example of a Price data structure could be passed
in to a call to
CreateHIT accepts parameters that describe
the HIT being created, including the reward the Worker will be
paid for completing the HIT successfully. For
CreateHIT, the parameter name is
Reward, and the value is a Price data
In a SOAP request, the Price data structure is specified as the
Reward parameter in XML:
<Reward> <Amount>0.32</Amount> <CurrencyCode>USD</CurrencyCode> </Reward>
In a REST request, the components of the Price data structure are specified as separate parameters:
The Price structure may contain the following elements.
The amount of money, as a number. The amount
is in the currency specified by the
A code that represents the country and units of the
currency. Its value is an ISO
4217 currency code, such as
An ISO 4217 currency code, such as
A textual representation of the price, using symbols and formatting appropriate for the currency. Symbols are represented using the Unicode character set.
You do not need to specify