**Version: 202201**

# Create Order Risk

**POST** `/openapi/2022-01/orders/:order_id/risks`

Attaches a custom risk record to the specified order with a risk level (low/medium/high), supporting detail reasons, and optional custom properties. Typically called after a manual fraud review.

## Request

**Path Parameters**

- `order_id` string (required)

  Order's ID

**application/json**

**Body | Example**

**Body**

- `risk` object

  Order risk

  - `level` string

    Risk level, such as: `low`, `medium`, `high`
  - `values` string[]

    Risk details list
  - `properties` object

    Custom properties

    - `key` string

      value

```json
{
  "risk": {
    "level": "string",
    "values": [
      "string"
    ],
    "properties": {
      "key": "string"
    }
  }
}
```

## Responses

**200**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `risk` object

  - `id` string

    **Example:** `372997190408224746`
  - `order_id` string

    **Example:** `633130-00000015`
  - `level` string

    **Example:** `low`
  - `value` string[]
  - `properties` object

    - `key` string

      **Example:** `value`
  - `created_at` string

    **Example:** `2024-04-25T06:37:40Z`
  - `updated_at` string

    **Example:** `2024-04-25T06:37:40Z`

```json
{
  "risk": {
    "id": "372997190408224746",
    "order_id": "633130-00000015",
    "level": "low",
    "value": [
      "wrong order price"
    ],
    "properties": {
      "key": "value"
    },
    "created_at": "2024-04-25T06:37:40Z",
    "updated_at": "2024-04-25T06:37:40Z"
  }
}
```

```json
{
    "risk": {
        "id": "372997190408224746",
        "order_id": "633130-00000015",
        "level": "low",
        "value": [
            "wrong order price"
        ],
        "properties": {
            "key": "value"
        },
        "created_at": "2024-04-25T06:37:40Z",
        "updated_at": "2024-04-25T06:37:40Z"
    }
}
```
