v1

latestOpenAPI 3.0.12026-07-243686491.1 MB
Price Groups

Creates a price group

Required scope: price-groups:write </br>Organization authorization: supported

post/api/v1/price-groups

Request body

teamIdinteger nullable

Team ID. When omitted the price group is created at operator scope and owned by the calling operator.

namestring required

Name of the price group

type'public' | 'member' | 'sponsored' | 'cost' | 'roaming' | 'reimbursement' | 'member_cost' | 'other' required

Example request

{
  "teamId": 1,
  "name": "Public Price Group",
  "masterPrice": {
    "description": "Starting Fee",
    "percentage": 10.2,
    "tariffId": 5,
    "tagId": 10,
    "applyAfterMinutes": 30,
    "from": "2023-03-16T15:37:23Z",
    "to": "2023-03-16T15:37:23Z",
    "gracePeriods": [
      {
        "startTime": "09:00:00",
        "endTime": "17:00:00"
      }
    ]
  },
  "fees": [
    {
      "description": "Starting Fee",
      "percentage": 10.2,
      "tariffId": 5,
      "tagId": 10,
      "applyAfterMinutes": 30,
      "from": "2023-03-16T15:37:23Z",
      "to": "2023-03-16T15:37:23Z",
      "gracePeriods": [
        {
          "startTime": "09:00:00",
          "endTime": "17:00:00"
        }
      ]
    }
  ]
}

Response

Price group successfully created