# Recipes

> Short answers to the tasks that come up every week. Each recipe gives the calls in order, the one thing that usually goes wrong, and where the full story lives.

Source: https://docs.releaseapi.com/recipes.html

**At a glance**

- 24 recipes, grouped by task in the [index](https://docs.releaseapi.com/recipes.html#index). The last two need a client key. Everything else works with your tenant key.
- Every recipe has the same shape: when you need it, the calls in order, what to watch out for, and where the full story is.
- New integration? Start with [Register your GTIN and ISRC ranges](https://docs.releaseapi.com/recipes.html#register-ranges).
- If you’re building screens for artists, start with [Show a release’s status](https://docs.releaseapi.com/recipes.html#status-for-users) and [Show an artist’s monthly earnings](https://docs.releaseapi.com/recipes.html#artist-earnings).

The recipes assume a tenant key in `$RELEASEAPI_KEY` and the sandbox base URL. Where a recipe needs a client key, it says so in its title. Ids such as `$RELEASE_ID` are the ones you already store next to your own records.

## Index

Recipes are grouped by what you’re doing.

| Area | Recipes |
| --- | --- |
| Before your first release | [Register your GTIN and ISRC ranges](https://docs.releaseapi.com/recipes.html#register-ranges) |
| New releases | [Ship a pre-order](https://docs.releaseapi.com/recipes.html#ship-a-pre-order) · [Credit a featured artist on Spotify](https://docs.releaseapi.com/recipes.html#credit-a-featured-artist) · [Put an existing recording on a compilation](https://docs.releaseapi.com/recipes.html#reuse-an-isrc) · [Accept now, deliver later](https://docs.releaseapi.com/recipes.html#hold-a-release) · [Fix a rejection and resubmit](https://docs.releaseapi.com/recipes.html#fix-a-rejection) |
| Live releases | [Edit a live release safely](https://docs.releaseapi.com/recipes.html#edit-a-live-release) · [Change the release date](https://docs.releaseapi.com/recipes.html#change-the-release-date) · [Add a store](https://docs.releaseapi.com/recipes.html#add-a-store) · [Replace the cover](https://docs.releaseapi.com/recipes.html#replace-the-cover) · [Take a release down everywhere](https://docs.releaseapi.com/recipes.html#take-down-everywhere) · [Take a release off some stores](https://docs.releaseapi.com/recipes.html#take-down-from-some-stores) |
| Status and links | [Show a release’s status to your users](https://docs.releaseapi.com/recipes.html#status-for-users) · [Tell an artist their song is on Spotify](https://docs.releaseapi.com/recipes.html#live-on-spotify) · [Find every release by one artist](https://docs.releaseapi.com/recipes.html#find-an-artists-releases) |
| Sharing and video | [Share an unreleased release](https://docs.releaseapi.com/recipes.html#share-a-preview) · [Deliver a music video for a track](https://docs.releaseapi.com/recipes.html#video-for-a-track) |
| Money and data | [Change a track’s split from next month](https://docs.releaseapi.com/recipes.html#change-a-split) · [Show an artist’s monthly earnings](https://docs.releaseapi.com/recipes.html#artist-earnings) · [Pay artists every month](https://docs.releaseapi.com/recipes.html#pay-artists-monthly) · [Send a payee their statement as CSV](https://docs.releaseapi.com/recipes.html#payee-statement-csv) · [Mirror changes into your database](https://docs.releaseapi.com/recipes.html#mirror-the-journal) |
| Client accounts | [Accept a tenant’s release from a script](https://docs.releaseapi.com/recipes.html#accept-from-a-script) |

## Register your GTIN and ISRC ranges

**When you need this:** once per tenant before the first release that should get its codes from ReleaseAPI, and again every year for ISRCs.

ReleaseAPI never lends you codes, so you register a block from your own GS1 company prefix and from your ISRC registrant code. Acceptance then assigns the next free code to every release and track that arrives without one.

`POST /v1/distribution/identifiers/gtin-ranges`

**cURL**

```bash
curl -X POST https://api-sandbox.releaseapi.com/v1/distribution/identifiers/gtin-ranges \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "countryCode": 40, "companyNumber": 63361, "articleFrom": 0, "articleTo": 9999 }'

curl -X POST https://api-sandbox.releaseapi.com/v1/distribution/identifiers/isrc-ranges \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "countryKey": "DE",
    "ownerKey": "XW9",
    "year": 2026,
    "recordingFrom": 0,
    "recordingTo": 99999
  }'
```

**Response**

```json
{
  "id": "6d2e8f41-3b7a-4c09-9e15-a8b7c6d5e4f3",
  "countryCode": 40,
  "companyNumber": 63361,
  "articleFrom": 0,
  "articleTo": 9999,
  "articleNext": 0,
  "createdAt": "2026-10-05T07:20:44Z"
}
```

**Watch out:** ISRC ranges are per year, and assignment always uses the current year. Register next year’s range in December, or every acceptance from 1 January fails with `PROVIDER_OUT_OF_ISRC`. Ranges also can’t overlap any range anywhere in ReleaseAPI (`GTIN_RANGE_OVERLAPS_EXISTING`).

**More:** [Register your ranges](https://docs.releaseapi.com/identifiers.html#register-ranges).

## Ship a pre-order

**When you need this:** fans should be able to buy the album before its release date, with a single available straight away.

Set `distribution.preOrderDateTime` on the release, before the release date and no more than a year earlier. To let buyers download a track immediately (instant gratification), set `distribution.instantPreOrderDateTime` on that track. Everything else is a normal draft. Submit well before the pre-order date, so there’s time for RecordJet’s review.

**Draft fragment**

```json
{
  "release": {
    "distribution": {
      "releaseDateTime": "2027-01-15T00:00:00",
      "originalReleaseDate": "2027-01-15",
      "preOrderDateTime": "2026-12-04T00:00:00",
      "stores": ["APPLE_ITUNES", "AMAZON_DOWNLOAD", "SPOTIFY", "APPLE_MUSIC"],
      "countriesMode": "EXCLUDE",
      "countries": [],
      "pricingTier": "HIGH"
    }
  },
  "tracks": [
    { "id": "b2000000-0000-4000-8000-000000000001",
      "distribution": { "instantPreOrderDateTime": "2026-12-04T00:00:00" } }
  ]
}
```

**Watch out:** Pre-orders are a download-store feature. Streaming services wait for the release date. The release’s status moves to `PRESALE` at the daily 12:00 UTC run after the pre-order date passes.

**More:** [Albums, pre-orders and splits](https://docs.releaseapi.com/drafts.html#albums) · [Date fields](https://docs.releaseapi.com/drafts.html#dates).

## Credit a featured artist on Spotify

**When you need this:** a guest appears on a track and should be linked to their existing Spotify profile, not to a new, empty one.

1. **Find their Spotify id**

   Search by name and let your user pick the right profile from the image, followers and genres.

   `POST /v1/distribution/artists/spotify/query`

   **cURL**

   ```bash
   curl -X POST https://api-sandbox.releaseapi.com/v1/distribution/artists/spotify/query \
     -H "X-API-KEY: $RELEASEAPI_KEY" \
     -H "Content-Type: application/json" \
     -d '{ "searchString": "Lena Voss" }'
   ```

   **Response**

   ```json
   {
     "foundArtists": [
       {
         "name": "Lena Voss",
         "id": "6mXo2Zr1nT4bQ8wY3kLcPe",
         "details": {
           "followers": 12840,
           "popularity": 33,
           "genres": ["german pop"],
           "imageUrl": "https://i.scdn.co/image/…"
         }
       }
     ]
   }
   ```

2. **Add the credit on the track**

   Add a `FEATURING` contributor with the bare id. Keep the main `ARTIST` with your `providerArtistId`. One person can hold only one of `ARTIST`, `FEATURING` and `WITH`.

   **Track contributions**

   ```json
   "contributions": [
     { "role": "ARTIST", "name": "Nova Reyes",
       "providerArtistId": "artist-nova-reyes", "spotifyId": "4KsVHZ3XBKV7bIXF8x8q3y" },
     { "role": "FEATURING", "name": "Lena Voss", "spotifyId": "6mXo2Zr1nT4bQ8wY3kLcPe" },
     { "role": "COMPOSER", "name": "Mara Lind" },
     { "role": "PRODUCER", "name": "Jon Aster" }
   ]
   ```

**Watch out:** Send the bare id, not `spotify:artist:…`. Put one person in each entry: “Nova Reyes & Lena Voss” is two contributors, not one name.

**More:** [Find a Spotify artist](https://docs.releaseapi.com/identifiers.html#spotify) · [Contributor fields](https://docs.releaseapi.com/drafts.html#contributors).

## Put an existing recording on a compilation

**When you need this:** a track that’s already out appears on a best-of, a deluxe edition or a compilation.

A recording keeps its ISRC on every release it appears on. Write the existing code into the new track’s `identifiers.isrc`. Only the new release needs a new GTIN. Leave `identifiers.gtin` empty, and acceptance assigns one from your range. You don’t need an ISRC range for codes you send yourself.

**Track fragment**

```json
{
  "id": "c7d1e2f3-0a4b-4c5d-8e6f-7a8b9c0d1e2f",
  "details": {
    "releaseId": "5e9a1b2c-3d4e-4f60-8a7b-9c0d1e2f3a4b",
    "volumeNumber": 1,
    "trackNumber": 4,
    "title": "Midnight Static",
    "audioLanguage": "EN",
    "genrePrimary": "ELECTRONIC"
  },
  "identifiers": { "isrc": "DEXW92600001" }
}
```

**Watch out:** Reuse is allowed, but if the title, contributors or duration differ from the other release you get the warning `TRACK_WITH_SAME_ISRC_BUT_DIFFERENT_METADATA`. A different mix or edit is a different recording and needs its own ISRC. The same ISRC twice on one release is critical (`TRACK_IDENTIFIERS_ISRC_DUPLICATION`).

**More:** [Bring your own codes](https://docs.releaseapi.com/identifiers.html#bring-your-own) · [How uniqueness is checked](https://docs.releaseapi.com/identifiers.html#uniqueness).

## Accept now, deliver later

**When you need this:** the release should pass review and be in the catalog, but nothing may go to stores yet, for example during a migration.

Set `submission.syncRequestSuppress: true` on the draft before you submit. Acceptance writes the catalog release but doesn’t set a sync. To deliver later, ask your RecordJet contact to start a sync. An edit without the flag delivers only if it changes something stores see.

**Draft fragment**

```json
{ "release": { "submission": { "syncRequestSuppress": true } } }
```

**Watch out:** The hold lasts for one submission. A later edit without the flag that changes something stores see, even an automatically accepted date or price change, delivers the release. Set the flag on every edit of a release you’re still holding, and check that `storeSnapshot.syncRequest` is empty, because a sync that is already pending still delivers.

**More:** [Hold a release back](https://docs.releaseapi.com/delivery.html#hold-a-release).

## Fix a rejection and resubmit

**When you need this:** your journal consumer saw a rejection, and your user needs to know what to change.

1. **Read the reasons**

   Read the draft with `GET /v1/distribution/drafts/full-releases/{draftId}`. A rejected draft keeps everything you wrote and isn’t locked.

   `GET /v1/distribution/drafts/full-releases/{draftId}`

   ```json
   // abridged
   {
     "id": "1e83fb32-41c1-4101-ab53-cbed3240a893",
     "status": "REJECTED",
     "review": {
       "result": "REJECTED",
       "rejectionReasons": [
         { "code": "RELEASE_COVER_DOES_NOT_MATCH_METADATA", "isFixed": false,
           "reviewerComment": "The cover shows a different artist name." },
         { "code": "TRACK_TITLE_CONTAINS_TOO_MUCH_INFORMATION",
           "trackId": "9c0b1a22-77e1-4c0a-8f11-223344556677", "isFixed": false }
       ]
     }
   }
   ```

   Map each `code` to your own help text using the [validation code list](https://docs.releaseapi.com/reference-data.html#validation-codes). The `trackId` or `bookletId` tells you which part to fix.

2. **Fix, check, resubmit**

   PUT the corrected draft, run `GET /v1/distribution/drafts/releases/{draftId}/validation` until nothing blocks, then `PUT /v1/distribution/drafts/releases/{draftId}/status` with `{"status": "REVIEW"}`. Each resubmission starts a new review.

**Watch out:** Each rejection is written to the journal twice. Act only on the `DRAFT_RELEASE` event with `eventType: OTHER` and `eventName: DRAFT_RELEASE_REJECTED`, or your user gets two emails.

**More:** [Handle a rejection](https://docs.releaseapi.com/review.html#handle-a-rejection) · [Wait for the outcome](https://docs.releaseapi.com/review.html#wait-for-the-outcome).

## Edit a live release safely

**When you need this:** any change to a release that’s already in the catalog. The next five recipes all use this pattern.

1. **Check for an open edit**

   Call `GET /v1/distribution/drafts/full-releases/$RELEASE_ID`. A 404 means no edit is open. If a draft comes back, continue with it, or wait if it’s in review.

2. **Open the edit draft**

   `POST /v1/distribution/drafts/releases/draft-from-release`

   ```bash
   curl -X POST \
     https://api-sandbox.releaseapi.com/v1/distribution/drafts/releases/draft-from-release \
     -H "X-API-KEY: $RELEASEAPI_KEY" \
     -H "Content-Type: application/json" \
     -d "{ \"releaseId\": \"$RELEASE_ID\" }"
   ```

   The draft has the release’s id and current content.

3. **Change it and write it back**

   `GET` the draft, change only what you need, and PUT the whole body to `/v1/distribution/drafts/full-releases/$RELEASE_ID`. Keep every track id, position and ISRC.

4. **Submit**

   Send `PUT /v1/distribution/drafts/releases/$RELEASE_ID/status` with `{"status": "REVIEW"}`. On acceptance the live release is updated in place and the smallest sync that covers the change goes to stores.

> **Watch out:** `draft-from-release` deletes an existing edit draft without warning, even one in review. Always do step 1 first. An edit can’t change the track count, track positions, ISRCs, the GTIN or the owner.

**More:** [Edit a live release](https://docs.releaseapi.com/catalog.html#edit-a-live-release) · [What an edit can’t change](https://docs.releaseapi.com/catalog.html#what-an-edit-cant-change).

## Change the release date

**When you need this:** the launch date moves, either before or after the release has gone out.

Follow [Edit a live release safely](https://docs.releaseapi.com/recipes.html#edit-a-live-release) and change `distribution.releaseDateTime` (and `preOrderDateTime` if you have one). For a new release that hasn’t come out yet, keep `originalReleaseDate` in step with it. A date-only edit is accepted automatically and sent to stores as a metadata update.

**Watch out:** Stores need time to apply a moved date. If you bring a date forward by a few days shortly before launch, some stores may not apply it in time. Plan date changes at least two weeks ahead, as you would for a new release.

**More:** [Date fields](https://docs.releaseapi.com/drafts.html#dates) · [What gets sent to stores](https://docs.releaseapi.com/catalog.html#what-gets-sent).

## Add a store

**When you need this:** a live release should also go to a store you didn’t select at first.

Follow [Edit a live release safely](https://docs.releaseapi.com/recipes.html#edit-a-live-release) and add the store code to `distribution.stores`. On acceptance, a metadata sync goes only to the added store, which receives the release in full because it never had it.

**Watch out:** Adding stores always goes through review. The store must be covered by RecordJet’s delivery profiles for your tenant, and some stores have content rules (Beatport and Juno take electronic music only). Run the draft’s validation before you submit.

**More:** [Which stores you can use](https://docs.releaseapi.com/delivery.html#your-stores) · [Syncs happen automatically](https://docs.releaseapi.com/delivery.html#automatic-syncs).

## Replace the cover

**When you need this:** the artwork changes on a release that’s already out.

1. **Upload the new cover**

   `POST /v1/distribution/files/covers/upload/put/start`, PUT the bytes to the signed URL, then `POST …/covers/upload/put/finish/{coverFileId}`. Wait until `GET /v1/distribution/files/covers/{coverFileId}` shows status `SUCCESS`.

2. **Point the release at it**

   Follow [Edit a live release safely](https://docs.releaseapi.com/recipes.html#edit-a-live-release) and set `release.files.coverFileId` to the new id.

**Watch out:** A file change makes the edit a `FULL_SYNC`: metadata and files are delivered again to every store that has the release. The new cover still has to match the release’s title and artist, or review rejects it with `RELEASE_COVER_DOES_NOT_MATCH_METADATA`.

**More:** [Upload files](https://docs.releaseapi.com/files.html) · [File specifications](https://docs.releaseapi.com/files.html#specifications).

## Take a release down everywhere

**When you need this:** a release must come off every store, for example after a rights dispute.

`PUT /v1/distribution/catalog/releases/{releaseId}/takedown-request`

```bash
curl -X PUT \
  https://api-sandbox.releaseapi.com/v1/distribution/catalog/releases/$RELEASE_ID/takedown-request \
  -H "X-API-KEY: $RELEASEAPI_KEY"
```

ReleaseAPI clears `distribution.stores`, sets the status to `TAKEDOWN`, records the change in the ledger and sends takedowns to every store that had the release.

**Watch out:** A second request returns `TAKEDOWN_ALREADY_SET`. To bring the release back later, edit it and select stores again. That edit always goes through review.

**More:** [Take a release down](https://docs.releaseapi.com/delivery.html#takedowns).

## Take a release off some stores

**When you need this:** the release should stay live everywhere except on one or two stores.

Don’t use the takedown request, because it removes the release everywhere. Follow [Edit a live release safely](https://docs.releaseapi.com/recipes.html#edit-a-live-release) and remove those codes from `distribution.stores`. On acceptance, a metadata sync carrying the takedown goes only to the removed stores. A store-removal-only edit is accepted automatically.

**Watch out:** Takedowns only go to stores that actually had the release (`storeSnapshot.deliveredStores`). To restrict countries instead of stores, change `countriesMode` and `countries`.

**More:** [Take a release down](https://docs.releaseapi.com/delivery.html#takedowns) · [Stores and territories](https://docs.releaseapi.com/drafts.html#stores-and-territories).

## Show a release’s status to your users

**When you need this:** a status column or badge in your product (“In review”, “Needs changes”, “Delivering”, “Live”).

The label combines two reads for the release id: the catalog release (with its store snapshot) and the draft. Make the two calls, then show the first row of the status table that matches.

1. `GET /v1/distribution/catalog/releases/$RELEASE_ID`: `404` means not accepted yet. Otherwise `status` and `storeSnapshot.isSynced` tell you whether it’s taken down, out, delivered or still delivering.
2. `GET /v1/distribution/drafts/releases/$RELEASE_ID`: `404` means no open draft. Otherwise `status` is `DRAFT`, `REVIEW` or `REJECTED`.

Rather than polling, recompute the label when one of the events in the table’s last column arrives for the release.

**Watch out:** A live release can have an edit draft under the same id. Show the catalog state as the main status and the edit’s state next to it (“edit in review”). A `404` is an answer here, not an error.

**More:** [One status for your users](https://docs.releaseapi.com/delivery.html#status-for-users) has the full table and a ready-made `releaseStatus()` function.

## Tell an artist their song is on Spotify

**When you need this:** you want to send a “you’re live” message with a working link.

Read the release with `GET /v1/distribution/catalog/full-releases/$RELEASE_ID` and send the message once both conditions hold:

- `generated.storeReferences.spotifyId` is set, and
- `distribution.releaseDateTime` has passed.

The link is `https://open.spotify.com/album/{spotifyId}`; track links use each track’s own `generated.storeReferences.spotifyId` with `/track/`. Run the check when the journal reports `FULL_RELEASE_SPOTIFY_FEEDBACK_APPLIED` or `FULL_RELEASE_STORE_IDS_CRAWLED`. Both mean new store ids have arrived.

**Watch out:** Back-catalog releases accepted after their release date never get the automatic store-id lookup. Ask for one with `POST /v1/distribution/catalog/full-releases/$RELEASE_ID/request-store-id-crawl` and `{ "forceReload": true }`. Only Spotify, Apple Music, Deezer and Tidal ids are ever filled.

**More:** [Is it live?](https://docs.releaseapi.com/delivery.html#is-it-live) · [Live links and store ids](https://docs.releaseapi.com/delivery.html#store-links).

## Find every release by one artist

**When you need this:** an artist page in your product lists their catalog.

If the artist is your payee, filter by owner. If they’re credited on releases owned by someone else, filter by their store profile.

`GET /v1/distribution/catalog/full-releases`

**cURL**

```bash
# releases owned by this customer
curl -G \
  https://api-sandbox.releaseapi.com/v1/distribution/catalog/full-releases \
  -d customerId=$CUSTOMER_ID \
  -d limit=50 \
  -H "X-API-KEY: $RELEASEAPI_KEY"

# every release credited to this Spotify artist
curl -G \
  https://api-sandbox.releaseapi.com/v1/distribution/catalog/full-releases \
  -d contributorSpotifyId=$SPOTIFY_ID \
  -H "X-API-KEY: $RELEASEAPI_KEY"
```

**Response**

```json
{
  "items": [
    { "id": "1e83fb32-41c1-4101-ab53-cbed3240a893", "…": "…" }
  ],
  "hasMore": false,
  "limit": 50,
  "offset": 0
}
```

**Watch out:** By default, the list is sorted by release date, newest first. Page with `offset` while `hasMore` is true. `q` searches the title, title version and artist line as text, which also matches other artists with similar names, so prefer the id filters.

**More:** [List and filter](https://docs.releaseapi.com/catalog.html#list-and-filter).

## Share an unreleased release

**When you need this:** press or a playlist curator should hear the album before launch, without an account.

`POST /v1/distribution/marketing/preview-links`

**cURL**

```bash
curl -X POST https://api-sandbox.releaseapi.com/v1/distribution/marketing/preview-links \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "linkedReleaseId": "1e83fb32-41c1-4101-ab53-cbed3240a893",
    "expiresAt": "2026-11-20T00:00:00Z",
    "requestsRemaining": 50,
    "externalData": { "recipient": "Pulse Magazine" }
  }'
```

**Response**

```json
{
  "id": "6a8f3e2d-1b4c-4d5e-9f0a-7b8c9d0e1f2a",
  "accessSecret": "k7Qm2xPa",
  "linkedReleaseId": "1e83fb32-41c1-4101-ab53-cbed3240a893",
  "requestsRemaining": 50,
  "expiresAt": "2026-11-20T00:00:00Z",
  "externalData": { "recipient": "Pulse Magazine" }
}
```

Put the `accessSecret` in a link to your own player page, which calls the public preview endpoint from the browser without an API key.

**Watch out:** The preview plays full tracks, not clips. Treat the secret as a password: set an expiry and a request limit, use `filterTracks` to expose only the focus track, and delete the link when the campaign ends.

**More:** [Preview links](https://docs.releaseapi.com/catalog.html#share-before-release).

## Deliver a music video for a track

**When you need this:** a track that’s already in your catalog gets an official video.

`POST /v1/distribution/drafts/videos/draft-from-audio-track`

```bash
curl -X POST \
  https://api-sandbox.releaseapi.com/v1/distribution/drafts/videos/draft-from-audio-track \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "trackId": "9b2f4c1e-3a7d-4e8b-b6c5-1d2e3f4a5b6c" }'
```

The new draft copies the track’s title, contributors, flags and share rules, and the release’s dates, rights lines, owner and video-capable stores. It sets `relatedIsrc` to the track’s ISRC. Upload the video file and thumbnail, add them to the draft, and submit.

**Watch out:** This call isn’t idempotent: every call creates another draft video, with a generated id. Before you retry after a timeout, check whether the first call already created a draft with `GET /v1/distribution/drafts/videos?relatedIsrc={isrc}`.

**More:** [Start from an audio track](https://docs.releaseapi.com/videos.html#from-an-audio-track) · [Music videos](https://docs.releaseapi.com/videos.html).

## Change a track’s split from next month

**When you need this:** a contract changes and a producer’s share goes up.

Follow [Edit a live release safely](https://docs.releaseapi.com/recipes.html#edit-a-live-release) and change `accounting.shareRules` on the affected tracks. The shares of each rule must add up to `1000000`. A split-only edit is accepted automatically, without a reviewer.

**Track accounting**

```json
"accounting": { "shareRules": [ { "shares": [
  { "walletId": "9d2a7c55-0e3b-4a6f-8c21-7f4b1d9e3a02", "sharePerMio": 600000 },
  { "walletId": "47be01d3-5c8a-4e29-b6f0-3a1d8e7c2b94", "sharePerMio": 400000 }
] } ] }
```

**Watch out:** The new split applies from the 1st of the month after acceptance, never earlier and never on a date you pick. A split for March must be submitted in February. Check the result with `GET /v1/distribution/ledger/wallets?releaseId=$RELEASE_ID`.

**More:** [Change splits on live releases](https://docs.releaseapi.com/ledger.html#change-splits).

## Show an artist’s monthly earnings

**When you need this:** an earnings screen for an artist, or a monthly table of what each artist earned.

In ReleaseAPI an artist you pay is a **customer**, and their money is credited to their **wallets**. If you split revenue with share rules, answer “what did this artist earn” with the wallet amounts. The release and track totals include everyone else’s share. Without splits, the owner customer’s amount is the artist’s earnings.

- **One artist’s screen:** read the statement series of each of their wallets and add the `earningsWallet` values per month.
- **Every artist at once** (a label table, a payout run): use the monthly `STATEMENTS_PLAYS_PER_WALLET` report instead of one call per wallet, as shown in [Pay artists every month](https://docs.releaseapi.com/recipes.html#pay-artists-monthly).

`POST /v1/analytics/statements/series/wallets/{walletId}`

**cURL**

```bash
curl \
  "https://api-sandbox.releaseapi.com/v1/analytics/statements/series/wallets/$WALLET_ID" \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "from": "2026-01", "to": "2026-09" }'
```

**Response**

```json
{
  "points": [
    { "reportedAt": "2026-09", "quantity": 2400, "earningsWallet": 2040000000, "…": "…" }
  ],
  "meta": { "effectiveFrom": "2026-01", "effectiveTo": "2026-09", "…": "…" }
}
```

`earningsWallet` is in nano-euros: `2040000000` is €2.04.

**Watch out:** `reportedAt` is the month the money was booked in. The sales behind it happened in earlier months. Label the column “Statement of September”, not “September streams”. Sandbox has no statement months, so the series comes back empty there. Your RecordJet contact provides sample report files to develop against. Report files are Parquet. Read them with a Parquet library such as DuckDB or pyarrow, and expect 64-bit integers to arrive as `BigInt` in JavaScript.

**More:** [Show each artist their monthly earnings](https://docs.releaseapi.com/statements.html#earnings-per-artist) (the full method) · [A wallet’s royalties](https://docs.releaseapi.com/analytics.html#wallet-statements) · [Paying people](https://docs.releaseapi.com/royalties.html#paying-people).

## Pay artists every month

**When you need this:** your payout run, once a statement month is final.

1. **Wait for the month**

   Check once a day. As soon as any report appears for a month, the month is final and all its reports are available.

   `GET /v1/reporting/statements/reports`

   **cURL**

   ```bash
   curl -G \
     https://api-sandbox.releaseapi.com/v1/reporting/statements/reports \
     -d reportType=STATEMENTS_PLAYS_PER_WALLET \
     -d monthFrom=2026-09 \
     -d monthTo=2026-09 \
     -H "X-API-KEY: $RELEASEAPI_KEY"
   ```

   **Response**

   ```json
   {
     "items": [
       {
         "id": "8c2f5a1e-3d74-4b96-a0e8-5f1c7b9d2e43",
         "reportedAt": "2026-09",
         "reportType": "STATEMENTS_PLAYS_PER_WALLET",
         "metaData": {
           "recordCount": 1842,
           "eTag": "9b1e0c7d4a2f58e3b6c1d0a9f7e4b2c8",
           "sizeBytes": 61440
         }
       }
     ],
     "hasMore": false, "limit": 100, "offset": 0
   }
   ```

2. **Download and sum per wallet**

   `GET /v1/reporting/statements/reports/{reportId}/download/parquet` returns a signed link valid for 24 hours. The file has one row per wallet and service. Sum `total_revenue_wallet` per `wallet_id`.

3. **Book and pay**

   Add the amounts to the balances you keep, apply tax and pay from your own bank. Store the wallet id with each payout.

**Watch out:** Wallet rows also repeat the whole line’s quantity and client, tenant and customer amounts. Add up only `total_revenue_wallet`, or a three-way split pays the track three times. Amounts are integers in nano-euros.

**More:** [Paying people](https://docs.releaseapi.com/royalties.html#paying-people) · [Know when a month is final](https://docs.releaseapi.com/statements.html#know-when-final).

## Send a payee their statement as CSV

**When you need this:** a producer asks for a line-level statement of what they earned in September.

`POST /v1/reporting/exports`

```bash
curl -X POST https://api-sandbox.releaseapi.com/v1/reporting/exports \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "reportType": "STATEMENTS_SPLIT_EXTERNAL_SUMMARY",
    "filters": {
      "reportedAtFrom": "2026-09-01",
      "reportedAtTo": "2026-09-30",
      "walletIds": ["47be01d3-5c8a-4e29-b6f0-3a1d8e7c2b94"]
    },
    "externalId": "statement-47be01d3-2026-09"
  }'
```

Poll `GET /v1/reporting/exports/{exportId}` until `status` is `SUCCESS`, then `GET /v1/reporting/exports/{exportId}/download` for a signed link, valid for 60 minutes. The file downloads as `statement-47be01d3-2026-09.csv`, and the producer’s money is in the `revenue_wallet` column.

**Watch out:** Set the range from the 1st to the last day of the month, because statement rows are stored under the first day of their month. Exports need a `MEMBER` or `ADMIN` key. A `READER` key gets a 403. Tenant keys don’t receive export events, so you have to poll.

**More:** [A royalty statement for one payee](https://docs.releaseapi.com/reports.html#royalty-export).

## Mirror changes into your database

**When you need this:** your product should react to accepted releases, rejections, deliveries and splits without polling every object.

`POST /v1/journal/query`

```bash
curl https://api-sandbox.releaseapi.com/v1/journal/query \
  -H "X-API-KEY: $RELEASEAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "lastCreatedAt": "2026-10-05T07:29:36.847486Z",
    "lastId": "fc168f89-ba0a-4918-be5a-30e68213b388"
  }'
```

You get up to 100 newer events, oldest first. Handle each, then store the last event’s `createdAt` and `id` as your new cursor in the same transaction. An empty array means you’re caught up. Wait a while, or until the webhook ping arrives, before you query again.

**Watch out:** Upsert by id, so an event your own retry replays is harmless.

**More:** [Build a reliable consumer](https://docs.releaseapi.com/events.html#consumer).

## Accept a tenant’s release from a script

*(Client accounts)* **When you need this:** you run your own client account and approve your tenants’ releases yourself.

List what’s waiting with `GET /v1/distribution/drafts/releases?status=REVIEW&reviewResult=OPEN`, check each draft’s validation, then record the decision with the `reviewRequestId` you read:

`PUT /v1/distribution/drafts/releases/{draftId}/review`

```bash
curl -X PUT \
  https://api-sandbox.releaseapi.com/v1/distribution/drafts/releases/$RELEASE_ID/review \
  -H "X-API-KEY: $RELEASEAPI_CLIENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "result": "ACCEPTED",
    "reviewRequestId": "5d2c9e11-0b6f-4a43-b1a1-7a521d1e6f0f"
  }'
```

**Watch out:** There’s no bulk decision, so loop over the drafts one at a time. Always send `reviewRequestId`: if the draft was resubmitted after you read it, the call fails with `DRAFT_RELEASE_DIFFERENT_REQUEST_ID` instead of accepting a version nobody looked at.

**More:** [Accept from a script](https://docs.releaseapi.com/review.html#scripted-acceptance).

## Next steps

- [Troubleshooting](https://docs.releaseapi.com/troubleshooting.html): What to check and how to fix it when a recipe doesn’t go to plan.
- [Manage live releases](https://docs.releaseapi.com/catalog.html): How to read and edit the releases that are already in your catalog.
- [Events and webhooks](https://docs.releaseapi.com/events.html): How the journal works. Every recipe above relies on it.
