Sign in
An image of the Stripe logo
Create account
Sign in
Home
Payments
Business operations
Financial services
Developer tools
No-code
All products
Home
Payments
Business operations
Home
Payments
Business operations
Financial services
Developer tools
Support
Overview
Fraud detection
Stripe data
Financial reports
Payment authentication reports
Revenue recognition
    Overview
    Get started
    Recognize revenue with Stripe
    How revenue recognition works
    Methodology
    Subscriptions and Invoicing
    One-time payments
    Refunds and disputes
    Multi-currency
    Connect platforms
    Frequently asked questions
    Reports and features
    Revenue recognition reports
    Monthly summary
    Revenue waterfall
    Overrides
    Audit your numbers
    Examples
    Configure reports
    Revenue recognition rules
    Accounting period control
    Revenue controls
    Map to your chart of accounts
    Data import and export
    Import data to Stripe
    Export data from Stripe
Startup incorporation
Climate
Identity
Tax
Financial Connections
Account
Dashboard
Revenue Recognition
·
HomeBusiness operationsRevenue recognition

Revenue Recognition API
Beta

Access Stripe Revenue Recognition reports programmatically to automate your accrual accounting.

For accrual accounting, Stripe Revenue Recognition provides downloadable reports, like a monthly summary and a revenue waterfall. You can download these reports in CSV format through the Dashboard or you can programmatically access them through the API.

Revenue Recognition has 6 supported report types:

  • revenue_recognition.debit_credit_summary.1
  • revenue_recognition.debit_credit_by_price.1
  • revenue_recognition.debit_credit_by_product.1
  • revenue_recognition.debit_credit_by_customer.1
  • revenue_recognition.debit_credit_by_invoice.1
  • revenue_recognition.debit_credit_by_invoice_line_item.1

Because this feature is in beta, note the following:

  • We may change the data fields at our discretion.

Download a report

The following example downloads the debits and credits by summary for May 2021.

First, we create a report run using Create a Report Run.

In order to get a report for May 2021, we set parameters[interval_start] to 1 May 2021 and parameters[interval_end] to 1 Jun 2021.

Command Line
curl https://api.stripe.com/v1/reporting/report_runs \ -u
sk_test_4eC39HqLyjWDarjtT1zdp7dc
: \ -d report_type="revenue_recognition.debit_credit_summary.1" \ -d "parameters[interval_start]"=1619827200 \ -d "parameters[interval_end]"=1622505600

Next, we check whether the Report Run object succeeds by fetching the report run object:

The report run object ID starts with frr_

Command Line
curl https://api.stripe.com/v1/reporting/report_runs/{{REPORT_RUN_OBJECT_ID}} \ -u
sk_test_4eC39HqLyjWDarjtT1zdp7dc
:

When the object succeeds, as in status is succeeded, we can download the CSV using the value of result.id from the object as shown below:

The report run result ID starts with file_

Command Line
curl https://files.stripe.com/v1/files/{{REPORT_RUN_RESULT_ID}}/contents \ -u
sk_test_4eC39HqLyjWDarjtT1zdp7dc
:

Report Run Parameters

Report TypeRequired Run ParametersOptional Run Parameters
revenue_recognition.debit_credit_summary.1
  • interval_start
  • interval_end
  • decimal_format
revenue_recognition.debit_credit_by_price.1
  • interval_start
  • interval_end
  • customer
  • decimal_format
revenue_recognition.debit_credit_by_product.1
  • interval_start
  • interval_end
  • customer
  • decimal_format
revenue_recognition.debit_credit_by_customer.1
  • interval_start
  • interval_end
  • decimal_format
revenue_recognition.debit_credit_by_invoice.1
  • interval_start
  • interval_end
  • customer
  • invoice
  • invoice_line_item
  • decimal_format
revenue_recognition.debit_credit_by_invoice_line_item.1
  • interval_start
  • interval_end
  • customer
  • invoice
  • invoice_line_item
  • decimal_format

Report Run Columns

By default, reports are run with the default set of columns. You can customize the selection and ordering of columns in the output by including the optional columns parameter with a list of column names. Supported columns for each report type can be found below.

Summary

API report type: revenue_recognition.debit_credit_summary.1

Column NameDefaultDescription
accounting_period
The accounting period
open_accounting_period
The open accounting period; entries in open periods are subject to change
currency
Three-letter ISO code for the currency in which the amount is defined.
debit
The debited account
credit
The credited account
amount
Amount change, expressed in major units of the currency (e.g., dollars for USD, or yen for JPY).
credit_gl_codeThe credited general ledger code
debit_gl_codeThe debited general ledger code

By Price

API report type: revenue_recognition.debit_credit_by_price.1

Column NameDefaultDescription
accounting_period
The accounting period
open_accounting_period
The open accounting period; entries in open periods are subject to change
currency
Three-letter ISO code for the currency in which the amount is defined.
price_id
The price associated with this change.
debit
The debited account
credit
The credited account
amount
Amount change, expressed in major units of the currency (e.g., dollars for USD, or yen for JPY).
credit_gl_codeThe credited general ledger code
debit_gl_codeThe debited general ledger code

