Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Retrieving the requestPayment configuration using the REST API

Focus mode
Retrieving the requestPayment configuration using the REST API - Amazon Simple Storage Service

You can determine the Payer value that is set on a bucket by requesting the resource requestPayment.

To return the requestPayment resource
  • Use a GET request to obtain the requestPayment resource, as shown in the following request.

    GET ?requestPayment HTTP/1.1 Host: [BucketName].s3.amazonaws.com Date: Wed, 01 Mar 2009 12:00:00 GMT Authorization: AWS [Signature]

If the request succeeds, Amazon S3 returns a response similar to the following.

HTTP/1.1 200 OK x-amz-id-2: [id] x-amz-request-id: [request_id] Date: Wed, 01 Mar 2009 12:00:00 GMT Content-Type: [type] Content-Length: [length] Connection: close Server: AmazonS3 <?xml version="1.0" encoding="UTF-8"?> <RequestPaymentConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Payer>Requester</Payer> </RequestPaymentConfiguration>

This response shows that the payer value is set to Requester.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.