Specific instructions for Shopify


Processing Shopify Sales in Reprtoir

Reprtoir can process sales generated through your Shopify store for any type of merchandise product. This includes physical formats such as CDs and vinyl, as well as digital downloads such as Tracks or Albums.

Shopify sales are processed through the Income module and linked to catalog Products using the “Shopify ID” identifier, or to Tracks and Albums using the “Shopify Variant ID” identifier.


How Reprtoir Matches Shopify Sales

Reprtoir links each Shopify sale to a Product, Track or Album using the Shopify “Product variant ID” of the sale.

Matching Logic

Shopify FieldReprtoir FieldDescription
Product variant IDShopify ID (Products), Shopify Variant ID (Tracks and Albums)Used as the primary identifier for matching
Product TypeAsset TypeDetermines whether the sale is linked to a Product, Track or Album

Users are not required to link their Shopify products to Track or Album Assets. It is also possible to create and manage them as generic “Product” Assets in Reprtoir using the Shopify ID as the identifier. In this case, sales will be processed as merchandise sales rather than music sales and will not generate royalties at the Track or Album level. While this approach is supported, it is generally recommended to link music products to the corresponding Track or Album Assets in order to ensure accurate royalty calculations and reporting.

Matching Behavior

If the "Product variant ID" matches an existing "Shopify ID" identifier (Products) or "Shopify Variant ID" identifier (Tracks and Albums) in your catalog:

The sale will be automatically linked to the corresponding Asset.

If no matching identifier exists:

The line is reported as a “Not found” Data Error, which must be corrected or placed in quarantine before the income can be processed.

For this reason, it is essential to ensure that all Shopify products exist in Reprtoir with the correct identifier.


Product Types for Tracks and Albums in Shopify

By default, Reprtoir associates Shopify sales with Assets of type Product using the Shopify ID as the identifier.

If you want Reprtoir to calculate royalties for music downloads or physical releases sold through Shopify, you must configure the correct product type in Shopify.

Set the "Product Organization" → Product Type field to either “Track” or “Album”.

This configuration allows Reprtoir to associate the corresponding sales with Track or Album Assets in your catalog instead of generic Products.

Sales with the Product Type “Track” or “Album” are imported with the Sale Type “Downloads — Default”, including physical releases such as CDs or vinyl. All other sales are imported with the Sale Type “Merchandising — Default”.

All other merchandise products can use any Product Type structure that fits your Shopify organization..


Exporting Sales from Shopify

Export a Sales Report

  1. In Shopify, open the left navigation menu.
  2. Go to “Analytics”.
  3. Click “Reports”.
  4. Click “New Exploration” in the top right corner.
  1. Click the icon on the right side of the “What do you want to explore?” field.
  1. Replace the text displayed in the editor with the following ShopifyQL query.
FROM sales
SHOW net_items_sold, gross_sales, gross_returns, net_sales
WHERE line_type = 'product'
GROUP BY sale_id, day, shop_name, product_title, product_variant_title,
product_variant_id, product_type, billing_country, sales_channel WITH TOTALS
ORDER BY day ASC
  1. If the editor displays “Valid query”, click “Run”.

    This first query displays all your sales without date filtering.


Filter the Export Period

  1. Click the “All time” selector above the query editor.
  2. Choose the period you want to export, for example “Last month”.
  3. Click “Apply”.
  4. Click “Run” again.

The report now displays the sales for the selected period.

Maintain a consistent export schedule and date range selection to avoid importing the same sales multiple times, which could lead to incorrect royalty calculations.


Export the Report

  1. Click the three horizontal dots next to “New Exploration”.
  2. Click “Export”.
  3. Select the CSV format.
  4. Ensure the export option is set to “All results”.

Saving the Report for Future Exports

Saving the exploration allows you to reuse the same report configuration for future exports.

  1. Click “Save” in the top right corner.
  2. Enter a name for the report.
  3. Click “Save”.

Once saved, the report can be reopened directly from the “Reports” list.

For future exports, you only need to update the export period before running the report again.


Importing Shopify Sales into Reprtoir

Prepare your catalog

Before importing sales, ensure that your catalog contains the corresponding Assets.

Products must contain the “Shopify ID” identifier, and Tracks or Albums the “Shopify Variant ID” identifier, filled with the Shopify Product variant ID.

Products can be imported automatically using the “Shopify Stores” importer tool.

Import the sales report

  1. Open the navigation menu on the left.
  2. Click the “Royalty Accounting” icon.
  3. Open the “Incomes” list.
  4. Click “New Income” at the top right of the list.
  5. Select the “Shopify export for Reprtoir” template in the form.
  6. Upload the CSV report exported from Shopify.

The Shopify template automatically recognizes the file structure. No column mapping is required.

The file must contain the following columns: “Day”, “Store name”, “Product title”, “Product variant ID”, “Billing country”, “Sales channel”, “Net items sold”, “Gross sales”, “Net sales”, “Sale ID”, “Product variant title”, “Product type” and “Gross returns”.

If the exported file structure does not match the expected template, the mapping step is displayed, or the import stops with an error message listing the missing columns.

Process the income

After the file is imported, follow the standard Reprtoir workflow to correct errors and process the income.




Did this page help you?