Delete Bulk Revenues
Description:
The /revenue/bulk/delete
endpoint allows deletion of multiple revenue records simultaneously.
Method:
POST
Request Payload:
Parameter | Type | Description |
---|---|---|
revenueIds | array | Array of revenue IDs to delete |
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/revenue/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ids": [
"<string>"
]
}'
{
"message": "Revenues deleted successfully",
"deletedCount": 5,
"totalAmount": 12500.75
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/revenue/bulk/delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"ids": [
"<string>"
]
}'
{
"message": "Revenues deleted successfully",
"deletedCount": 5,
"totalAmount": 12500.75
}