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:
CreateHIT
In a call to CreateHIT, the
Amount and
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.
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
structure.
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:
http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
[...]
&Reward.1.Amount=0.32
&Reward.1.CurrencyCode=USDThe Price structure may contain the following elements.
| Name | Description | Value |
|---|---|---|
Amount
|
The amount of money, as a number. The amount
is in the currency specified by the
|
A number |
CurrencyCode
|
A code that represents the country and units of the
currency. Its value is an ISO
4217 currency code, such as
Currently, only |
An ISO 4217 currency code, such as |
FormattedPrice
|
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
|
A string |