Price - Amazon Mechanical Turk

WARNING

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:

This Requester API is no longer supported. Please use the latest API using the official AWS SDK. https://aws.amazon.com/getting-started/tools-sdks

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 (SDKs) that have been widely adopted across the AWS community. This API can be accessed using the following AWS SDKs: Python/Boto (Boto3), Javascript (NodeJS or Browser), Java, .NET, Go, Ruby, PHP or C++. This version also makes it easier for customers to connect MTurk with other AWS services like S3, Lambda, Step Functions, Lex, Polly, Rekognition, Amazon SageMaker, AWS Batch, EC2, and more.

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. Please check whether you need to migrate and review the technical migration guide.

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

Amount

The amount of money, as a number. The amount is in the currency specified by the CurrencyCode. For example, if CurrencyCode is USD, the amount will be in United States dollars (e.g. 12.75 is $12.75 US).

Type: Number

Default: None

No

CurrencyCode

A code that represents the country and units of the currency. Its value is

Type an ISO 4217 currency code, such as USD for United States dollars.

Default: None

Constraints: Currently, only USD is supported.

No

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 FormattedPrice in a request. It is only provided by the service in responses, as a convenience to your application.

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