Skip to main content
DELETE
/
sources
/
admin
/
{id}
Delete Royalty Source (Admin)
curl --request DELETE \
  --url https://api.royalti.io/sources/admin/{id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "RoyaltySource deleted successfully"
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Required Permissions

  • sources:admin:delete

Business Rules

  • Cannot delete a source that is associated with any tenants
  • Must first remove all tenant associations before deleting

Validation

  • Checks for existing tenant associations
  • Returns 400 error if associations exist

Code Examples

const response = await fetch('https://api.royalti.io/sources/admin/example-id', {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Royalty source ID

Example:

"src-1"

Response

Royalty source deleted successfully

message
string
Example:

"RoyaltySource deleted successfully"