> ## 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.

# Transactions report

> A transaction-level report for reconciling individual payments, with a downloadable CSV sample and a definition of every column.

export const DownloadTransactionsCSV = ({filename = "sample-transactions-report.csv"}) => {
  const handleDownload = () => {
    const data = `workspace_id,merchant_id,payrails_payment_id,payrails_execution_id,action_id,merchant_reference,action,created_at,completed_at,timezone,milliseconds_to_completion,is_success,is_completed,currency,amount,provider_name,provider_account,provider_reference,error_reason_source,error_reason_detail,error_reason_result,error_reason_category,error_detail,has_threeds,eci,payment_method_type,card_bin,card_network,card_type,card_type_details,card_segment,card_issuer,card_issuer_country_code,card_issuer_country_name,token_id,token_type,authorization_code,retrieval_reference_number,network_transaction_reference,provider_response_additional_fields,mapped_psp_response,meta
485e-a6835-407ec794a3as75-345645b,PAYRAILS,d854ba38-640b-48bf-ac46-051a3c57e6ad,0b621125-def0-504e-96f3-fa5de5bde16f,8b4d093d-5da8-5158-9044-aa9efe7a8ba8,c29e6ac3-55d8-4971-9d50-677f4691b8eb,authorize,2026-02-28 07:18:13,2026-02-28 07:18:16,UTC,3314,TRUE,TRUE,EUR,23.48,adyen,adyen_testing,pi_MqUZQUfk0Ff5Vd0O,,,,,,TRUE,5,applePay,,visa,DEBIT,unknown,unknown,unknown,,unknown,783b65e4-2162-4899-96ce-acda0b757993,network,51249,,,,,"{""clientContext"":{""ipAddress"":""172.16.1.1"",""language"":""de-DE"",""osType"":""web"",""platform"":""web"",""screenHeight"":1920,""screenWidth"":1080,""timezone"":""Europe/Berlin"",""userAgent"":""Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/114.0.0.0+Safari/537.36""},""customer"":{""country"":{""code"":""DE""},""email"":""user@gmail.com"",""identityCardNumber"":""1234567891"",""lastName"":""Lastname"",""name"":""Username"",""phone"":{""number"":""79009999999""},""reference"":""5a084977-4e7f-4fa0-ad0c-7a924488e80f""},""enableCard"":true,""order"":{""billingAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""name"":""Username"",""postalCode"":""10405"",""state"":""Berlin"",""street"":""Straßburger Straße""},""deliveryAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""postalCode"":""10405"",""street"":""Straßburger Straße""},""description"":""Beers"",""lines"":[{""description"":""Item Description"",""id"":""123"",""links"":{""imageUrl"":""https://www.amazingmerchant.com/products/1.jpeg"",""productUrl"":""https://www.amazingmerchant.com/products/1""},""name"":""Payrails Test"",""quantity"":1,""total"":{""currency"":""EUR"",""value"":""22.5""},""unitPrice"":{""currency"":""EUR"",""value"":""22.5""}}],""softDescriptor"":""MYSHOP*BEERS"",""softDescriptorCity"":""Berlin""},""paymentProviderOverride"":{""code"":""""},""requestedCancelResult"":"""",""requestedResult"":"""",""risk"":{""force3DS"":false,""previousPaymentWith3DS"":false},""vaultType"":""Payrails"",""workflowConfigVersion"":332100}"
485e-a6835-407ec794a3as75-345645b,PAYRAILS,e0b8746f-33ae-45d5-84a4-c524bfcb6549,f4f4e744-63ed-5ae1-870a-f9f945182e15,512fb23a-84ce-5eec-aeb8-65f927cbf860,d11387bd-130d-46ba-a536-22377c3c69e6,authorize,2026-02-28 07:18:13,2026-02-28 07:18:16,UTC,2858,FALSE,TRUE,EUR,92.97,checkout,checkout_testing,pi_MqUZQUfk0pRDzxMg,Customer,InvalidInstrumentBlockedCardholder,BlockedInstrument,Instrument,The execution of the requested workflow action failed,FALSE,,card,440393,visa,DEBIT,unknown,prepaid,,DE,Germany,783b65e4-2162-4899-96ce-acda0b757993,vault,,603322351083,,,,"{""clientContext"":{""ipAddress"":""72.16.1.1"",""language"":""de-DE"",""osType"":""web"",""platform"":""web"",""screenHeight"":1920,""screenWidth"":1080,""timezone"":""Europe/Berlin"",""userAgent"":""Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/114.0.0.0+Safari/537.36""},""customer"":{""country"":{""code"":""DE""},""email"":""user@gmail.com"",""identityCardNumber"":""1234567891"",""lastName"":""Lastname"",""name"":""Username"",""phone"":{""number"":""79009999999""},""reference"":""9a1a1415-51a5-461a-a302-a257c28fbb00""},""enableCard"":true,""order"":{""billingAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""name"":""Username"",""postalCode"":""10405"",""state"":""Berlin"",""street"":""Straßburger Straße""},""deliveryAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""postalCode"":""10405"",""street"":""Straßburger Straße""},""description"":""Beers"",""lines"":[{""description"":""Item Description"",""id"":""123"",""links"":{""imageUrl"":""https://www.amazingmerchant.com/products/1.jpeg"",""productUrl"":""https://www.amazingmerchant.com/products/1""},""name"":""Payrails Test"",""quantity"":1,""total"":{""currency"":""EUR"",""value"":""22.5""},""unitPrice"":{""currency"":""EUR"",""value"":""22.5""}}],""softDescriptor"":""MYSHOP*BEERS"",""softDescriptorCity"":""Berlin""},""paymentProviderOverride"":{""code"":""""},""requestedCancelResult"":"""",""requestedResult"":"""",""risk"":{""force3DS"":false,""previousPaymentWith3DS"":false},""vaultType"":""Payrails"",""workflowConfigVersion"":332100}"
485e-a6835-407ec794a3as75-345645b,PAYRAILS,d942cf2c-1a16-4b83-8095-f7acb2b383db,167c0b23-dd89-5a14-b0ce-7ba500a8f133,64e0251c-0036-533e-aae7-b66883b0f2dd,93c2c048-9dd1-4951-a128-1f105e1f8e53,authorize,2026-02-28 07:18:13,2026-02-28 07:18:16,UTC,3205,TRUE,TRUE,EUR,40.98,checkout,checkout_testing,pi_G5MqUZQUfk1TJdC5U6,,,,,,TRUE,2,applePay,,mastercard,CREDIT,personal,platinum mastercard® card,CONTINENTAL BANK,FR,France,783b65e4-2162-4899-96ce-acda0b757993,network,72020,603346475756,,,,"{""clientContext"":{""ipAddress"":""72.16.1.1"",""language"":""de-DE"",""osType"":""web"",""platform"":""web"",""screenHeight"":1920,""screenWidth"":1080,""timezone"":""Europe/Berlin"",""userAgent"":""Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/114.0.0.0+Safari/537.36""},""customer"":{""country"":{""code"":""DE""},""email"":""user@gmail.com"",""identityCardNumber"":""1234567891"",""lastName"":""Lastname"",""name"":""Username"",""phone"":{""number"":""79009999999""},""reference"":""6226b747-24d6-47b8-957f-25a3728da1ba""},""enableCard"":true,""order"":{""billingAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""name"":""Username"",""postalCode"":""10405"",""state"":""Berlin"",""street"":""Straßburger Straße""},""deliveryAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""postalCode"":""10405"",""street"":""Straßburger Straße""},""description"":""Beers"",""lines"":[{""description"":""Item Description"",""id"":""123"",""links"":{""imageUrl"":""https://www.amazingmerchant.com/products/1.jpeg"",""productUrl"":""https://www.amazingmerchant.com/products/1""},""name"":""Payrails Test"",""quantity"":1,""total"":{""currency"":""EUR"",""value"":""22.5""},""unitPrice"":{""currency"":""EUR"",""value"":""22.5""}}],""softDescriptor"":""MYSHOP*BEERS"",""softDescriptorCity"":""Berlin""},""paymentProviderOverride"":{""code"":""""},""requestedCancelResult"":"""",""requestedResult"":"""",""risk"":{""force3DS"":false,""previousPaymentWith3DS"":false},""vaultType"":""Payrails"",""workflowConfigVersion"":332100}"
485e-a6835-407ec794a3as75-345645b,PAYRAILS,8eeabcd6-b95e-4ea3-b73b-aee1efdb7984,2a28fabf-27fa-54aa-9098-ca8aef516cd5,f864338f-4703-5e2c-8244-3ce7e17ddc81,b90592a6-8847-46c0-a2c3-0b158352a2fc,authorize,2026-02-28 07:18:13,2026-02-28 07:18:17,UTC,3380,TRUE,TRUE,EUR,533.87,klarna,klarna_testing,pi_G5MqUZQUfk0wwnRL66,,,,,,FALSE,,klarnaPayOverTime,,unknown,unknown,unknown,unknown,unknown,,unknown,,,,,,,,"{""clientContext"":{""ipAddress"":""72.16.1.1,""language"":""de-DE"",""osType"":""web"",""platform"":""web"",""screenHeight"":1920,""screenWidth"":1080,""timezone"":""Europe/Berlin"",""userAgent"":""Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_15_7)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/114.0.0.0+Safari/537.36""},""customer"":{""country"":{""code"":""DE""},""email"":""user@gmail.com"",""identityCardNumber"":""1234567891"",""lastName"":""Lastname"",""name"":""Username"",""phone"":{""number"":""79009999999""},""reference"":""6226b747-24d6-47b8-957f-25a3728da1ba""},""enableCard"":true,""order"":{""billingAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""name"":""Username"",""postalCode"":""10405"",""state"":""Berlin"",""street"":""Straßburger Straße""},""deliveryAddress"":{""city"":""Berlin"",""country"":{""code"":""DE""},""doorNumber"":""1"",""postalCode"":""10405"",""street"":""Straßburger Straße""},""description"":""Beers"",""lines"":[{""description"":""Item Description"",""id"":""123"",""links"":{""imageUrl"":""https://www.amazingmerchant.com/products/1.jpeg"",""productUrl"":""https://www.amazingmerchant.com/products/1""},""name"":""Payrails Test"",""quantity"":1,""total"":{""currency"":""EUR"",""value"":""22.5""},""unitPrice"":{""currency"":""EUR"",""value"":""22.5""}}],""softDescriptor"":""MYSHOP*BEERS"",""softDescriptorCity"":""Berlin""},""paymentProviderOverride"":{""code"":""""},""requestedCancelResult"":"""",""requestedResult"":"""",""risk"":{""force3DS"":false,""previousPaymentWith3DS"":false},""vaultType"":""Payrails"",""workflowConfigVersion"":332100}"`;
    const blob = new Blob([data], {
      type: "text/csv;charset=utf-8;"
    });
    const url = URL.createObjectURL(blob);
    const a = document.createElement("a");
    a.href = url;
    a.download = filename;
    a.click();
    URL.revokeObjectURL(url);
  };
  return <span onClick={handleDownload} style={{
    cursor: "pointer",
    color: "#0066cc",
    textDecoration: "underline"
  }}>
    Download sample report
  </span>;
};

