How money flows

Every month, stores report what your catalog earned. ReleaseAPI matches each line to a release, takes the fees you agreed, and splits the rest across the wallets of the people you pay. This page shows how to set up those payees, then follows one €10 sale through every step.

At a glance

RecordJet imports the stores’ statements, and ReleaseAPI works out who earned what, month by month, and shows the result in reports, analytics and exports. Paying them is up to your product. Read this page before you model royalties, because a wrong assumption here later turns into a payout nobody can explain.

The chain, in one picture

A statement line carries a store, a month, a GTIN (the release’s barcode) or an ISRC (one recording’s code), and an amount. ReleaseAPI resolves it to a release and passes the money down three levels:

A 10 euro statement line passes the client fee, then the tenant fee, reaches the owner customer and is split across three wallets. Statement line €10.00 GTIN / ISRC, month Client fee 15% keeps €1.50 passes on €8.50 Tenant fee 20% keeps €1.70 passes on €6.80 Owner €6.80 customer revenue Artist 52% €3.536 Producer 30% €2.040 Label 18% €1.224 fees: per release, or the tenant default track share rule
One €10.00 statement line for a single track. Fees come off in order, and the share rule splits what reaches the owner.
Client
The account that holds the store deals and imports statements. For most companies this is RecordJet, and you work as a tenant inside it. The client keeps clientFeePercentage of the gross. For a tenant under RecordJet, that is RecordJet’s distribution fee as agreed in your contract. Acceptance sets it for you, so leave accounting.clientFeePercentage out of your drafts.
Tenant
Your company’s catalog inside the client, such as your label. It keeps tenantFeePercentage of what the client passes on. This is your own cut before your artists are paid. Use 0 if you pass everything on.
Owner customer
The payee who owns the release (accounting.ownerCustomerId). What is left after both fees is the owner’s customer revenue.
Wallets
Buckets that collect money. Each track’s share rule says what fraction of the customer revenue goes to which wallet. A wallet can belong to the owner or to any other customer in the same tenant.

The same chain runs on daily trend data, where every amount is an estimate (the fields are prefixed estimated). Statements are the authoritative figures. Pay people from statements, and use trends for dashboards. See Reports and exports › Daily trends.

Customers and wallets: who gets paid

A customer is someone you pay, and a wallet is where their share collects. Create both before you submit a release, because every release needs an owner and every track’s split points at wallets. Customers and wallets mirror the payees in your own system. They carry no bank details and no balance. ReleaseAPI only uses them to label money, so you can tell from a report exactly whose share each euro is.

A release has one owner customer. Each track has a share rule that points at wallets. Each wallet belongs to one customer. Release ownerCustomerId Track accounting.shareRules owner Wallets one or more per customer sharePerMio Customers artists, producers, labels, rights holders customerId
A release has exactly one owner. Its tracks split money across wallets, and each wallet belongs to exactly one customer.

Create one customer per payee in your system: an artist, a producer, a label, a co-publisher. Give each customer one or more wallets, for example to keep an artist’s own royalties apart from the producer points they earn on other people’s records. The release’s owner customer receives what is left after fees, and the track’s share rule divides it across wallets, as shown above.

Customers and wallets live inside one tenant. A release can only use customers and wallets from its own tenant.

Endpoints
POST/v1/distribution/accounting/customersCreate a customer GET/v1/distribution/accounting/customersList and filter GET/v1/distribution/accounting/customers/{customerId}Read one PUT/v1/distribution/accounting/customers/{customerId}Replace details POST/v1/distribution/accounting/walletsCreate a wallet GET/v1/distribution/accounting/walletsList and filter GET/v1/distribution/accounting/wallets/{walletId}Read one PUT/v1/distribution/accounting/wallets/{walletId}Change externalId

Customers and wallets need the ACCOUNTING_READ and ACCOUNTING_WRITE permissions. Both tenant and client keys work. A client key must say which tenant the object belongs to with tenantId in the body, and can filter lists with ?tenantId=. A HEAD request on a customer or wallet URL checks whether it exists without returning it.

Create a customer

