# List of error codes

The error code is in the body of the error response

```json
{
    "success":false,
    "error": { 
        "name":"...",
        "message":"...",
        "code": "..."
    },
    "requestId":"..."
}
```

| Code    | Description                                                                                    |
| ------- | ---------------------------------------------------------------------------------------------- |
| 1001    | The required `currency` parameter is not specified                                             |
| 1002    | The `currency` parameter has an incorrect value                                                |
| 1003    | The required `amount` parameter is not specified                                               |
| 1004    | The `amount` parameter has an incorrect value                                                  |
| 1005    | The `amount` parameter must be greater than 0                                                  |
| 1006    | The required parameter `errorWebhook` is not specified                                         |
| 1007    | The `errorWebhook` parameter has an incorrect value                                            |
| 1008    | The required `successWebhook` parameter is not specified                                       |
| 1009    | The `successWebhook` parameter has an incorrect value                                          |
| 1010    | The `availableTill` parameter has an incorrect value                                           |
| 1012    | The required `address` parameter is not specified                                              |
| 1013    | The `address` parameter has an incorrect value                                                 |
| 1015    | The required `amount` parameter is not specified                                               |
| 1016    | The `amount` parameter has an incorrect value                                                  |
| 1017    | The `amount` parameter must be greater than 0                                                  |
| 1018    | Failed to validate the recipient's data, check the correctness of the transmitted data         |
| 1019    | The specified coin or currency does not exist                                                  |
| 1020    | Insufficient funds for the operation                                                           |
| 1021    | Insufficient funds for the operation                                                           |
| 1023    | The required `currencyFrom` parameter is not specified                                         |
| 1024    | The `currencyFrom` parameter has an incorrect value                                            |
| 1025    | The required `currencyTo` parameter is not specified                                           |
| 1026    | The `currencyTo` parameter has an incorrect value                                              |
| 1027    | The required parameter `amountFrom` is not specified                                           |
| 1028    | The `amountFrom` parameter has an incorrect value                                              |
| 1029    | The `amountFrom` parameter must be greater than 0                                              |
| 1030    | The specified outgoing coin does not exist                                                     |
| 1031    | The specified incoming coin does not exist                                                     |
| 1032    | The required `orderID` parameter is not specified                                              |
| 1033    | The `orderID` parameter has an incorrect value                                                 |
| 1042    | The `returnUrl` parameter has an incorrect value                                               |
| 1043    | The `order` parameter has a value greater than allowed (max 255)                               |
| 1044    | The `description` parameter has a value greater than allowed (max 255)                         |
| 1045    | The required `networkId` parameter is not specified                                            |
| 1046    | The `networkId` parameter has an incorrect value                                               |
| 1047    | The required parameter `advancedBalanceId` is not specified                                    |
| 1048    | The `advancedBalanceId` parameter has an incorrect value                                       |
| 1049    | The required parameter `addressID` is not specified                                            |
| 1050    | The `addressID` parameter has an incorrect value                                               |
| 1051    | The required `feeToken` parameter is not specified                                             |
| 1052    | The `feeToken` parameter has an incorrect value                                                |
| 1053    | The balance of the advance balance is less than the requested commission                       |
| 1054    | The withdrawal amount is less than the minimum withdrawal amount                               |
| 1055    | The required `network` parameter is not specified                                              |
| 1056    | The `network` parameter has an incorrect value                                                 |
| 1057    | The source of the commission write-off does not have a balance to cover the commission         |
| 1058    | The commission token has expired                                                               |
| 1059    | The commission token was generated for another advance balance                                 |
| 1060    | The commission token has an incorrect value                                                    |
| 1061    | Error converting BCH address to Legacy format                                                  |
| 1062    | The `lifetime` parameter has an incorrect value                                                |
| 1063    | The required `lifetime` parameter is not specified                                             |
| 1064    | Payment address not found                                                                      |
| 1065    | The required parameter `registryId` is not specified                                           |
| 1066    | The `registryId` parameter has an incorrect value                                              |
| 1067    | The required `title` parameter is not specified                                                |
| 1068    | The `title` parameter has an incorrect value                                                   |
| 1069    | The specified network was not found                                                            |
| 1070    | The specified registry was not found                                                           |
| 1071    | Commission formation error                                                                     |
| 1072    | Error getting the registry                                                                     |
| 1073    | Error getting the registry                                                                     |
| 1076    | Invalid output data                                                                            |
| 1077    | Invalid .csv format                                                                            |
| 1078    | Invalid .csv format                                                                            |
| 1079    | Invalid .csv format                                                                            |
| 1080    | The specified advance balance belongs to another user                                          |
| 1081    | The specified order belongs to another user                                                    |
| 1082    | The specified advance balance belongs to another organization                                  |
| 1083    | The specified coin is not available for operations                                             |
| 1084    | The specified network is not available for operations                                          |
| 1085    | Coin withdrawal is not available at the moment                                                 |
| 1086    | The output in the network is not available at the moment                                       |
| 1087    | The specified network was not found                                                            |
| 1088    | Accepting coins online is currently unavailable                                                |
| 1089    | The `lifetime` parameter has an invalid value                                                  |
| 1090    | The specified network was not found                                                            |
| 1091    | The specified address does not belong to the specified advance balance                         |
| 1092    | .csv registry has a length longer than allowed                                                 |
| 1093    | The file size is larger than allowed                                                           |
| 1094    | The `insurancePercent` parameter has an incorrect value                                        |
| 1095    | The `slippagePercent` parameter has an incorrect value                                         |
| 1096    | The `currencies` parameter has an incorrect value                                              |
| 1097    | Attempt to repeat the operation                                                                |
| 1098    | The required `InvoiceID` parameter is not specified                                            |
| 1099    | The `InvoiceID` parameter has an incorrect value                                               |
| 1100    | Invoice not found                                                                              |
| 1101    | The required parameter `OrganizationId` is not specified                                       |
| 1102    | The `organizationId` parameter has an incorrect value                                          |
| 1103    | The specified address was not found                                                            |
| 1104    | The required `address` parameter is not specified                                              |
| 1105    | The `address` parameter has an incorrect value                                                 |
| 1106    | The required parameter `networks` is not specified                                             |
| 1107    | The `networks` parameter has an incorrect value                                                |
| 1108    | The required `networkFrom` parameter is not specified                                          |
| 1109    | The `networkFrom` parameter has an incorrect value                                             |
| 1110    | Outgoing network is not available for operations                                               |
| 1111    | The required `networkTo` parameter is not specified                                            |
| 1112    | The `networkTo` parameter has an incorrect value                                               |
| 1113    | The incoming network is not available for operations                                           |
| 1114    | The specified coin is not available for operations                                             |
| 1115    | The `clientID` parameter has an incorrect value                                                |
| 1116    | Required parameter `id` is not specified                                                       |
| 1117    | The `id` parameter has an incorrect value                                                      |
| 1118    | Required parameter `name` is not specified                                                     |
| 1119    | The `name` parameter has an incorrect value                                                    |
| 1120    | The `logoUrl` parameter has an incorrect value                                                 |
| 1121    | The required parameter `email` is not specified                                                |
| 1122    | The `email` parameter has an incorrect value                                                   |
| 1123    | The required `MerchantId` parameter is not specified                                           |
| 1124    | The `MerchantId` parameter has an incorrect value                                              |
| 1125    | The required `ClientID` parameter is not specified                                             |
| 1126    | The `ClientID` parameter has an incorrect value                                                |
| 1127    | The specified merchant was not found                                                           |
| 1128    | The `webhookUrl` parameter has an incorrect value                                              |
| 1130    | The required parameter `billingLinkId` is not specified                                        |
| 1131    | The `billingLinkId` parameter has an incorrect value                                           |
| 1132    | The required `title` parameter is not specified                                                |
| 1133    | The `title` parameter has an incorrect value                                                   |
| 1134    | The `description` parameter has an incorrect value                                             |
| 1135    | The required parameter `spendInterval` is not specified                                        |
| 1136    | The `spendInterval` parameter has an incorrect value                                           |
| 1137    | The required parameter `SubscriptionId` is not specified                                       |
| 1138    | The `SubscriptionId` parameter has an incorrect value                                          |
| 1139    | Parameter `initializer` is required                                                            |
| 1140    | Parameter `initializer` should be assigned to "merchant" or "client"                           |
| 1141    | Payment bundle not found                                                                       |
| 1142    | The payment bundle has an unsuitable status for the operation                                  |
| 1143    | The `spendInterval` parameter is less than the minimum allowed value                           |
| 1144    | The payment amount is higher than the maximum, to increase the payment amount, contact support |
| 1145    | Subscription not found                                                                         |
| 1146    | The subscription has already been canceled                                                     |
| 1147    | Something went wrong, contact support                                                          |
| 1148    | Exceeded the maximum monthly amount of transactions                                            |
| 1149    | The amount exceeds the amount allowed by the user                                              |
| 1150    | The user does not have enough funds to perform the operation                                   |
| 1151    | User not found                                                                                 |
| 1152    | The `renewAddress` parameter has an incorrect value                                            |
| 1154    | Parameter `offset` should be a number                                                          |
| 1155    | Parameter `limit` should be a number                                                           |
| 1156    | The user with the given id already exists                                                      |
| 1157    | Required `userId` parameter not passed                                                         |
| 1158    | The `userId` parameter has an incorrect value                                                  |
| 1159    | Required `action` parameter not passed                                                         |
| 1160    | The `action` parameter has an incorrect value                                                  |
| 1161    | Parameter `comment` should be a string                                                         |
| 1162    | Tariff not found                                                                               |
| 1163    | Parameter `alias` is required                                                                  |
| 1164    | Parameter `alias` should be a string                                                           |
| 1165    | Parameter `offset` is required                                                                 |
| 1166    | Parameter `limit` is required                                                                  |
| 1167    | Parameter `keyId` is required                                                                  |
| 1168    | Parameter `keyId` should be a string                                                           |
| 1169    | API-key not found                                                                              |
| 1170    | Parameter `advancedBalanceId` is required                                                      |
| 1172    | Advanced balance not found                                                                     |
| 1173    | The `status` parameter has an invalid value, must be an array of strings                       |
| 1174    | Organization not found                                                                         |
| 1175    | Parameter `advancedBalanceId` should be a string                                               |
| 1176    | Parameter `outputAddress` is required                                                          |
| 1177    | The `outputAddress` parameter has an incorrect value                                           |
| 1178    | Parameter `tx` is required                                                                     |
| 1179    | The `tx` parameter has an incorrect value                                                      |
| 1180    | Parameter `direction` is required                                                              |
| 1181    | The `direction` parameter has an incorrect value                                               |
| 1182    | User with this email exists                                                                    |
| 1183    | Parameter `alias` should be a string                                                           |
| 1184    | The `type` parameter has an incorrect value                                                    |
| 1185    | Parameter `addressTo` is required                                                              |
| 1186    | The `addressTo` parameter has an incorrect value                                               |
| 1187    | Collecting settings already exists                                                             |
| 1188    | Collecting settings not found                                                                  |
| 1189    | Collecting amount less than minimum                                                            |
| 1191    | You must specify the webhook ID                                                                |
| 1192    | Invalid webhook ID                                                                             |
| 1193    | Error receiving webhook data                                                                   |
| 1194    | Invalid field value `fields`. Must be an array of strings                                      |
| 1195    | Invalid value of the `checkRisks` field. Must be `boolean`                                     |
| 1196    | Invalid value for the `comment` field. The line must be no more than 255 characters            |
| 1197    | Orphan transaction not found                                                                   |
| 1198    | The operation is not available at the current stage of the orphan transaction                  |
| 1199    | Withdrawal has already been initialized by the orphan transaction                              |
| 2005    | The `lifetime` parameter has a value lower than acceptable for the network                     |
| 2006    | The `lifetime` parameter has a value higher than allowed for the network                       |
| 3001    | The exchange is not available at the moment                                                    |
| 3005    | The network is currently unavailable for operations, try to repeat the operation later         |
| 3007    | Input/Output operations are currently unavailable for this coin                                |
| 3008    | This type of address cannot be recreated                                                       |
| 3009    | Incorrect registry status for the operation                                                    |
| 3010    | You cannot use one address for this operation                                                  |
| 3011    | The amount is lower than the minimum for the operation                                         |
| 3012    | The amount is higher than the maximum for this operation                                       |
| 3013    | The address cannot be used at the moment, try to repeat the operation later                    |
| 3014    | The organization does not have access to this functionality                                    |
| 3015    | For this operation, you need to go through the KYB (Know Your Business) procedure              |
| 3016    | No access to this functionality                                                                |
| <= 1000 | Server error, contact support                                                                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onchainpay.io/error-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
