# Create/update individual tariff

The method allows you to create or update an individual tariff.

If a tariff already exists for this `userId` and `action`, then the rest of the specified data will overwrite this tariff

### Request:

The response contains an array of tariff objects:

| **Parameter** | **Type**       | **Description**                                                                                                                                                                                                          |
| ------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| userId        | String         | User ID                                                                                                                                                                                                                  |
| action        | String         | Tariff action                                                                                                                                                                                                            |
| amount        | String         | The commission percentage of the transaction amount (for example, 0.01 means a commission of 1% of the transaction amount)                                                                                               |
| minAmount     | String or null | <p>The minimum commission for charging (for example, when performing an operation, 1% of the transaction amount will be charged, but not less than <code>minAmount</code>)<br><br><code>null</code> - without limits</p> |
| maxAmount     | String or null | <p>The maximum commission for charging (for example, when performing an operation, 1% of the transaction amount will be charged, but no more than <code>maxAmount</code>)<br><br><code>null</code> - without limits</p>  |
| comment       | String or null | Comment/note for tariff                                                                                                                                                                                                  |

Parameter `action` can take the following values:

| **Tariff**            | **Description**                                           |
| --------------------- | --------------------------------------------------------- |
| INTERNAL\_TRANSFER    | Internal transfer                                         |
| ORDER\_DEPOSIT        | Accepting payments for order                              |
| WALLET\_DEPOSIT       | Deposit to wallet                                         |
| WALLET\_WITHDRAWAL    | Withdrawal from wallet                                    |
| PAYOUT\_DEPOSIT       | Deposit to payout balance                                 |
| PAYOUT\_WITHDRAWAL    | Withdrawal from payout balance                            |
| PERSONAL\_DEPOSIT     | Deposit to personal address                               |
| PERSONAL\_WITHDRAWAL  | Withdrawal from personal address                          |
| COLLECT\_WITHDRAWAL   | Withdrawal from collect address                           |
| RECURRENT\_DEPOSIT    | Deposit to recurrent address (by periodical subscription) |
| RECURRENT\_WITHDRAWAL | Withdrawal from recurrent address                         |
| BRIDGE\_INTERNAL      | Blockchain bridge (change network)                        |
| BRIDGE\_EXTERNAL      | Blockchain bridge via API                                 |
| EXCHANGE\_INTERNAL    | Exchange                                                  |
| EXCHANGE\_AUTO        | Exchange via API                                          |

{% openapi src="<https://615678623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa1TzfeK1Z0GLFNxiNpMW%2Fuploads%2Fgit-blob-8361e5ac3780661a20a51ec0d96901ce1db69b92%2Fopenapi.json?alt=media>" path="/partner/api/set-organization-tariff" method="post" %}
[openapi.json](https://615678623-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa1TzfeK1Z0GLFNxiNpMW%2Fuploads%2Fgit-blob-8361e5ac3780661a20a51ec0d96901ce1db69b92%2Fopenapi.json?alt=media)
{% endopenapi %}