Send whatever you know about the payee in details. Every field there is optional. Put your own id for this person in externalId so you can find the customer again without storing ReleaseAPI’s id.

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 "$BASE/distribution/accounting/customers" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "externalId": "artist-8812",
    "details": {
      "firstName": "Nova",
      "lastName": "Reyes",
      "email": "nova@novareyes.example",
      "city": "Lisbon",
      "country": "PT"
    }
  }'
// api() is the helper from the Quickstart setup (BASE ends in /v1)
const customer = await api("POST", "/distribution/accounting/customers", {
  externalId: "artist-8812",
  details: {
    firstName: "Nova",
    lastName: "Reyes",
    email: "nova@novareyes.example",
    city: "Lisbon",
    country: "PT",
  },
});
# api() is the helper from the Quickstart setup (BASE ends in /v1)
customer = api("POST", "/distribution/accounting/customers", {
    "externalId": "artist-8812",
    "details": {"firstName": "Nova", "lastName": "Reyes", "email": "nova@novareyes.example",
                "city": "Lisbon", "country": "PT"},
})
{
  "id": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708",
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
  "externalId": "artist-8812",
  "details": {
    "firstName": "Nova",
    "lastName": "Reyes",
    "companyName": null,
    "email": "nova@novareyes.example",
    "street": null,
    "zip": null,
    "city": "Lisbon",
    "country": "PT",
    "notes": null
  },
  "externalData": null,
  "internalId": null,
  "createdAt": "2026-10-05T09:12:44.318Z"
}

externalId is unique within a tenant. Creating a second customer with the same value fails with EXTERNAL_ID_ALREADY_DEFINED, which makes it a safeguard against creating a payee twice when you retry. The same check runs when you change an externalId with PUT.

Customer fields

iduuid

Assigned by ReleaseAPI. Use it as ownerCustomerId on releases and as customerId on wallets.

tenantIduuid

The tenant the customer belongs to. Required in the request when you use a client key. With a tenant key, it’s taken from the key.

externalIdstring

Your own reference. It must be under 100 characters and unique per tenant.

externalDatastring

Free-form data for your own use, under 10,000 characters. ReleaseAPI stores it and never reads it. A JSON string works well.

detailsobject

Contact and address data. Every field is an optional string: firstName, lastName, companyName (for labels, publishers and other companies), email, street, zip, city, country (ISO 3166-1 alpha-2, such as PT) and notes.

createdAtdate-time

When the customer was created, in UTC.

Create a wallet

A wallet needs only the customer it belongs to. Give it an externalId that says what the money is for. A wallet’s customer is fixed, so the wallet can’t move to another customer later.

curl "$BASE/distribution/accounting/wallets" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708",
    "externalId": "artist-8812-royalties"
  }'
const wallet = await api("POST", "/distribution/accounting/wallets", {
  customerId: customer.id,
  externalId: "artist-8812-royalties",
});
wallet = api("POST", "/distribution/accounting/wallets", {
    "customerId": customer["id"],
    "externalId": "artist-8812-royalties",
})
{
  "id": "9d2a7c55-0e3b-4a6f-8c21-7f4b1d9e3a02",
  "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
  "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
  "customerId": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708",
  "externalId": "artist-8812-royalties",
  "internalId": null,
  "createdAt": "2026-10-05T09:12:45.027Z"
}

List a customer’s wallets with GET /v1/distribution/accounting/wallets?customerId=…. If the customer doesn’t exist in the tenant, the create call fails with 400. The error code is CLIENT_DOES_NOT_EXIST, which here means the customer wasn’t found.

One wallet per payee is a good default. Add more only when your own accounting needs to separate the money, for example by contract or by tax treatment.

Attach them to a release

Customers and wallets have no effect until a release uses them. On the draft, set the owner on the release and a share rule on each track:

{
  "release": {
    "accounting": {
      "ownerCustomerId": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708"
    }
  },
  "tracks": [
    {
      "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 }
            ]
          }
        ]
      }
    }
  ]
}
Only the accounting parts are shown. The rest of the release and track fields are on Build a release.

If you leave out clientFeePercentage and tenantFeePercentage, the release takes the tenant’s default fees when it is accepted. The owner is required, and it can’t change once the release is live. The rules for splits are on Splits and the ledger.

