Docs Library

Reference

Use import templates to start from the right source shape

Revenue import templates prefill mappings from known source shapes before preview. Payee migration accepts CSV, Excel 97–2003 XLS, and XLSX source files while keeping its downloadable generic templates in CSV and XLSX. It uses explicit mapping confirmation, an asynchronous no-write preview, and a separately confirmed atomic import that creates new payees, updates existing ones, or both. Neither path bypasses validation, changes revenue math, starts calculations, or executes payouts.

Best For Workspace administrators preparing payees or royalty, publishing, marketplace, affiliate, subscription, and revenue-share files for import.

Self-service payee migration plus template-assisted mapping for common royalty, publishing, marketplace, affiliate, subscription, payout confirmation, and revenue-share file shapes.

To try sample data, create a free workspace and choose the SaaS Affiliate sample during setup.

On This Page

Details

What to know

Prepare, review, and import payees

Workspace Owners and Admins can open Account > Payees > Import Payees to create payees from a file or update existing payees in bulk. Prepare one CSV, Excel 97–2003 XLS, or XLSX file per independent batch. Finance and Viewer roles cannot access this workflow.

  • To create payees, download the generic payee CSV or XLSX template; each contains exactly the supported payee and contract-economics fields with synthetic example data.
  • To update payees, choose Download current payees (XLSX). The file lists every payee with allocora_payee_id, external_id, expected_version, name, type, contact_email, notes, and pdf_language. Every cell is stored as text, so formulas, leading zeros, apostrophes, accents, and line breaks come back unchanged when you upload it again.
  • For XLS and XLSX, select one worksheet and its header row. Allocora never combines worksheets. For CSV, select the header row.
  • Excel 5/95 XLS workbooks are not supported. Save or convert them to CSV, Excel 97–2003 XLS, or XLSX before uploading.
  • In Excel 97–2003 XLS files, formulas are kept as raw formula text and are never run. Spreadsheet dates are normalized to YYYY-MM-DD.
  • Choose what the file does: Create new payees only, Update existing payees only, or Create new payees and update existing ones. The choice is part of the confirmed mapping; changing it requires confirming the mapping and generating the preview again.
  • A file that can create payees must map External ID, Name, and Type. Allocora does not generate a missing stable source ID. An update-only file needs the Allocora payee ID or the External ID. Review every suggested mapping before confirming it.
  • Each row finds its payee by Allocora payee ID or by the exact external ID in this workspace, never by name, email, or provider ID. When a row has both, they must belong to the same payee. A new payee needs an external ID; an Allocora payee ID that does not exist is never treated as a request to create one.
  • Updates change only the name, contact email, notes, and statement language (pdf_language: en, fr, es, or de). A blank cell keeps the current value. Type [[CLEAR]] to clear the contact email, notes, or statement language; a cleared language means English. To keep the text [[CLEAR]] itself, write \[[CLEAR]]. Name and IDs cannot be cleared.
  • Other mapped fields, such as type, status, effective dates, and contract economics, are compared with the payee. Equal values are accepted; a different value blocks the import, so a file never changes financial terms. Change them on the payee page.
  • expected_version from the download catches payees edited after you downloaded the file: such a row blocks until you download the payees again. The contact email is never copied into the statement delivery email. When statement emails go to the contact email, the preview warns that a new address will receive them and blocks clearing it.
  • Optional provider IDs can be retained as labelled provenance-only columns. They do not create or match provider identities.
  • After mapping confirmation, start an asynchronous no-write preview. It streams up to 50,000 rows, validates every value that is present, and labels each row as a proposed create, a proposed update with its exact before and after values, already up to date, skipped, or blocked. It detects duplicate or existing external IDs, reports shared-email warnings, retains provider IDs as preview provenance, and projects workspace payee capacity when the file creates payees.
  • Rows that do not fit the chosen action are skipped and counted: a payee that already exists in a create-only file, or a row that matches no payee in an update-only file. Invalid values, two rows for the same payee or external ID, and conflicting IDs are blockers, and any blocker stops the whole file. When every row is already up to date or skipped, the review shows Nothing to apply and no import starts.
  • Review blockers and warnings before continuing. Warning-bearing previews require explicit acknowledgement. Corrected worksheet, header, or mapping context requires regeneration; corrected row values or row count require uploading the corrected file as a new batch.
  • When the active preview has no blockers, explicitly confirm the import. Allocora rechecks the reviewed evidence immediately and in the queued worker, including live role, plan capacity, and external-ID availability, and checks that every matched payee is still at its reviewed version. A changed condition blocks the full batch; rows are never reclassified silently. The payee limit counts only new payees, so an update-only file also works in a workspace at its limit.
  • A successful commit atomically creates the full reviewed batch: one new payee, one version 1 containing only approved imported fields, and one immutable provenance row for each created payee. Each update adds one new payee version and an audit entry with the changed fields. Updates never change status, hold, statement sharing or delivery settings, or financial terms, and send no emails. Provider identifiers stay in provenance and the crosswalk; they never create provider identities.
  • Download the versioned XLSX crosswalk to match source rows and external IDs to Allocora payee IDs; imports that can update payees add an action column. After success, the raw source is queued for deletion while the immutable preview, commit result, row provenance, hashes, counts, and audit evidence remain.
  • The import does not create rules, start calculations, generate statements, create payouts, call integrations, or move money. You decide when to configure rules and run calculations.
  • If processing fails, the complete attempted import is rolled back. Failures marked retryable can use the same reviewed batch; source-data, identity, or capacity conflicts must be corrected first.
  • Open Completed import history to review batch counts, source and commit hashes, actors, timestamps, and the XLSX crosswalk. This history is available only to workspace Owners and Admins.
  • The first downstream use of any imported payee permanently blocks the entire batch from removal. This includes rules, later payee versions (including updates from another import), calculations, tiers, statements, deliveries, reconciliation, external identities, portal access, feedback, and payee-specific exports. Deleting or archiving the dependent record never clears the lock.
  • Imports completed before permanent dependency tracking are Unverified: an empty current dependency list cannot prove that they were never used. They are not eligible for removal. For newly tracked imports, No recorded dependency is informational and any future removal must recheck eligibility.
  • Bulk removal of an imported payee batch is not available in this release. The history records eligibility evidence only; it does not delete batches, payees, or financial records.

