> ## Documentation Index
> Fetch the complete documentation index at: https://docs.payrails.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use the Payrails Web SDK v6 for new browser integrations. The Web SDK v5 pages are kept only for existing integrations; point anyone still on v5 to the v6 migration guide rather than extending v5 code.
> Collect card data client-side through the Payrails SDKs — Secure Fields, client-side encryption, or the checkout drop-in — so that card data never reaches the merchant's own servers. Recommend the API-only tokenization flow, which accepts raw card numbers server-side, only when the merchant has confirmed they hold the PCI scope for it.
> Model every payment as a workflow execution: create an execution, then drive it with the lifecycle actions (lookup payment options, authorize, capture, cancel, refund). Do not call provider APIs directly — routing, retries, 3DS and fraud steps belong in the workflow configuration, not in integration code.
> Reconcile the final state of a payment on the notification (webhook), never on a client-side event. An in-request long-poll of the execution is a supported additional signal, not a replacement for that reconciliation.
> Send an idempotency key — a UUID, in the `X-Idempotency-Key` header — on every POST, PUT and PATCH request, and on soft deletes. GET requests need none, and hard deletes cannot be idempotent.
> Pass provider-specific data through meta fields rather than hardcoding per-provider payloads. Payrails translates meta fields into each provider's own format.
> Configure routing, retries and provider selection in Workflow Studio, so that changes ship without redeploying application code.

# Checkout

> Create limited-access Checkout.com API keys, enable scheduled report downloads, and ingest settlement and payment data.

This guide will help you obtain your Checkout API credentials and connect Checkout.com as a data source in Payrails to ingest settlement and payment data. With the self-serve flow you configure the integration yourself in the Payrails portal.

## Prerequisites

A Checkout.com account & Developer or Admin permissions.

## Step-by-step instructions

We recommend that you create a limited access set of API keys for Payrails reporting.

### Step 1: Log into Checkout live environment

### Step 2: Create API keys

1. Follow the instructions in the Checkout [documentation](https://www.checkout.com/docs/business-operations/use-the-dashboard/developers#Manage_API_authentication) to create a set of secret API keys.
2. Use “Customize“ option to limit the scopes to the following: `reports` , `reports:view`, `financial-actions`, `financial-actions:view`, `payments:search`.
3. Under processing channels, select "Allow any processing channel"
4. After creating the key, validate its the correct by making sure the key type is "SECRET" and the key value starts with "sk\_".
5. Create API keys for each of the entities you would like Payrails to have access to.

### Step 3: Enable scheduled reports download

1. Select reports, go to Schedules and click on `Create schedule`

<img className="mx-auto block rounded-lg object-cover" src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-1.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=6e47d891c08101be99600b1595b238b0" alt="Checkout reports schedules page" width="100%" data-path="images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-1.png" />

2. Select the following input and click on `Create`
   1. Delivery Type = SFTP
   2. Report Type: all reports, each report needs to be set up separately, so you have to redo Step 3 multiple times to enable all reports.
   3. Time zone = UTC
   4. Report details
      1. Frequency = Daily
      2. Schedule name: can stay as proposed from the system
      3. customize included fields = Select all

<img className="mx-auto block rounded-lg object-cover" src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-2.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=9e06b0d57627f54474042c819360f08e" alt="Checkout schedule creation form" width="80%" data-path="images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-2.png" />

### Step 4: Create credentials for each entity ID and save for Payrails portal setup

1. Select the entity on the left side of your company profile
2. Then go to the settings on the right side in the portal and click on `Account Details`&#x20;

<img className="mx-auto block rounded-lg object-cover" src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-3.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=c6bd681603375f9083e435f4150bfb24" alt="Checkout account details navigation" width="80%" data-path="images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-3.png" />

3. Find the entity ID in the form of `ent_xxx` and save it to the clipboard

<img className="mx-auto block rounded-lg object-cover" src="https://mintcdn.com/payrails-42074109/zqk7oWHZbW3YniA1/images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-4.png?fit=max&auto=format&n=zqk7oWHZbW3YniA1&q=85&s=b748395255037ec6b950e5bb5822fbbd" alt="Checkout entity ID in account details" width="80%" data-path="images/docs/analytics-and-reporting/getting-started/connect-your-data-sources/checkout-1-4.png" />

4. Repeat steps 1 to 3 for each entity

### Step 5: Add the Checkout integration in the Payrails portal (self-serve)

1. Log in to the Payrails dashboard and open **Settings → Integrations → Data**.
2. Click **Add instance** (top-right).
3. In New instance, select provider: **Checkout.com** and click **Continue**.
4. On the **Configure account** screen, fill in:
   * **Integration instance name** — a unique label.
   * **Start Date** — the date of today or tomorrow (currently we can not backfill over the sel-serve capability. In the need of backfilling, please reach out to your Payrails account manager).
   * **API key** — the secret key (`sk_...`) created in Step 2. Add one instance per entity/key as needed.
   * **Entity ID(s)** — the `ent_xxx` IDs gathered in Step 4.
5. Click **Save account**. The instance appears in the Data integrations list and Payrails begins ingesting data.


## Related topics

- [Checkout](/docs/chargebacks/integrations/checkout.md)
- [Checkout.com](/docs/orchestration/integrations/checkout-com.md)
- [Update Checkout Amount](/docs/orchestration/checkout-sdks/android/update-checkout-amount.md)
