Get Recurring Pricing Configs

Retrieve all recurring (weekday-based) pricing schedules for a cost rate. The cost rate must have dynamic_pricing set to 1 (recurring per weekday). Each schedule contains a name, UUID, and one or more weekday/time-range configurations.

Request

  • Method: GET

  • Path: /api/dynamic_pricing/recurring_pricing_config/{cost_rate_uuid}

Path parameters

Name

Type

Description

cost_rate_uuid

string

UUID of the cost rate to retrieve recurring schedules for.

Example request

curl --location --request GET 'https://example.beenergised.cloud/api/dynamic_pricing/recurring_pricing_config/<COST_RATE_UUID>' \
--header 'x-api-token: <your_token>'

Response (200)

{
  "data": [
    {
      "uuid": "<SCHEDULE_UUID>",
      "name": "Weekday Evening",
      "configs": [
        {
          "weekday": 1,
          "start_time": "18:00",
          "end_time": "22:00"
        },
        {
          "weekday": 2,
          "start_time": "18:00",
          "end_time": "22:00"
        }
      ]
    }
  ]
}

Error responses

  • 404: Cost rate 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"
}