Find customers

Lists are paginated with limit (up to 100) and offset, and return hasMore. Look a customer up by your own id with externalId, or fetch several at once with ids, a comma-separated list of up to 100 ids. Pagination and sorting work the same everywhere, as described in API basics.

curl -G "$BASE/distribution/accounting/customers" \
  --data-urlencode "externalId=artist-8812" \
  -H "X-API-KEY: $RELEASEAPI_KEY"
{
  "items": [
    {
      "id": "0b1c2d3e-4f50-4a61-8b72-93c4d5e6f708",
      "clientId": "7c4a91e2-5d3b-4f08-a6e1-93b2c0d4e517",
      "tenantId": "b55ec853-f63b-4cb3-9c2f-868b4eb42f95",
      "externalId": "artist-8812",
      "details": {
        "firstName": "Nova",
        "lastName": "Reyes",
        "email": "nova@novareyes.example",
        "city": "Lisbon",
        "country": "PT"
      },
      "createdAt": "2026-10-05T09:12:44.318Z"
    }
  ],
  "hasMore": false,
  "limit": 100,
  "offset": 0
}

Update a customer

PUT replaces the customer’s externalId, externalData and details as a whole. Send every field you want to keep, because anything you leave out is cleared.

curl -X PUT "$BASE/distribution/accounting/customers/$CUSTOMER_ID" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "externalId": "artist-8812",
    "details": {
      "firstName": "Nova",
      "lastName": "Reyes",
      "email": "management@novareyes.example",
      "city": "Lisbon",
      "country": "PT"
    }
  }'
A missing externalId clears it

Read the customer, change what you need, and send the whole object back. A PUT with only details removes the customer’s externalId and externalData.

There is no optimistic locking: a PUT doesn’t check whether someone else changed the customer since you read it, and the last write wins. If several people edit payees in your product, serialize the updates on your side.

Update a wallet

The only thing you can change on a wallet is its externalId: PUT /v1/distribution/accounting/wallets/{walletId} with { "externalId": "…" }. Leaving it out clears it. Customers and wallets can’t be deleted, because past statements keep referring to them.

A worked example

Nova Reyes released the single Midnight Static through the tenant Lowtide Records. The release uses the tenant’s default fees, and the track is split three ways.

SettingValue
Client feeclientFeePercentage: 0.15
Tenant feetenantFeePercentage: 0.2
OwnerNova Reyes (customer)
Share rule on the trackNova’s wallet 520000, producer Theo Marsh’s wallet 300000, Lowtide’s label wallet 180000
Statement lineApple, reported 2026-09, sold 2026-08, ISRC DEXW92600001, revenue €10.00

Amounts are stored as whole numbers of nano-euros (1 EUR = 1,000,000,000), so the arithmetic is exact:

revenueClient     10_000_000_000   = 10.00                       # €10.00 gross
revenueTenant      8_500_000_000   = 10.00 × (1 − 0.15)          # client keeps €1.50
revenueCustomer    6_800_000_000   = 10.00 × (1 − 0.15) × (1 − 0.20)  # tenant keeps €1.70

split by sharePerMio (revenueCustomer × share ÷ 1,000,000)
  Nova Reyes       3_536_000_000   520000                # €3.536
  Theo Marsh       2_040_000_000   300000                # €2.040
  Lowtide Records  1_224_000_000   180000                # €1.224
                   ─────────────
                   6_800_000_000                         # = revenueCustomer
Where the 10 euros go: client fee 1.50, tenant fee 1.70, then Nova Reyes 3.536, Theo Marsh 2.04 and Lowtide Records 1.224. fees €3.20 · 32% customer revenue €6.80 · 68% €1.50 €1.70 €3.536 €2.040 €1.224 Client fee 15% of gross Tenant fee 20% of €8.50 Nova Reyes · 52% 35.36% of gross Theo Marsh · 30% 20.4% of gross Lowtide · 18% 12.24% €0 €10.00
The same €10.00, drawn to scale. The share rule’s percentages apply to the owner’s €6.80, not to the gross: Nova’s 52% is 35.36% of what the store paid.
Fees compound instead of adding up

