# Operations

### Table of contents:

* `POST /operations/validate`
* `POST /operations/activate`

### Introduction <a href="#user-content-introduction" id="user-content-introduction"></a>

This API provides operations management functionalities.

### Operations <a href="#user-content-operations" id="user-content-operations"></a>

#### `POST /operations/validate` <a href="#user-content-post-operationsvalidate" id="user-content-post-operationsvalidate"></a>

Validate operation for a certain identity.

**Request Parameters**

**Path parameters**

| Name       |   Type   | Description       | Constraints                                                                            | Required |
| ---------- | :------: | ----------------- | -------------------------------------------------------------------------------------- | :------: |
| action     | `String` | Operation action. | Enum: \[`create`,`confirm`,`cancel`]                                                   |  `true`  |
| code       | `String` | Operation code.   | Enum: \[`deposit:wire`,`deposit:stablecoin`,`withdrawal:wire`,`withdrawal:stablecoin`] |  `true`  |
| identityId | `String` | Identity id.      |                                                                                        |  `true`  |

**Response Options**

**204 OK**

Request example:

```
POST <hostname>/operations/validate
```

Request example:

```
{
  "action": "create",
  "code": "deposit:wire",
  "identityId": "b0287254-df04-4793-8fbe-afa844150c91"
}
```

***

#### `POST /operations/activate` <a href="#user-content-post-operationsactivate" id="user-content-post-operationsactivate"></a>

Activate operation for a certain identity.

**Request Parameters**

**Path parameters**

| Name       |   Type   | Description     | Constraints                                                                            | Required |
| ---------- | :------: | --------------- | -------------------------------------------------------------------------------------- | :------: |
| code       | `String` | Operation code. | Enum: \[`deposit:wire`,`deposit:stablecoin`,`withdrawal:wire`,`withdrawal:stablecoin`] |  `true`  |
| identityId | `String` | Identity id.    |                                                                                        |  `true`  |

**Response Options**

**204 OK**

Request example:

```
POST <hostname>/operations/validate
```

Request example:

```
{
  "code": "deposit:wire",
  "identityId": "b0287254-df04-4793-8fbe-afa844150c91"
}
```
