You are browsing the documentation for a deprecated version ('2014-08-15') of the Amazon Mechanical Turk Requester API. This version of the API will be deprecated and will be rendered unusable as of June 1st, 2019. If you request against a legacy API version (https://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI-legacy/Welcome.html) on or after June 1, 2019, you will receive the following response:
The latest version of our API ('2017-01-17') provides you with additional tool choices and enables you to select from nine AWS Software Development Kits This version also updates naming conventions used in the API and adopts the AWS standard of Signature Version 4 to authenticate requests securely. The API uses REST requests and no longer requires that developers be familiar with SOAP protocol. These changes make the MTurk API consistent with AWS APIs, simplifying the on-boarding process for both new and existing AWS developers. The legacy MTurk Command Line Tools and .NET, Java, Ruby, and Perl SDKs were marked as deprecated in January 2018. We will be deprecating the legacy APIs as of June 1, 2019. If you are on a legacy API, you must migrate to the latest
version of our API. You can find documentation for the latest API here and the AWS SDKs here For support, contact requestor-apilegacydeprecation-support@amazon.com |
Price
Description
The Price data structure represents an amount of money in a given currency.
The Price data structure is used in the HIT data structure.
The Price data structure is used as a parameter for the following operations:
-
CreateHIT
When you call the CreateHIT operation,
you must specify the Amount
and CurrencyCode
elements. The FormattedPrice
element is only used in responses sent by the
service.
Elements
The Price structure can contain the elements described in the following table:
Name | Description | Required |
---|---|---|
|
The amount of money, as a number. The amount is in the currency
specified by the Type: Number Default: None |
No |
|
A code that represents the country and units of the currency. Its value is Type an ISO
4217 Default: None Constraints: Currently, only |
No |
|
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
Type: String Default: None |
No |
Example
The following example shows how you can pass a Price data structure in a call to the CreateHIT operation. The CreateHIT operation 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:
https://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
[...]
&Reward.1.Amount=0.32 &Reward.1.CurrencyCode=USD