The tenant fee applies to what is left after the client fee. With 15% and 20%, the owner receives (1 − 0.15) × (1 − 0.20) = 68% of the gross, not 65%. Show your users the compounded number.

Album sales without an ISRC

When a store reports a whole-album sale, the line carries only the GTIN. ReleaseAPI divides each level of the line evenly across the release’s tracks, then splits each track’s part by that track’s share rule. Here is a €10.00 bundle on a three-track release with the same 15% and 20% fees:

LevelWhole line÷ 3, roundedTrack 1Tracks 2 and 3
Client10_000_000_0003_333_333_3333_333_333_334 (+1)3_333_333_333
Tenant8_500_000_0002_833_333_3332_833_333_334 (+1)2_833_333_333
Customer6_800_000_0002_266_666_6672_266_666_666 (−1)2_266_666_667

Rounding each part can overshoot as well as fall short. For the customer level, three times 2_266_666_667 is one nano-euro more than the line, so the first track gets one less. The tracks always add up to the line exactly.

Secondary ISRCs and a Dolby Atmos ISRC route money to their track, but they don’t count as extra tracks when a bundle is divided.

Rounding, exactly

If you recompute splits in your own books, use this algorithm. It matches ReleaseAPI to the nano-euro. Fees are exact decimals, never binary floats. Every rounding is half-to-even to a whole nano-euro.

# Every level is computed from the gross, never from the level above it
factor = { "client": 1,
           "tenant": (1 - clientFee),
           "customer": (1 - clientFee) * (1 - tenantFee) }   # exact decimal

for level in factor:
    total[level] = round_half_even(revenue * factor[level])

    if line_is_bundle:                          # GTIN, no ISRC, n tracks
        part = round_half_even(total[level] / n)
        track[1][level] = part + (total[level] - n * part)   # remainder, may be negative
        track[2..n][level] = part
    else:
        track[matched][level] = total[level]

# Then, per track row, with share rule [s1, s2, ... sk] (sharePerMio)
for i in 1..k:
    wallet[i] = round_half_even(customer * s_i / 1_000_000)
wallet[1] += customer - sum(wallet)             # remainder, may be negative

Track 2 of the bundle above, split 50% / 25% / 25%, shows a negative remainder at wallet level:

500000  →  1_133_333_333.5  →  1_133_333_334
250000  →    566_666_666.75 →    566_666_667
250000  →    566_666_666.75 →    566_666_667
                               ─────────────
                               2_266_666_668   # one too many

first wallet 1_133_333_334 − 1 = 1_133_333_333   # wallets now sum to 2_266_666_667

“First” means the first entry in the list. For wallets, that’s the first wallet in the track’s share rule. For tracks, it’s the first track in the release’s ledger commit, which is the first entry of trackMappings that isn’t marked isSecondary. Read it with GET /v1/distribution/ledger/releases?releaseId=… (see Check where money goes as a tenant). Remainders are at most a few nano-euros per line. Rounding happens per line, before anything is added up, so every total in reports, analytics and exports is a sum of these per-line amounts.

Units and currency

Six rules apply to every amount ReleaseAPI reports:

Which settings apply to which month

Fees, owners and splits change over time. ReleaseAPI keeps every version in the ledger with an effective date, and picks the version by month:

SettingLooked up byWhy
Client fee, tenant fee, owner customerThe month the store reported the line (reportedAt)Fees are a commercial agreement about money you receive now.
Share rule (who gets which wallet share)The month the sale happened (soldAt)A split belongs to the period when the work earned the money, even if the store reports it late.
A sale in August reported in September uses the split in force on 1 August and the fees and owner in force on 1 September. A split accepted on 5 October takes effect on 1 November. Jul 2026AugSepOctNov SalesoldAt 2026-08 Store reports itreportedAt 2026-09 split change accepted 5 Oct → in effect 1 Nov Share rule in force on 1 Augwallet commit → who gets which share Fees and owner in force on 1 Seprelease commit → client fee, tenant fee, owner
The worked example’s line, sold in August and reported in September, uses two different ledger versions. The October split change doesn’t touch it, and only reaches sales from November.

Every change takes effect on the 1st of the month after it is accepted, counted by the UTC date of acceptance, not of submission. A split changed on 5 October applies to sales from November. A November sale reported in January uses the new split, while an October sale reported in January still uses the old one. An edit submitted on 30 October and accepted on 2 November takes effect on 1 December.

Changing the past

The ledger only moves forward. There is no way to apply a split or a fee to a month that has already started, through the API or on request, and accepted statement months are final. This keeps every published number reproducible, but it means you always handle two common situations in your own books:

Wallet-level reports carry each line’s sold_at, share_per_mio and revenue_customer, so you can recompute what the right split would have paid. (The only commits dated back are RecordJet’s mappings for unmatched statement lines, which never change an accepted month. See History and audit.)

The first version of a release’s settings also covers everything before it. A store that reports a sale from before the release was accepted still finds an owner and a split.

Paying people

ReleaseAPI has no balance, payout or bank-account object. Customers are master data, and wallets are labels on money. To run payouts:

  1. Wait until the month is accepted. Nothing is final before that. As a tenant, you know a month is accepted when its reports appear (see Know when a month is final).
  2. Work out what each payee earned that month. You can pay customers or wallets:
    • Customers, if you don’t split revenue: pay each release owner its total_revenue_customer from the STATEMENTS_PLAYS_PER_CUSTOMER report.
    • Wallets, if you use share rules: sum each wallet’s money from the STATEMENTS_PLAYS_PER_WALLET report, as described in Show each artist their monthly earnings. Group wallets by customer if you pay per artist.
  3. Add the amounts to the balances you keep in your own system, apply tax, and pay. Store the wallet id or your externalId next to each payout so you can reconcile later.
Don’t mix the two levels

Customer-level reports group money by the release owner, before splits. If a producer’s wallet sits on someone else’s release, their share only shows up at wallet level. So when you split revenue with share rules, pay from wallet amounts. Paying owners on top of that would pay the same money twice.

Add up only the wallet column. Wallet-level rows and series also carry quantity and the client, tenant and customer amounts of the whole line, repeated for every wallet on the track. Sum the wallet column only: revenue_wallet or total_revenue_wallet in reports, earningsWallet in statement series (estimatedEarningsWallets in daily series). Summing the other columns counts a three-way split three times.

Good to know

These behaviours often surprise integrators:

Customer and wallet events

Changes to customers and wallets appear in the journal. Match on elementType and eventType, not on eventName: a customer created with a tenant key is journaled as CREATED without an eventName, so a consumer that waits for CUSTOMER_CREATED misses every customer a tenant creates.

elementTypeeventTypeeventName
CUSTOMERCREATEDCUSTOMER_CREATED, or none when a tenant key created it
CUSTOMERUPDATEDCUSTOMER_UPDATED
WALLETCREATEDWALLET_CREATED
WALLETUPDATEDWALLET_UPDATED

Customer and wallet errors

The customer and wallet endpoints, and draft writes that point at customers or wallets, return these codes:

CodeWhen
TENANT_ID_NEEDED_FOR_CLIENT_REQUESTA client key created a customer or wallet without tenantId.
EXTERNAL_ID_ALREADY_DEFINEDAnother customer in the tenant already uses this externalId (for wallets: another wallet). Raised on create and on update, when you rename a customer or wallet to a value another one already uses.
CLIENT_DOES_NOT_EXISTYou created a wallet for a customer that doesn’t exist in the tenant. Despite the name, it means the customer wasn’t found.
CUSTOMER_NOT_FOUND
CUSTOMER_BELONGS_TO_OTHER_TENANT
A draft’s ownerCustomerId doesn’t point at a customer in the release’s tenant.
WALLET_ID_NOT_FOUND
WALLET_BELONGS_TO_OTHER_TENANT
A share rule points at a wallet that doesn’t exist or belongs to another tenant.

Next steps

Splits and the ledger

Set share rules and see which version applies on any date.

Read the guide →

Build a release

Where to set the owner and the share rules on a draft.

Read the guide →

Monthly statements

Know when a month is final and read what each payee earned.

Read the guide →

Analytics

Show a customer or wallet what they earned.

Read the guide →