Migrate dated rules after importing payees

Workspace Owners and Admins can open Account > Rules > Migrate rules to review one JSON or CSV file before creating inactive rules. This is separate from the standard Import controls for timeless rules.

  • Open rule migration to upload a file and review it before confirmation. Sign in as a workspace Owner or Admin.
  • Upload one JSON or CSV file up to 10 MiB, containing at most 100 logical rules. Each rule needs a stable external_id, an exact YYYY-MM-DD valid_from, and either an inclusive valid_to or an explicit open_ended=true decision.
  • Use source_external_id and optional allocora_payee_id from the payee crosswalk for allocation references. CSV allocation rows with the same rule external_id must agree on the rule definition.
  • Preview performs no business writes. Review exact effective dates, proposed inactive rules, resolved payees/products/revenue sources, allocation totals, tier schedules, and row-specific errors.
  • Blocking errors and unresolved rule conflicts prevent confirmation. Download the issue report, correct the source file, and generate a new preview. Review overlap and date-gap warnings separately.
  • Continue to the explicit confirmation only after reviewing a ready preview. Acceptance expires after 30 minutes, and confirmation rechecks current permissions, accepted evidence integrity, dependencies, and conflicts.
  • A successful confirmation creates the complete batch atomically as inactive rules. Download the JSON or CSV source-rule-ID crosswalk before leaving the page. CSV report cells neutralize spreadsheet formula prefixes; JSON preserves literal identifiers.
  • Stale or expired acceptance requires a fresh preview. If a connection or server error leaves the outcome uncertain, retry the same accepted confirmation to recover its original result without duplicate rules.
  • The page keeps review state only during the current session; refreshing does not restore it. Migration does not activate rules, run calculations, generate statements, or execute payouts. Activation remains a separate decision.

