S3 Exports
Learn how to set up S3 export
Save your subscription events to your Amazon S3 bucket as .csv files.
Schedule
Adapty sends your data every 24h at 4:00 UTC.
How to set up integration
To start receiving data, you'll need the following credentials:
- Access key ID
- Secret access key
- S3 bucket name
Nested directories
You can specify nested directories in the S3 bucket name field, e.g. adapty-events/com.sample-app

How to create S3 credentials
This guide will help you create necessary credentials in your AWS Console.
1. Create Access Policy
Go to the IAM Policy Dashboard in your AWS Console and choose ‘Create policy’: https://console.aws.amazon.com/iamv2/home#/policies

In Policy editor paste the following JSON and change adapty-s3-integration-test
to your bucket name:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowListObjectsInBucket",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::adapty-s3-integration-test"
},
{
"Sid": "AllowAllObjectActions",
"Effect": "Allow",
"Action": "s3:*Object",
"Resource": [
"arn:aws:s3:::adapty-s3-integration-test/*",
"arn:aws:s3:::adapty-s3-integration-test"
]
},
{
"Sid": "AllowBucketLocation",
"Effect": "Allow",
"Action": "s3:GetBucketLocation",
"Resource": "arn:aws:s3:::adapty-s3-integration-test"
}
]
}

You can add tags (optional) and click Next. Name your policy and click Create policy.

2. Create IAM user
In this step you'll create user that have access to the policy. Go to https://console.aws.amazon.com/iamv2/home#/users
And click Create user

Give user a name, choose Access key – Programmatic access and proceed to permissions.

Choose Add user to group and click Create group

Select the Policy you crated previously and click Create group

Once group is created, select it and proceed to the next step.

Click Create user.

And finally download .csv or just copy and paste credentials from the dashboard.

Table structure
Column | Description |
---|---|
profile_id | Adapty user ID. |
event_type | Lower cased event name. Refer to the Events section to learn event types. |
event_datetime | ISO 8601 date. |
original_transaction_id | The transaction identifier of the original purchase. |
subscription_expires_at | The Expiration date of subscription. Usually in the future. |
environment | Could be Sandbox or Production. |
revenue_usd | Revenue in USD. Can be empty. |
proceeds_usd | Proceeds in USD. Can be empty. |
revenue_local | Revenue in local currency. Can be empty. |
proceeds_local | Proceeds in local currency. Can be empty. |
customer_user_id | Developer user ID. For example, it can be your user UUID, email, or any other ID. Null if you didn't set it. |
store | Could be app_store or play_store. |
product_id | Product id in Apple/Google store. |
country | Profile Country determined by Adapty, based on IP. |
store_county | Profile Country determined by Apple/Google store. |
Updated 3 months ago