---
url: /errors/allocation_not_allowed_for_discretionary_compartment.md
---
# `ALLOCATION_NOT_ALLOWED_FOR_DISCRETIONARY_COMPARTMENT`

`ALLOCATION_NOT_ALLOWED_FOR_DISCRETIONARY_COMPARTMENT`

## Description

A subscriber-supplied premium allocation cannot be submitted for a compartment
under discretionary management.

## HTTP Status

`422 Unprocessable Entity`

## `doc_url` Format

`<docs-base-url>/errors/allocation_not_allowed_for_discretionary_compartment`

## Typical Cause

The compartment allocation is derived from its mandate instead of subscriber
input.

## Example

```json
{
  "errors": [{
    "code": "ALLOCATION_NOT_ALLOWED_FOR_DISCRETIONARY_COMPARTMENT",
    "message": "Premium allocation is not allowed for discretionary compartment with id: '…'",
    "doc_url": "https://docs.example.com/errors/allocation_not_allowed_for_discretionary_compartment"
  }]
}
```

## How To Fix

Do not call the self-invested premium-allocation endpoint for a discretionary
compartment.