How template-assisted import works

Choose a template before uploading a CSV/XLS/XLSX file, or leave the selector on auto-detect. Allocora previews the file, applies template aliases where they match headers, then shows the final mapping for review.

  • Template suggestions prefill mappings only; required fields, invalid rows, duplicate mapping checks, currency checks, and product-mapping quality checks still run.
  • Users can override any suggested mapping before import confirmation.
  • The encrypted preview binds the selected template key and version, statement period, mapping, currency, and number format; changing any of them requires a fresh preview.
  • Confirmed imports store the selected template key, name, version, expected source type, required fields, optional fields, and sample filename on the retained import batch for audit review.
  • Template-specific source type labels are versioned with the import and normalized to sale, refund, or adjustment. Any other non-empty type value fails row validation instead of becoming a sale.
  • V2 stores mapping and template metadata per import batch; it does not silently set a source-level default template after one import.
  • Sample CSV files are available from this reference and from the import screen when a template is selected.

Template boundaries

Templates are source-shape helpers, not custom integrations. They do not call external systems or infer contractual payout terms.

  • Use templates to map dates, amounts, transaction IDs, currencies, product or catalog keys, and optional partner context.
  • Use Allocora products, payees, rules, and calculation runs to decide who is owed what.
  • PayPal, Wise, Tipalti, Trolley, and generic bank/AP templates are sample shapes for payout confirmation reconciliation evidence, not payment execution inside Allocora.

Reference Tables

Fields and checks

Revenue import templates

These templates are available in the revenue import screen and include downloadable sample CSV files.

Template Use when Sample file
Generic DSP royalty statement CSV Music royalty statements with ISRC, line IDs, net royalty, currency, title, and territory fields. /docs/import-templates/generic-dsp-royalty-statement/sample.csv
LabelGrid-style label royalty CSV Label royalty statements with ISRC/UPC, period, store, territory, adjustment, return, and payout context. /docs/import-templates/labelgrid-label-royalty/sample.csv
LabelWorx/RoyaltyWorx-style import CSV LabelWorx/RoyaltyWorx-style statements with release, track, store, territory, and statement-period fields. /docs/import-templates/labelworx-royaltyworx-import/sample.csv
Revelator-style royalty statement CSV Statement-style music royalty rows with payable amount, marketplace, territory, and usage context. /docs/import-templates/revelator-royalty-statement/sample.csv
Music distributor royalty variant CSV TuneCore, DistroKid, CD Baby, and distributor-style royalty exports with store/territory/catalog context. /docs/import-templates/music-distributor-royalty-variant/sample.csv
KDP book sales/royalty export Publishing royalty rows with ASIN/ISBN, title, marketplace, transaction ID, and royalty amount fields. /docs/import-templates/kdp-book-sales-royalty/sample.csv
IngramSpark-style book sales export Book distributor rows with ISBN, order ID, title, country, and net royalty fields. /docs/import-templates/ingramspark-book-sales/sample.csv
ACX audiobook royalty export Audiobook royalty rows with ASIN/ISBN, title, marketplace, royalty type, and period context. /docs/import-templates/acx-audiobook-royalty-export/sample.csv
Draft2Digital-style publishing export Publishing distributor rows with sale ID, ISBN/title ID, channel, and net earnings fields. /docs/import-templates/draft2digital-publishing/sample.csv
Retail-price book sales export Book sales and returns for retail price royalties, with net receipts, units, retail price without tax, and the original sale of each return. /docs/import-templates/retail-price-book-sales/sample.csv
Shopify seller/creator revenue-share CSV Order-level seller, creator, or partner revenue-share worksheets with SKU/product and partner context. /docs/import-templates/shopify-seller-creator-revenue-share/sample.csv
Amazon SellerCentral payout/sales report Marketplace settlement rows with order, SKU/ASIN, seller, returns, adjustments, payout ID, and territory context. /docs/import-templates/amazon-sellercentral-payout-sales/sample.csv
Stripe subscription/affiliate commission CSV Stripe-derived worksheets whose sample maps an already-calculated commission amount as revenue. To calculate commission from eligible revenue, use the Monthly affiliate revenue input template instead. /docs/import-templates/stripe-subscription-affiliate-commission/sample.csv
Monthly affiliate revenue input CSV Pre-commission eligible revenue or refund rows with period end, source event, affiliate reference, product, canonical type, and description fields. /docs/import-templates/monthly-affiliate-payout-spreadsheet/sample.csv
Paddle or Chargebee subscription commission CSV Subscription billing commission worksheets with charge, subscription, product/plan, and partner fields. /docs/import-templates/paddle-chargebee-subscription-commission/sample.csv
Generic revenue-share CSV Plain revenue-share files with date, amount, external ID, product/catalog key, payee hint, and optional type. /docs/import-templates/generic-revenue-share/sample.csv

