Delete Recurring Pricing Configs by Weekday
Delete all recurring (weekday-based) pricing schedule entries for a specific weekday on the given cost rate. On success, the response confirms the deletion.
Request
Method:
DELETEPath:
/api/dynamic_pricing/recurring_pricing_config/{cost_rate_uuid}/weekday/{weekday}
Path parameters
Name |
Type |
Description |
|---|---|---|
cost_rate_uuid |
string |
UUID of the cost rate. |
weekday |
integer |
Weekday to delete schedules for. |
Example request
curl --location --request DELETE 'https://example.beenergised.cloud/api/dynamic_pricing/recurring_pricing_config/<COST_RATE_UUID>/weekday/1' \
--header 'x-api-token: <your_token>'
Response (200)
{
"status": "ok",
"message": "Recurring pricing config deleted successfully"
}
Error responses
404: Cost rate or recurring pricing config not found.
{
"status": "error",
"message": "Cost rate not found"
}
400: Validation error (e.g., the cost rate does not use recurring weekday pricing).
{
"status": "error",
"message": "<validation message>"
}
500: Generic server error.
{
"status": "error",
"message": "Internal Server Error"
}