By Product

API report type: revenue_recognition.debit_credit_by_product.1

Column NameDefaultDescription
accounting_period
The accounting period
open_accounting_period
The open accounting period; entries in open periods are subject to change
currency
Three-letter ISO code for the currency in which the amount is defined.
product_id
The product associated with this change.
debit
The debited account
credit
The credited account
amount
Amount change, expressed in major units of the currency (e.g., dollars for USD, or yen for JPY).
credit_gl_codeThe credited general ledger code
debit_gl_codeThe debited general ledger code

By Customer

API report type: revenue_recognition.debit_credit_by_customer.1

Column NameDefaultDescription
accounting_period
The accounting period
open_accounting_period
The open accounting period; entries in open periods are subject to change
currency
Three-letter ISO code for the currency in which the amount is defined.
customer_id
The customer associated with this change.
debit
The debited account
credit
The credited account
amount
Amount change, expressed in major units of the currency (e.g., dollars for USD, or yen for JPY).
credit_gl_codeThe credited general ledger code
debit_gl_codeThe debited general ledger code

By Invoice

API report type: revenue_recognition.debit_credit_by_invoice.1

Column NameDefaultDescription
accounting_period
The accounting period
open_accounting_period
The open accounting period; entries in open periods are subject to change
currency
Three-letter ISO code for the currency in which the amount is defined.
transaction_model_id
The model in Stripe associated with this change - either an invoice line item, invoice, invoiceitem, charge, or etc.
debit
The debited account
credit
The credited account
booked_date
The date that the ledger entry is added to the books.
amount
Amount change, expressed in major units of the currency (e.g., dollars for USD, or yen for JPY).
debit_gl_codeThe debited general ledger code
credit_gl_codeThe credited general ledger code
invoice_idThe invoice associated with this change. Standalone charges or invoice items not associated with an invoice will be null.
invoice_line_item_idThe ID of the invoice line_item.
invoice_item_idThe ID of the invoice item
subscription_item_idThe ID of the subscription_item.
price_idThe price associated with this change. Standalone charges or invoice items not associated with a price will be null.
product_idThe product associated with this price.
customer_idThe customer associated with this change.
subscription_idThe subscription associated with this change.
charge_idThe charge associated with this change.
refund_idThe refund associated with this change.
dispute_idThe dispute associated with this change.
split_transaction_idThe ID of the split transaction associated with this change.
external_transaction_idThe ID of the external transaction associated with this change.
presentment_currencyThe presentment (customer facing) currency of the transaction.
presentment_amountThe presentment (customer facing) amount.

By Invoice Line Item

API report type: revenue_recognition.debit_credit_by_invoice_line_item.1

Column NameDefaultDescription
accounting_period
The accounting period
open_accounting_period
The open accounting period; entries in open periods are subject to change
currency
Three-letter ISO code for the currency in which the amount is defined.
transaction_model_id
The model in Stripe associated with this change - either an invoice line item, invoice, invoiceitem, charge, or etc.
debit
The debited account
credit
The credited account
booked_date
The date that the ledger entry is added to the books.
amount
Amount change, expressed in major units of the currency (e.g., dollars for USD, or yen for JPY).
debit_gl_codeThe debited general ledger code
credit_gl_codeThe credited general ledger code
invoice_idThe invoice associated with this change. Standalone charges or invoice items not associated with an invoice will be null.
invoice_line_item_idThe ID of the invoice line_item.
invoice_item_idThe ID of the invoice item
subscription_item_idThe ID of the subscription_item.
price_idThe price associated with this change. Standalone charges or invoice items not associated with a price will be null.
product_idThe product associated with this price.
customer_idThe customer associated with this change.
subscription_idThe subscription associated with this change.
charge_idThe charge associated with this change.
refund_idThe refund associated with this change.
dispute_idThe dispute associated with this change.
split_transaction_idThe ID of the split transaction associated with this change.
external_transaction_idThe ID of the external transaction associated with this change.
presentment_currencyThe presentment (customer facing) currency of the transaction.
presentment_amountThe presentment (customer facing) amount.

If you encounter any issues, please reach out to revenue-recognition-api-beta@stripe.com.

Was this page helpful?
Questions? Contact us.
Watch our developer tutorials.
Check out our product changelog.
Powered by Markdoc
You can unsubscribe at any time. Read our privacy policy.
On this page
Download a report
Report Run Parameters
Report Run Columns
Stripe Shell
Test mode
Welcome to the Stripe Shell! Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Login to your Stripe account and press Control + Backtick on your keyboard to start managing your Stripe resources in test mode. - View supported Stripe commands: - Find webhook events: - Listen for webhook events: - Call Stripe APIs: stripe [api resource] [operation] (e.g. )
The Stripe Shell is best experienced on desktop.
$