ops
ops-pricing-categories

Create pricing categories

Changed on

Create new pricing categories

post/ops/pricing_categories

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/pricing_categories
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-pricing-category:edit

Request body

Example request

{
  "pricing_category": {
    "description": "abc123",
    "headrooms": [
      {
        "expected_residual_value_ratio": 1,
        "headroom_ratio": 1,
        "is_default": false,
        "tenure": 1
      }
    ],
    "identifier": "abc123",
    "services": [
      {
        "name": "abc123",
        "service_prices": [
          {
            "kind": "abc123",
            "price": 1,
            "tenure": 1
          }
        ]
      }
    ]
  }
}

Response

Created response.

Example response

{
  "pricing_category": {
    "description": "abc123",
    "headrooms": [
      {
        "expected_residual_value_ratio": 1,
        "headroom_ratio": 1,
        "is_default": false,
        "tenure": 1
      }
    ],
    "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
    "identifier": "abc123",
    "services": [
      {
        "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
        "name": "abc123",
        "service_prices": [
          {
            "id": "739b63c2-9e58-4964-b38d-4ebb424de242",
            "kind": "abc123",
            "price": 1,
            "tenure": 1
          }
        ]
      }
    ]
  }
}

Changes

    • info

      api operation id pricing-category.create removed and replaced with pricing-category#create

    • info

      api operation id pricing-category#create removed and replaced with pricing-category.create

    • info

      api tag ops-pricing-categories added