Create Unique Pricing Config

Create a new unique-date pricing config for a cost rate. The cost rate must have dynamic_pricing set to 2 (exact date and time). The request must include the cost rate UUID, a config name, and a start time. On success, the response returns the created config.

Request

  • Method: POST

  • Path: /api/dynamic_pricing/unique_pricing_config

Body parameters

Mandatory:

Name

Type

Description

cost_rate_uuid

string

UUID of the cost rate to create the config for.

name

string

Name of the unique-date pricing config.

start_time

string

Start date and time in Y-m-d H:i:s format, in the mandant’s timezone (e.g., 2026-01-01 00:00:00).

Example request

curl --location --request POST 'https://example.beenergised.cloud/api/dynamic_pricing/unique_pricing_config' \
--header 'x-api-token: <your_token>' \
--header 'Content-Type: application/json' \
--data '{
  "cost_rate_uuid": "<COST_RATE_UUID>",
  "name": "New Year Special",
  "start_time": "2026-01-01 00:00:00"
}'

Response (200)

{
  "status": "success",
  "data": {
    "uuid": "<CONFIG_UUID>",
    "name": "New Year Special",
    "start_time": "2026-01-01 00:00:00"
  }
}

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"
}