This report can be used to reconcile individual transactions.

## Sample report

<DownloadTransactionsCSV />

(CSV file).

## Columns

| Column | Type | Description |
| :- | :- | :- |
| workspace\_id | VARCHAR | Workspace identifier mapped from the merchant, used for Payrails reporting. |
| merchant\_id | VARCHAR | Unique identifier of the merchant. |
| payrails\_payment\_id | VARCHAR | Unique identifier of the Payment in Payrails. |
| payrails\_execution\_id | VARCHAR | Unique identifier of the execution. |
| action\_id | VARCHAR | Unique identifier of this execution action. |
| merchant\_reference | VARCHAR | The merchant reference related to the transaction. For example, the order\_id. |
| action | VARCHAR | Type of action (authorize, refund, cancel). |
| created\_at | TIMESTAMP\_NTZ | Timestamp at which the action was created. |
| completed\_at | TIMESTAMP\_NTZ | Timestamp at which the action was completed. |
| timezone | VARCHAR | Timezone in which the session happened. |
| milliseconds\_to\_completion | NUMBER | Time from request to completion in milliseconds |
| is\_success | BOOLEAN | Whether execution action was succeeded |
| is\_completed | BOOLEAN | Whether event action is completed. |
| currency | VARCHAR | Three-letter ISO currency code, in uppercase |
| amount | NUMBER | Payment amount in local currency |
| provider\_name | VARCHAR | Provider who processed the payment |
| provider\_account | VARCHAR | Provider account display name. |
| provider\_reference | STRING | The providers reference for the payment which this transaction relates to. |
| error\_reason\_source | VARCHAR | Source of the error reason (null if payment was successful). |
| error\_reason\_detail | VARCHAR | Details of the error reason (null if payment was successful) |
| error\_reason\_result | VARCHAR | End result of the error reason (null if payment was successful). |
| error\_reason\_category | VARCHAR | Category of error reason (null if payment was successful). |
| error\_detail | VARCHAR | Details of the error (null if payment was successful). |
| has\_threeds | BOOLEAN | Whether payment went through 3ds. |
| eci | VARCHAR | Electronic commerce indicator. |
| payment\_method\_type | VARCHAR | Payment method type, values: card, easypaisa, jazzCash, fawryPay, etc |
| card\_bin | VARCHAR | 4-digit BIN of the card. |
| card\_network | VARCHAR | Card network that supports the card, e.g. Visa, Mastercard, American Express. Card only. |
| card\_type | VARCHAR | The type of card used for processing, values: credit, debit, notset, prepaid. |
| card\_type\_details | VARCHAR | More information about the card type, e.g. personal, commercial. Card only. |
| card\_segment | VARCHAR | Segment of the card, e.g. gold, black, business. Card only. |
| card\_issuer | VARCHAR | Card issuing bank. |
| card\_issuer\_country\_code | VARCHAR | ISO alpha-2 country code of card issuer. |
| card\_issuer\_country\_name | VARCHAR | Full country name of card issuer. |
| token\_id | VARCHAR | Instrument Token ID related to the payment |
| token\_type | VARCHAR | Type of the token, values: network, vault, psp, networkOffers. |
| authorization\_code | VARCHAR | Authorization code from issuing bank. |
| retrieval\_reference\_number | VARCHAR | Retrieval Reference Number (RRN). |
| network\_transaction\_reference | VARCHAR | Scheme-level transaction reference. |
| provider\_response\_additional\_fields | VARIANT | PSP-specific additional response fields. |
| mapped\_psp\_response | VARIANT | Mapped/normalized PSP result details. |
| meta | VARIANT | Complete merchant's meta details. |
| instrument\_email | VARCHAR | Customer email captured on the payment instrument. Wallet only, e.g. Apple Pay, Google Pay. |


## Related topics

- [Reports](/docs/analytics-and-reporting/reports/index.md)
- [Settlements report](/docs/analytics-and-reporting/reports/settlements.md)
- [Disputes report](/docs/analytics-and-reporting/reports/disputes.md)
