Skip to main content
POST
Create split
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Create Revenue Split The Split Revenue endpoint allows you to split revenue generated from a specific asset and product among multiple users. This endpoint calculates the revenue shares based on the provided split percentages for each user. Authorization:
  • Required role: admin or higher
Method: POST Temporal Splits & Date Ranges:
  • Splits support temporal periods with startDate and endDate
  • startDate is INCLUSIVE - the split becomes active on this date
  • endDate is EXCLUSIVE - the split ends before this date (not included)
  • Example: startDate: "2025-01-01", endDate: "2025-04-01" covers Jan 1 through Mar 31
  • Adjacent splits: Next split can start on the previous split’s endDate (no gap)
  • Permanent splits: Omit both dates for indefinite coverage
Split Succession Pattern: To create a chain of temporal splits without gaps:
  1. Q1 Split: startDate: "2025-01-01", endDate: "2025-04-01" (covers Jan-Mar)
  2. Q2 Split: startDate: "2025-04-01", endDate: "2025-07-01" (starts Apr 1, covers Apr-Jun)
  3. Q3 Split: startDate: "2025-07-01", endDate: "2025-10-01" (starts Jul 1, covers Jul-Sep)
Validation:
  • Split shares must total exactly 100%
  • Overlapping temporal splits are prevented (same asset/product/type)
  • At least one of asset or product must be provided
Parameters:

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
split
object[]
required

An array of objects containing user shares

asset
string<uuid>

The UUID of the asset related to the revenue

product
string<uuid>

The UUID of the product related to the revenue

type
string | null

The type of revenue (e.g., Publishing, YouTube, Live)

startDate
string<date> | null

The start date of the split period (inclusive)

endDate
string<date> | null

The end date of the split period (exclusive)

name
string | null

The name or description of the revenue split

conditions
object[] | null

Conditions for split matching

contract
string | null
ContractId
string<uuid> | null
memo
string | null

Response

Split created successfully

id
string<uuid>
AssetId
string<uuid>
ProductId
string<uuid>
type
string
startDate
string<date> | null
endDate
string<date> | null
name
string
contract
string | null
ContractId
string | null
conditions
string | null
TenantId
integer