Delete Unique Pricing Config

Delete a unique-date pricing config by UUID. On success, the response confirms the deletion.

Request

  • Method: DELETE

  • Path: /api/dynamic_pricing/unique_pricing_config/{uuid}

Path parameters

Name

Type

Description

uuid

string

UUID of the unique-date pricing config to delete.

Example request

curl --location --request DELETE 'https://example.beenergised.cloud/api/dynamic_pricing/unique_pricing_config/<CONFIG_UUID>' \
--header 'x-api-token: <your_token>'

Response (200)

{
  "status": "ok",
  "message": "Unique pricing config deleted successfully"
}

Error responses

  • 404: Cost rate or unique pricing config not found.

{
  "status": "error",
  "message": "Cost rate not found"
}
  • 400: Validation error (e.g., the cost rate does not use unique-date pricing).

{
  "status": "error",
  "message": "<validation message>"
}
  • 500: Generic server error.

{
  "status": "error",
  "message": "Internal Server Error"
}