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.
- Every payee is a customer, and their money collects in their wallets. A release has one owner customer, and each track’s share rule splits money across wallets.
- The client fee comes off first, then the tenant fee, and the share rule splits the rest. Fees compound, so 15% and 20% leave the owner 68%, not 65%.
- Amounts are in EUR only, stored as integers in nano-euros and rounded half-to-even per line. Remainders go to the first track and the first wallet.
- Fees and the owner follow the reported month, while splits follow the sale month. Changes start on the 1st of the month after acceptance.
- Past months never change, so you correct them in your own books.
- ReleaseAPI works out who earned what, but it doesn’t pay anyone. You pay from the wallet data once a month is final.
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:
- 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
clientFeePercentageof the gross. For a tenant under RecordJet, that is RecordJet’s distribution fee as agreed in your contract. Acceptance sets it for you, so leaveaccounting.clientFeePercentageout of your drafts. - Tenant
- Your company’s catalog inside the client, such as your label. It keeps
tenantFeePercentageof what the client passes on. This is your own cut before your artists are paid. Use0if 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.
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.
/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
Assigned by ReleaseAPI. Use it as ownerCustomerId on releases and as customerId on wallets.
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.
Your own reference. It must be under 100 characters and unique per tenant.
Free-form data for your own use, under 10,000 characters. ReleaseAPI stores it and never reads it. A JSON string works well.
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.
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 }
]
}
]
}
}
]
}
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"
}
}'
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.
| Setting | Value |
|---|---|
| Client fee | clientFeePercentage: 0.15 |
| Tenant fee | tenantFeePercentage: 0.2 |
| Owner | Nova Reyes (customer) |
| Share rule on the track | Nova’s wallet 520000, producer Theo Marsh’s wallet 300000, Lowtide’s label wallet 180000 |
| Statement line | Apple, 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
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:
| Level | Whole line | ÷ 3, rounded | Track 1 | Tracks 2 and 3 |
|---|---|---|---|---|
| Client | 10_000_000_000 | 3_333_333_333 | 3_333_333_334 (+1) | 3_333_333_333 |
| Tenant | 8_500_000_000 | 2_833_333_333 | 2_833_333_334 (+1) | 2_833_333_333 |
| Customer | 6_800_000_000 | 2_266_666_667 | 2_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:
- EUR only. Statements must be in euros (
revenueCurrency: "EUR"). ReleaseAPI does no currency conversion. - Nano-euros. Every amount in statement rows, reports and analytics responses is an integer in billionths of a euro. Divide by 1,000,000,000 for display. Never parse these as floats:
3536000000is €3.536. - Fees are fractions.
clientFeePercentageandtenantFeePercentageare decimals between 0 and 1.0.15is 15%. They arrive as JSON numbers. Parse them as decimals, not binary floats (in Python,json.loads(…, parse_float=Decimal)), or your recomputed splits will occasionally be off by a nano-euro. Keep fees to at most six decimal places, because reports also carry them as integers per million (client_fee_per_mio), which are only exact up to six places. - Shares are per million.
sharePerMiois an integer from 0 to 1,000,000. The shares in one rule must add up to exactly 1,000,000. - Negative amounts. Refunds, chargebacks and store corrections can be negative lines. They run through the same fees, shares and rounding as positive ones and reduce the wallets they apply to.
- Rounding. Every step rounds half-to-even, and the remainder goes to the first track and the first wallet, so put the main payee first. See Rounding, exactly.
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:
| Setting | Looked up by | Why |
|---|---|---|
| Client fee, tenant fee, owner customer | The 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. |
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.
- Several changes in one month overwrite each other, so only the last one counts.
- Accounting-only edits (fees, splits) are accepted automatically, but still submit them well before the month ends.
- You can’t schedule a change for a later month: to start a split in March, submit it in February. See Change splits on live releases.
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:
- A contract signed in October that applies from July. Set the new split now, and it takes effect from November. For July to October, book the difference between the old and the new split as an adjustment between the wallets in your own system.
- A split that was entered wrongly. Correct it now, and book the difference for the months already paid out the same way.
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:
- 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).
- 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_customerfrom theSTATEMENTS_PLAYS_PER_CUSTOMERreport. - Wallets, if you use share rules: sum each wallet’s money from the
STATEMENTS_PLAYS_PER_WALLETreport, as described in Show each artist their monthly earnings. Group wallets by customer if you pay per artist.
- Customers, if you don’t split revenue: pay each release owner its
- Add the amounts to the balances you keep in your own system, apply tax, and pay. Store the wallet id or your
externalIdnext to each payout so you can reconcile later.
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:
- Every release needs an owner customer before it can be accepted, and the owner can’t change once the release is live.
- A track without a share rule still earns money at customer level, but no wallet receives it. Neither validation nor the import warns about it, so it’s easy to miss. Check in your own code that every track’s
accounting.shareRuleshas one rule before you submit. Always set a rule, even a single wallet at1000000. To catch it after the fact, compare a track’s customer revenue inSTATEMENTS_PROCESSEDwith the sum of its wallet rows inSTATEMENTS_SPLIT. The two match for every track that has a rule. - A takedown doesn’t stop revenue. Late statements for a taken-down release still resolve to it and still pay its wallets.
- ReleaseAPI’s platform charges for using the API are separate from the revenue fees on this page. Prices are on releaseapi.com, and how usage is counted is explained under Billing.
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.
elementType | eventType | eventName |
|---|---|---|
CUSTOMER | CREATED | CUSTOMER_CREATED, or none when a tenant key created it |
CUSTOMER | UPDATED | CUSTOMER_UPDATED |
WALLET | CREATED | WALLET_CREATED |
WALLET | UPDATED | WALLET_UPDATED |
Customer and wallet errors
The customer and wallet endpoints, and draft writes that point at customers or wallets, return these codes:
| Code | When |
|---|---|
TENANT_ID_NEEDED_FOR_CLIENT_REQUEST | A client key created a customer or wallet without tenantId. |
EXTERNAL_ID_ALREADY_DEFINED | Another 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_EXIST | You 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_FOUNDCUSTOMER_BELONGS_TO_OTHER_TENANT | A draft’s ownerCustomerId doesn’t point at a customer in the release’s tenant. |
WALLET_ID_NOT_FOUNDWALLET_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 →