POST
/
split
/
match
Match Splits
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/split/match \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "territory": "NG",
  "dsp": "spotify",
  "date": "2023-06-01"
}'
{
  "count": 1,
  "splits": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Nigerian Split",
      "type": "Publishing",
      "startDate": "2023-01-01T00:00:00.000Z",
      "endDate": "2023-12-31T23:59:59.999Z",
      "conditions": [
        {
          "mode": "include",
          "territories": [
            "NG",
            "GH",
            "KE"
          ],
          "dsps": [
            "spotify",
            "apple"
          ]
        }
      ],
      "shares": [
        {
          "user": {
            "id": "550e8400-e29b-41d4-a716-446655440001",
            "firstName": "John",
            "lastName": "Doe",
            "email": "john@example.com"
          },
          "share": 60
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Success

The response is of type object.