Paws::MTurk::SendBonus - Arguments for method SendBonus on Paws::MTurk


This class represents the parameters used for calling the method SendBonus on the Amazon Mechanical Turk service. Use the attributes of this class as arguments to method SendBonus.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendBonus.


    my $mturk-requester = Paws->service('MTurk');
    my $SendBonusResponse = $mturk -requester->SendBonus(
      AssignmentId       => 'MyEntityId',
      BonusAmount        => 'MyCurrencyAmount',
      Reason             => 'MyString',
      WorkerId           => 'MyCustomerId',
      UniqueRequestToken => 'MyIdempotencyToken',    # OPTIONAL

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


REQUIRED AssignmentId => Str

The ID of the assignment for which this bonus is paid.

REQUIRED BonusAmount => Str

The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD and "101.42" represents $101.42 USD). Do not include currency symbols or currency codes.

REQUIRED Reason => Str

A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.

UniqueRequestToken => Str

A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the bonus already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

REQUIRED WorkerId => Str

The ID of the Worker being paid the bonus.


This class forms part of Paws, documenting arguments for method SendBonus in Paws::MTurk


The source code is located here:

Please report bugs to: