Splits and the ledger

A share rule says who gets which part of a track’s money. The ledger keeps every version of those rules, with the date each took effect, so a statement from any month is paid by the rules of that month.

At a glance

How it works

You don’t write the ledger directly. Instead, you set fees, the owner and share rules on a release, and acceptance records them as a commit. Every later change that affects money writes another commit. Statement processing looks up the commit in effect for each line’s month.

The ledger has three parts:

LedgerKeyed byAnswers
Release ledgerGTINWhich release does this barcode belong to? Which fees apply, who is the owner, and which ISRCs map to which tracks?
Wallet ledgerTrackWhich wallets share this track’s money, and in what proportion?
Video ledgerGTIN and ISRCThe same for a music video, with fees, owner and shares in one commit.

When changes take effect

A commit takes effect on the first day of the next month, counted from the UTC date the release or edit is accepted (not submitted). A change accepted on 5 October 2026 takes effect on 1 November 2026. The ledger keeps one version per release per effective date, so a second change in October replaces the first.

Two share rule changes accepted on 5 and 20 October. The second replaces the first, and takes effect on 1 November. October sales keep the previous split. 1 Oct 1 Dec 1 Nov · B takes effect 5 Oct · change A accepted commit dated 1 Nov 20 Oct · change B accepted same date, replaces A Sales in October the split in force before; A is never used Sales from November split B, however late they are reported
Commits are dated to the first of the month after acceptance. The last change accepted in a month wins, and the ones before it never take effect.

Fees and the owner are looked up by the month a line was reported, and share rules by the month the sale happened. Videos work the same way, and How money flows explains why. The oldest commit for a release also covers every earlier date, so a sale from before the first acceptance still finds a split.

History and audit

Set a share rule

Each track’s share rule is set in its accounting. The rule lists wallets and their share in parts per million:

{
  "accounting": {
    "shareRules": [
      {
        "shares": [
          { "walletId": "9d2a7c55-0e3b-4a6f-8c21-7f4b1d9e3a02", "sharePerMio": 520000 },
          { "walletId": "47be01d3-5c8a-4e29-b6f0-3a1d8e7c2b94", "sharePerMio": 300000 },
          { "walletId": "c0ff3e11-2d4a-4b6c-9e8f-5a7b3c1d0e92", "sharePerMio": 180000 }
        ]
      }
    ]
  }
}

Send it with the track when you write the draft. These rules apply:

Always set a rule

A track with no share rule still earns money for its owner, but no wallet receives it, so it never appears in wallet reports. If a track has a single payee, give that payee’s wallet 1000000.

To change the split of a live release, edit the release and submit it again. Change splits on live releases walks through the steps.

Fees and owner

The release’s accounting holds the rest (full field list in Accounting fields):

Tenant default fees only apply to releases accepted after they change. To move live releases to new fees, edit each release’s accounting. Fee-only edits are accepted automatically, but there is no bulk endpoint. The steps are the same as in Change splits on live releases.

Reports show the fees twice: as decimals, and as integers per million (client_fee_per_mio), rounded half-up for display. Calculations always use the exact decimal.

Change splits on live releases

You change a live release’s split with an edit, one release at a time. Labels that keep contracts in their own system usually run this as a sync job: when a contract changes, edit every release it covers.

  1. Check for an open edit

    GET /v1/distribution/drafts/full-releases/{releaseId}. A 404 means no edit is open. If a draft comes back, someone is already editing the release (a release has at most one edit draft). Add your share rules to that draft and continue at step 3. If it’s in review, wait for the outcome and retry.

  2. Open the edit draft

    POST /v1/distribution/drafts/releases/draft-from-release with { "releaseId": … }. Only call it after step 1, because it replaces an existing edit draft without warning, even one in review. See Open the edit draft.

  3. Change the share rules and write the draft back

    Change accounting.shareRules on the tracks whose split changes, and PUT the whole body back to /v1/distribution/drafts/full-releases/{releaseId}. Leave everything else as it is.

  4. Submit

    PUT /v1/distribution/drafts/releases/{releaseId}/status with {"status": "REVIEW"}. An edit that only changes accounting is accepted automatically, without a reviewer. An edit that mixes splits with other changes waits for review.

Acceptance writes a wallet commit for each track whose rule changed, under the usual timing. Keep these limits in mind:

What writes the ledger

You never write release or wallet commits directly. These are the events that write them:

What happensCommits writtenEffective from
A release is accepted for the first timeOne release commit; one wallet commit per track1st of next month
An edit is accepted that changes the fees, adds a Dolby Atmos ISRC or changes a track’s secondary ISRCsA new release commit1st of next month
An edit is accepted that changes a track’s share ruleA wallet commit for each changed track1st of next month
A takedown is requestedA release commit with isTakenDown: true1st of next month
An edit is accepted that removes every store, or brings a taken-down release backA release commit with isTakenDown true or false1st of next month
RecordJet maps statement lines that matched nothingRelease commits for the mapped GTINsThe first day of that statement’s reported month, so the held-back month can be processed again. These are the only commits that are dated back (see History and audit)
A client adds a manual mappingA release or video commit with isManualMapping: true1st of next month

The owner, the GTIN, the track count and the primary ISRCs can’t change once a release is live (see Manage live releases), so edits never write commits for those. Videos follow the same pattern in the video ledger.

Takedowns and shared ISRCs

A takedown doesn’t cut off revenue. Late sales still resolve to the taken-down release. When several releases share a code, the rules below decide which one gets the line. They use the commits in effect on the first day of the line’s reported month:

Check where a line would go

Sometimes you need to know which release, fees and owner apply to a GTIN or ISRC, and from when. How you find out depends on your key.

How a statement line finds its money path: by GTIN and ISRC, by GTIN only, or by ISRC only; then the release commit for the reported month and the wallet commit for the sale month. Statement line GTIN and ISRC release by GTIN, track by ISRC on that release GTIN only release by GTIN, money divided evenly over its tracks ISRC only the release that became active first and is still active Release and track(s) Release commit · reported month client fee, tenant fee, owner Wallet commit · sale month share rule → wallets
Which codes the store sent decides how the line finds its release, and the two months decide which ledger versions apply. A line with neither code, or a code nobody owns, holds the whole month back (see Monthly statements).

Check where money goes as a tenant

The resolve endpoints only work with a client key, and a tenant key gets 401 (see Client accounts: resolve and map codes). Instead, a tenant reads its own commits, which answer the same question for its own releases:

QuestionRead
Which fees and owner apply to this release, from when?GET /v1/distribution/ledger/releases?releaseId=…. There’s one commit per effectiveDate, and the commit with the latest effectiveDate on or before the first day of a line’s reported month applies.
Which release is behind this barcode?GET /v1/distribution/ledger/releases?gtin=…
Which split applies to this track, from when?GET /v1/distribution/ledger/wallets?trackId=…, or ?releaseId=… for every track. Pick by the line’s sale month.
Which ISRCs map to which track, and in which order?The release commit’s trackMappings. The first entry without isSecondary is the “first track” that takes a bundle’s rounding remainder.

A tenant key sees only its own tenant’s commits. If another tenant of the same client has a release with the same GTIN or ISRC, the client-wide rules in Takedowns and shared ISRCs decide, and only resolve-gtin and resolve-isrc show that. Ask your RecordJet contact when a payout looks wrong and you suspect a shared code.

Read the ledger

Read commits to check which version ReleaseAPI will use for a month, or to mirror the ledger in your own system.

Read
GET/v1/distribution/ledger/releasesFilter by releaseId, gtin GET/v1/distribution/ledger/releases/{ledgerReleaseId}One release commit GET/v1/distribution/ledger/walletsFilter by trackId, releaseId GET/v1/distribution/ledger/wallets/{ledgerWalletId}One wallet commit GET/v1/distribution/ledger/videosVideo commits POST/v1/distribution/ledger/export/releasesAll release commits as JSONL POST/v1/distribution/ledger/export/walletsAll wallet commits as JSONL

Reading needs LEDGER_READ and works with tenant and client keys. Lists are paginated like every other list (see API basics) and return the newest commits first (createdAt, descending) unless you pass sortBy and sortOrder. A client key can narrow them with tenantId. The video list filters by videoId and gtin.

The cURL examples on this page use $BASE for https://api-sandbox.releaseapi.com/v1 and $RELEASEAPI_KEY for your key, as set up in the Quickstart.

curl -G "$BASE/distribution/ledger/wallets" \
  --data-urlencode "trackId=f30b6e2a-1c9d-4f7b-8e4a-6d2c0b9f1e57" \
  -H "X-API-KEY: $RELEASEAPI_KEY"
{
  "items": [
    {
      "id": "5c8e1a3f-7b2d-4e9c-a6f1-0d3b8e2c7a45",
      "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
      "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
      "trackId": "f30b6e2a-1c9d-4f7b-8e4a-6d2c0b9f1e57",
      "effectiveDate": "2026-06-01",
      "shareRules": [
        {
          "shares": [
            { "walletId": "9d2a7c55-0e3b-4a6f-8c21-7f4b1d9e3a02", "sharePerMio": 520000 },
            { "walletId": "47be01d3-5c8a-4e29-b6f0-3a1d8e7c2b94", "sharePerMio": 300000 },
            { "walletId": "c0ff3e11-2d4a-4b6c-9e8f-5a7b3c1d0e92", "sharePerMio": 180000 }
          ]
        }
      ],
      "createdAt": "2026-05-14T10:02:31.540Z"
    }
  ],
  "hasMore": false,
  "limit": 100,
  "offset": 0
}
Release commit fields
iduuid

The commit’s id. A replaced same-month commit disappears and its successor gets a new id.

clientId, tenantIduuid
gtinstring

The barcode this commit maps.

effectiveDatedate

The first day this commit applies, which is always the first of a month.

releaseIduuid
trackCountinteger

The number of tracks a bundle line is divided by.

clientFeePercentage, tenantFeePercentagenumber

Exact decimals. Parse them as decimals, not floats (in Python, json.loads(…, parse_float=Decimal)).

ownerCustomerIduuid
isTakenDownboolean

Written by a takedown, and also true on every manual mapping. A taken-down commit still resolves revenue, but at lower priority.

isManualMappingboolean

Added by a client or by a statement fallback mapping.

trackMappingsarray

Every ISRC that maps to a track of this release: the primary ISRC, a Dolby Atmos ISRC, and any secondary ISRCs. Secondary entries have isSecondary: true.

isrcstring
trackIduuid
volumeNumber, trackNumberinteger
isSecondaryboolean, optional

Missing means false.

createdAttimestamp

When the commit was written. It can be later than effectiveDate (see History and audit).

Unique per client on (gtin, releaseId, effectiveDate).

Wallet commit fields
id, clientId, tenantIduuid
trackIduuid
effectiveDatedate

Always the first of a month. The rule applies to sales from this month on.

shareRulesarray

Zero or one rule, each a list of shares with walletId and sharePerMio. An empty list means the track had no rule, so its money stays at customer level.

createdAttimestamp

Unique per client on (trackId, effectiveDate).

Video commit fields

A video commit combines both ledgers: id, clientId, tenantId, videoId, gtin, isrc, secondaryIsrc (optional list), effectiveDate, clientFeePercentage, tenantFeePercentage, ownerCustomerId, isManualMapping, isTakenDown, shareRules and createdAt. Unique per client on (gtin, videoId, effectiveDate).

Export the whole ledger

The export endpoints take no request body and stream every commit in your scope as JSON Lines. Use them to mirror the ledger in a warehouse or to audit splits across your whole catalog.

curl -X POST "$BASE/distribution/ledger/export/wallets" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -o wallet-ledger-export.jsonl

Events

Commits are journaled as LEDGER_RELEASE_COMMIT, LEDGER_WALLET_COMMIT or LEDGER_VIDEO_COMMIT.

See the Event catalog.

Share rule errors

A share rule or fee that breaks the rules above is rejected with one of these codes:

CodeMeaning
SHARE_SUM_INVALIDThe shares don’t add up to 1,000,000.
INVALID_SHARE_PER_MIOA share is below 0 or above 1,000,000.
SHARE_WALLET_DUPLICATEDThe same wallet appears twice in one rule.
TOO_MANY_SHARESA rule has more than 20 wallets.
SHARE_RULES_NEED_SHARESA rule has an empty shares list.
TRACK_SHARE_RULE_MAX_ONE_PER_TRACKA track has more than one rule.
WALLET_ID_NOT_FOUND
WALLET_BELONGS_TO_OTHER_TENANT
The wallet doesn’t exist in the release’s tenant.
INVALID_FEE_PERCENTAGEA fee is outside 0–1. Send 0.15, not 15.

Client accounts: resolve and map codes

Two ledger tools need a client key: resolving a code across every tenant, and mapping an extra GTIN to a release. If you’re a tenant under RecordJet, RecordJet uses them on your behalf. Ask your RecordJet contact when a payout looks wrong or an old barcode needs to be mapped to a release.

Resolve a GTIN or ISRC

With a client key, the resolve endpoints run statement processing’s own lookup across every tenant. Use them to debug a payout or to check an edit before the month ends.

POST/v1/distribution/ledger/resolve-gtin{ gtin, hintIsrc? } POST/v1/distribution/ledger/resolve-isrc{ isrc }
curl "$BASE/distribution/ledger/resolve-gtin" \
  -H "X-API-KEY: $RELEASEAPI_CLIENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "gtin": "4063361000016" }'
{
  "resolved": [
    {
      "validFrom": null,
      "validTo": "2026-10-31",
      "validRuleRelease": {
        "gtin": "4063361000016",
        "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
        "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
        "releaseId": "e7a1b3c5-8d2f-4e6a-9b0c-1f3e5d7a9c24",
        "customerId": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708",
        "clientFeePercentage": 0.15,
        "tenantFeePercentage": 0.2,
        "effectiveDate": "2026-06-01",
        "items": [
          {
            "isrc": "DEXW92600001",
            "trackId": "f30b6e2a-1c9d-4f7b-8e4a-6d2c0b9f1e57",
            "volumeNumber": 1,
            "trackNumber": 1,
            "isSecondary": false
          }
        ],
        "isTakenDown": false,
        "isManualMapping": false
      }
    },
    {
      "validFrom": "2026-11-01",
      "validTo": null,
      "validRuleRelease": {
        "gtin": "4063361000016",
        "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
        "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
        "releaseId": "e7a1b3c5-8d2f-4e6a-9b0c-1f3e5d7a9c24",
        "customerId": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708",
        "clientFeePercentage": 0.15,
        "tenantFeePercentage": 0.25,
        "effectiveDate": "2026-11-01",
        "items": [
          {
            "isrc": "DEXW92600001",
            "trackId": "f30b6e2a-1c9d-4f7b-8e4a-6d2c0b9f1e57",
            "volumeNumber": 1,
            "trackNumber": 1,
            "isSecondary": false
          }
        ],
        "isTakenDown": false,
        "isManualMapping": false
      }
    }
  ]
}

Each entry is a period with one rule. A null bound means the period is open-ended, and identical periods are merged. In the Response tab, an edit raised the tenant fee from 20% to 25% for statements reported from November 2026. A video GTIN returns validRuleVideo instead.

Map an extra GTIN

For a barcode ReleaseAPI has never seen (an old GTIN from before a catalog move, a promotional bundle), a client can map it to an existing release. The mapping copies the release’s owner and tracks and uses the fees you send.

curl "$BASE/distribution/ledger/releases" \
  -H "X-API-KEY: $RELEASEAPI_CLIENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "releaseId": "e7a1b3c5-8d2f-4e6a-9b0c-1f3e5d7a9c24",
    "gtin": "4198765432108",
    "clientFeePercentage": 0.15,
    "tenantFeePercentage": 0.2
  }'
ErrorWhen
INVALID_GTINThe GTIN’s check digit is wrong.
GTIN_BELONGS_TO_ANOTHER_RELEASE
GTIN_BELONGS_TO_ANOTHER_VIDEO
The GTIN is already a release’s or a video’s own code.
NO_MANUAL_MAPPING_FOR_RELEASE_GTIN
NO_MANUAL_MAPPING_FOR_VIDEO_GTIN
The GTIN is the release’s (or video’s) own GTIN, so it needs no mapping.
404 RELEASE_NOT_FOUNDThe release id is unknown.
CANNOT_EDIT_THIS_MAPPINGThe mapping has already taken effect.
ISRC_BELONGS_TO_ANOTHER_VIDEO
ISRC_BELONGS_TO_ANOTHER_RELEASE_TRACK
You edited a video mapping whose ISRC is already used elsewhere.
A mapping also re-registers the release’s ISRCs

The mapping carries the release’s tracks and is stored like a taken-down copy of the release. From its effective date, lines that arrive with an ISRC and no GTIN use the mapping’s fees and GTIN, and an active release that shares one of those ISRCs takes those lines over. Send the same fees the release already has, and check shared ISRCs with resolve-isrc before you map.

A manual mapping only affects months from its effective date on.

Next steps

Monthly statements

Read how each month of store money was split by the ledger.

Read the guide →

How money flows

Follow the full chain from gross revenue to the wallets, with a worked example.

Read the guide →

Manage live releases

Edit a live release to change its split.

Read the guide →