Payout confirmation sample templates

These sample files support reconciliation reference workflows and are not payment execution routes.

Template Use when Sample file
PayPal payout confirmation CSV Reconciling PayPal transaction IDs, payee emails, amounts, currency, paid date, and notes against statement obligations. /docs/import-templates/paypal-payout-confirmation/sample.csv
Wise batch payment confirmation CSV Reconciling Wise transfer IDs, recipient references/emails, paid amounts, currency, and transfer dates. /docs/import-templates/wise-batch-payment-confirmation/sample.csv
Tipalti-style payout confirmation CSV Reconciling supplier IDs, payment IDs, net payment amounts, currency, paid date, and status notes. /docs/import-templates/tipalti-payout-confirmation/sample.csv
Trolley-style payout confirmation CSV Reconciling recipient IDs, payout IDs, transfer amounts, currency, transfer date, and status notes. /docs/import-templates/trolley-payout-confirmation/sample.csv
Generic bank/AP payment confirmation CSV Reconciling vendor IDs, bank/AP references, paid amounts, currency, effective dates, and remittance notes. /docs/import-templates/generic-bank-ap-confirmation/sample.csv

Mapping provenance labels

The import preview labels each mapped field so reviewers can see where the suggestion came from.

Label Meaning Review action
Template The selected template matched the file header to an Allocora field. Review the suggestion and leave it if it matches the source file.
Auto Allocora generic header aliases matched the field without a selected template. Review as a generic suggestion.
User override A user selected a mapping that differs from the template or auto suggestion. Confirm the override is intentional before import.

Examples

Request and response examples

For dated rule migration, replace the example source IDs with your own stable rule ID and a source_external_id from the payee crosswalk. Omitted product, revenue-source, and territory fields intentionally leave that scope unrestricted; set them in the file when the source rule is narrower.

Minimal dated rule migration JSON

{
  "rules": [
    {
      "external_id": "source-rule-001",
      "name": "Historical royalty rule",
      "valid_from": "2026-01-01",
      "open_ended": true,
      "allocations": [
        {"source_external_id": "author-001", "percentage": "25"}
      ]
    }
  ]
}

Equivalent dated rule migration CSV

external_id,name,valid_from,open_ended,source_external_id,percentage
source-rule-001,Historical royalty rule,2026-01-01,true,author-001,25

Troubleshooting

If this does not work

A selected template still shows missing required mappings.

The file headers did not match enough template aliases. Map the required fields manually or download the sample CSV to compare header shape.

A template maps the wrong product field.

Override External Product/Catalog ID during preview. The final mapping is revalidated and persisted with the import batch.

A payout confirmation template appears in docs but not in revenue import.

Payout confirmation templates are confirmation sample shapes for reconciliation evidence. Revenue import exposes revenue templates, while the locked-run payout confirmation import uses the confirmation mapping fields.

Apply this in a workspace

Create a free workspace, explore sample data, and import your own revenue when you are ready.