# Error codes

When a Ripple Custody (Wallet) API request fails, the response has an HTTP error status and a JSON body that describes the error. This page explains the body, how its `code` maps to the HTTP status, how to read the `PAL` reason codes, and how to fix common errors. For general API conventions, including authentication and retries, see [API conventions](/products/wallet/api-and-developer-experience/api-conventions#errors).

## Error response format

| Field | Description |
|  --- | --- |
| `code` | The gRPC status code for the error, as a number. The HTTP status of the response is derived from it. See [Status codes](#status-codes). |
| `message` | A human-readable description of the error. Don't parse it; it can change. |
| `details` | An array of objects, each identified by `@type`. The API returns at most two kinds of entry. A `401` response has no `details`. |


The `details` array can contain:

- **`ErrorInfo`** (`type.googleapis.com/google.rpc.ErrorInfo`): `reason` is a `PAL` reason code that identifies the specific problem. `domain` is the API host that produced the error, such as `api.sandbox.palisade.co`. `metadata` is an object that is usually empty. Request validation errors include an `ErrorInfo` entry with reason `PAL000.020` and the generic message `invalid request`, which doesn't name the field. Some errors have no `ErrorInfo` entry: a body or query parameter that the API can't parse (the `message` is the parser error), and a method that the path doesn't support.
- **`RequestInfo`** (`type.googleapis.com/google.rpc.RequestInfo`): `requestId` identifies the request. Most error responses include it. A `401` (whose body is only `{"code": 16, "message": "Unauthorized"}`), a rate-limited `429`, and some credential-permission errors don't, so don't assume `requestId` is present.


### Example

This response comes from a request whose credential doesn't have permission for the operation:

```json
{
    "code": 7,
    "message": "unauthorized request",
    "details": [
        {
            "@type": "type.googleapis.com/google.rpc.ErrorInfo",
            "reason": "PAL000.002",
            "domain": "api.sandbox.palisade.co",
            "metadata": {}
        },
        {
            "@type": "type.googleapis.com/google.rpc.RequestInfo",
            "requestId": "c817569e-b765-4e6e-a3af-bdb1d07e7517",
            "servingData": ""
        }
    ]
}
```

## Status codes

The `code` field uses gRPC status codes. Ripple Custody (Wallet) maps them to HTTP statuses as follows:

| `code` | gRPC status | HTTP status | Typical cause |
|  --- | --- | --- | --- |
| `3` | `INVALID_ARGUMENT` | `400` | A field is missing, malformed, or out of range. Fix the request before you retry. |
| `9` | `FAILED_PRECONDITION` | `400` | The resource isn't in a state that allows the action, for example deleting a policy rule that's still pending approval. |
| `16` | `UNAUTHENTICATED` | `401` | The access token is missing, invalid, or expired. Request a new token and retry. |
| `7` | `PERMISSION_DENIED` | `403` | The credential's type or permissions don't cover the operation or the resource. |
| `5` | `NOT_FOUND` | `404` | The resource doesn't exist, or your credential can't see it. |
| `6` | `ALREADY_EXISTS` | `409` | An equivalent resource already exists, for example a webhook with the same name or a second limit of the same type on a wallet. |
| `12` | `UNIMPLEMENTED` | `501` | The path doesn't support the HTTP method, for example `PUT` or `PATCH` on a webhook. The `message` is `Method Not Allowed`. |
| `13` | `INTERNAL` | `500` | An unexpected server error. Contact support with the `requestId` if it persists. |
| `14` | `UNAVAILABLE` | `503` | The service is temporarily unavailable. |
| `4` | `DEADLINE_EXCEEDED` | `504` | The request timed out inside the platform. Retry with backoff. |
| `8` | `RESOURCE_EXHAUSTED` | `429` | You reached a limit. A rate-limited request returns the string `code` `rate_limit_exceeded` instead of `8`, and no `details`: see [Rate limits](/products/wallet/api-and-developer-experience/api-conventions#rate-limits). Some operations return `429` with a reason code, such as `PAL009.500` when too many wallets are provisioning. Wait, and then retry with backoff. |


Retry a `429`, `503`, or `504` response with exponential backoff, and wait for the `Retry-After` time on a `429`. A `400`, `403`, `404`, `409`, or `501` response fails again unless you change the request. For a `401`, request a new token first.

## Reason codes

A reason code has the form `PAL<service>.<problem>`. The three-digit service number identifies the area of the platform that rejected the request, and the problem number identifies the specific error within it. Reason codes are stable, so use them, not `message`, when your code handles specific errors.

| Service | Area |
|  --- | --- |
| `PAL000` | Common errors shared by all services, such as authentication and permissions |
| `PAL001` | Devices |
| `PAL002` | MPC quorums and wallet keys |
| `PAL003` | Approvals |
| `PAL004` | API credentials |
| `PAL005` | HSM keystore |
| `PAL006` | Policies |
| `PAL007` | Connections |
| `PAL008` | Balances |
| `PAL009` | Vaults and wallets |
| `PAL010` | Transactions |
| `PAL011` | Organizations and users |
| `PAL012` | Identity |
| `PAL013` | Address book |
| `PAL014` | Compliance |
| `PAL015` | Webhooks |
| `PAL016` | Backups |
| `PAL017` | Workflows, including asset sweeping |
| `PAL018` | Audit logging |
| `PAL019` | Blockchain connections |
| `PAL020` | Registry and blockchain connector errors |


### Common errors

These reason codes can come from any endpoint:

| Reason | Message | What to do |
|  --- | --- | --- |
| `PAL000.001` | unauthenticated request | Send a valid access token in the `Authorization` header. A missing, malformed, or expired token returns `401` with no reason code. |
| `PAL000.002` | unauthorized request | Check that the credential's type and permissions cover the operation and the vault or wallet you're accessing. See [Manage API credentials](/products/wallet/organization-and-access/api-credentials/manage-api-credentials). |
| `PAL000.003` | invalid permission | The credential's permissions are malformed. Recreate the credential. |
| `PAL000.008` | unsupported blockchain | Use a blockchain that Ripple Custody (Wallet) supports. See [Supported blockchains and tokens](/products/wallet/vaults-and-wallets/supported-blockchains-and-tokens). |
| `PAL000.009` | unsupported currency code | The `currencyCode` isn't supported. Use `USD`. This reason returns HTTP `500`. |
| `PAL000.010` | invalid asset | Check the asset symbol, issuer, or contract. |
| `PAL000.012` | invalid address | Check that the address is valid for the wallet's blockchain. |
| `PAL000.013` | invalid asset ID | Check the asset ID format. |
| `PAL000.014` | invalid signature | Check the signed payload and signature. |
| `PAL000.015` | invalid token | Request a new access token. |
| `PAL000.020` | invalid request | The request failed validation: a required field is missing or empty, or a value is out of range or not in an allowed format. In a query parameter, an enum name the API doesn't recognize returns `400` with a parser message and no reason code. In a JSON body, the API discards it and treats the field as omitted. The token exchange also returns this reason when the body is missing or `clientId` or `clientSecret` is malformed. Check the request against the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |


### Reason codes by service

These tables list reason codes that API requests can return, grouped by the area that raises them. **HTTP status** comes from the gRPC status in the [Status codes](#status-codes) table. **Retry** is `Yes` when you can send the same request again with exponential backoff, and `No` when the request fails again unless you change it. Codes for areas that the public API doesn't expose, such as devices, users, and identity, aren't listed. When a code appears in a transaction's `problems` array instead of an error response, the HTTP status doesn't apply.

#### Vaults and wallets (`PAL009`)

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL009.001` | vault already exists | `409` | No | A vault with the same unique values already exists in your organization. Look up your vaults before you create another. A repeated `externalId` doesn't return this error: it returns the original vault. |
| `PAL009.003` | missing vault ID | `400` | No | The request has no vault ID. Include it. |
| `PAL009.103` | wallet already exists | `409` | No | A wallet with the same unique values already exists. Look up your wallets before you create another. A repeated `externalId` doesn't return this error. |
| `PAL009.109` | invalid wallet keystore | `400` | No | `keystore` isn't a supported value. Check the allowed values in the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |
| `PAL009.301` | tag already exists | `409` | No | The vault or wallet already has this tag. |
| `PAL009.302` | count not found | `404` | No | The tag count for the vault or wallet wasn't found. Check the vault and wallet IDs. |
| `PAL009.303` | tag not found | `404` | No | The vault or wallet doesn't have this tag. Check the tag. |
| `PAL009.400` | vault storage unavailable | `503` | Yes | The service that stores vaults and wallets is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL009.401` | feature flags unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL009.402` | wallet status updates unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL009.403` | blockchain provider unavailable | `503` | Yes | The blockchain provider for the wallet is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL009.404` | connector gateway unavailable | `503` | Yes | The blockchain connector is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL009.500` | too many MPC wallets are currently provisioning on this quorum; retry later | `429` | Yes | The quorum is already provisioning the maximum number of MPC wallets. Wait, and then create the wallet again. |
| `PAL009.501` | too many HSM wallets are currently provisioning for this organization; retry later | `429` | Yes | Your organization is already provisioning the maximum number of HSM wallets. Wait, and then create the wallet again. |
| `PAL009.502` | too many MPC wallets recently failed provisioning on this quorum; retry later | `429` | Yes | Too many MPC wallets on the quorum recently failed provisioning. Wait, and then create the wallet again. If it keeps happening, contact support with the `requestId`. |


#### Transactions (`PAL010`)

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL010.002` | invalid wallet | `400` | No | You can't use the wallet for the request: it isn't in the vault in the path, it isn't provisioned, or the operation doesn't support it (for example, a clawback on a wallet that isn't on the XRP Ledger). Check the wallet and vault IDs, and wait until the wallet is `PROVISIONED`. |
| `PAL010.003` | transaction already exists | `409` | No | A transaction with the same unique values already exists. Get the existing transaction before you create another. A repeated `externalId` on the same wallet returns the original transaction instead. |
| `PAL010.005` | invalid action | `400` | No | The action in the request isn't valid. Check the request against the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |
| `PAL010.007` | sign plaintext is not supported | `501` | No | The sign-plaintext operation isn't supported for this request. Check the operation in the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |
| `PAL010.013` | address lookup unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL010.014` | connector gateway unavailable | `503` | Yes | The blockchain connector is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL010.015` | wallet not funded | `400` | No | The XRP Ledger wallet isn't activated because it has no funds. Send funds to the wallet, and then send the transaction again. |
| `PAL010.016` | invalid sweep fee wallet | `400` | No | The sweep fee wallet isn't valid: for example, `vaultId` and `walletId` aren't both set or aren't UUIDs, or the swept asset isn't the blockchain's native asset. Fix the fee wallet. |
| `PAL010.017` | feature flags unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |


#### Balances (`PAL008`)

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL008.002` | key or keys not found | `404` | No | One or more of the wallets weren't found. Check the wallet IDs. |
| `PAL008.003` | rate not found | `404` | No | The API found no rate for the asset or currency. Try again later, or check the asset. |
| `PAL008.005` | no message queue consumer | `404` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL008.006` | key already exists | `409` | No | A balance record for the wallet already exists. |
| `PAL008.007` | unable to parse rate | `500` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL008.008` | unable to fetch balance | `500` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL008.009` | blockchain is not supported | `500` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL008.010` | missing asset ID | `500` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL008.011` | wallet not found | `404` | No | No wallet has this ID. Check the wallet ID. |
| `PAL008.013` | wallet not found in this vault | `404` | No | The wallet isn't in the vault in the path. Check the wallet's `vaultId`. |
| `PAL008.018` | balance sync unavailable | `503` | Yes | The balance sync is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |


#### Policies (`PAL006`)

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL006.004` | invalid limit type | `500` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL006.009` | Wallet '*name*' is disabled. Enable the wallet in settings to allow transactions. | `400` | No | The wallet isn't enabled. Enable the wallet in its settings, and then send the request again. |
| `PAL006.010` | Raw signing is disabled for wallet '*name*'. Enable raw signing in wallet settings. | `400` | No | Raw signing isn't enabled for the wallet. Enable it in the wallet's settings, and then send the request again. |
| `PAL006.012` | invalid address | `400` | No | The address isn't valid. Check the address. |
| `PAL006.013` | no approvers found | `400` | No | The action has no approvers configured. Add approvers, and then send the request again. |
| `PAL006.014` | HSM signing is not enabled for your organization. Wallet '*name*' uses HSM. Contact your administrator. | `400` | No | HSM signing isn't enabled for your organization, and the wallet uses an HSM keystore. Ask your administrator. |
| `PAL006.015` | compliance policy not found | `404` | No | The wallet has no compliance policy. |
| `PAL006.017` | failed to publish message | `500` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL006.018` | database error | `500` | No | Unexpected server error. Contact support with the `requestId`. |
| `PAL006.019` | enabled integrations not found | `404` | No | The API found no enabled compliance integrations. |


#### Address book (`PAL013`)

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL013.001` | counterparty already exists | `409` | No | A counterparty with the same unique values already exists. Look up your counterparties before you create another. |
| `PAL013.003` | counterparty type mismatch | `400` | No | The counterparty's type doesn't match the request. Check the counterparty type. |
| `PAL013.004` | invalid counterparty type | `400` | No | The counterparty type isn't valid. Check the allowed values in the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |
| `PAL013.013` | address type mismatch | `400` | No | The address type doesn't match the request. Check the address type. |
| `PAL013.014` | invalid address type | `400` | No | The address type isn't valid. Check the allowed values in the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |
| `PAL013.023` | counterparty storage unavailable | `503` | Yes, except when deleting a counterparty | The service that stores counterparties is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. Deleting a counterparty that still has addresses also returns this code, and retrying doesn't help: delete its addresses first. |
| `PAL013.026` | walletstore unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |


#### Webhooks (`PAL015`)

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL015.012` | invalid subscription domain | `400` | No | The subscription `domain` isn't recognized. Use a valid domain, such as `TRANSACTION`. |
| `PAL015.013` | invalid subscription scope | `400` | No | The subscription scope isn't valid. Check the scope in the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |
| `PAL015.020` | message not found | `404` | No | The webhook message wasn't found. Check the message ID. |
| `PAL015.400` | webhook storage unavailable | `503` | Yes | The service that stores webhooks is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL015.401` | subscription service unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |


#### Sweeps (`PAL017`)

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL017.002` | sweep configuration not found | `404` | No | No sweep configuration has this ID. The trigger endpoint doesn't return this code: it returns `PAL017.006` for an ID that doesn't match a configuration. |
| `PAL017.003` | wallet not found | `404` | No | A wallet in the sweep configuration wasn't found. Check the wallets in the configuration. |
| `PAL017.004` | wallet disabled | `400` | No | A wallet in the sweep configuration isn't enabled. Enable the wallet, and then trigger the sweep again. |
| `PAL017.005` | wallet blockchain mismatch | `400` | No | A wallet in the sweep configuration is on a different blockchain than the configuration. Check the wallets in the configuration. |
| `PAL017.008` | workflow storage unavailable | `503` | Yes | The service that stores sweep configurations is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL017.009` | vault service unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL017.010` | balance service unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL017.011` | transaction service unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL017.013` | feature flags unavailable | `503` | Yes | A service that the request depends on is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |


#### API credentials (`PAL004`)

These codes come from the token exchange at `POST /v2/credentials/oauth/token`.

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL004.005` | credential disabled | `400` | No | The credential isn't enabled, so the token exchange fails. Use a different credential. |
| `PAL004.011` | credential storage unavailable | `503` | Yes | The service that stores credentials is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |
| `PAL004.012` | authentication provider unavailable | `503` | Depends | The authentication provider rejected the exchange or is temporarily unavailable. Check the `clientSecret` first: a wrong secret also returns this code, and retrying it doesn't help. Otherwise, retry with backoff, and if it persists, contact support with the `requestId`. |


#### Blockchain connectors (`PAL020`)

Requests that reach a blockchain connector, such as fee estimates, balance syncs, and transactions, can return these `PAL020` codes. The message for an error from transaction construction can end with detail from the blockchain node.

| Reason | Message | HTTP status | Retry | Meaning and what to do |
|  --- | --- | --- | --- | --- |
| `PAL020.000` | connector data service error | `500` | No | Unexpected server error. For errors from transaction construction, the message is `construction service error`. Contact support with the `requestId`. |
| `PAL020.001` | invalid connector data request | `400` | No | The blockchain connector rejected a value in the request, such as an address. Check the request. |
| `PAL020.002` | connector data resource not found | `404` | No | The blockchain connector couldn't find the resource, such as an account. Check the request. |
| `PAL020.003` | connector data quota exceeded | `429` | Depends | The blockchain connector exceeded its request quota: wait, and then retry. On EVM chains, transaction construction also returns this reason when the fee budget is below the current market rate or the wallet's balance doesn't cover the transaction, with a message that names the cause instead of `connector data quota exceeded`. Raise the fee budget or fund the wallet, and then send a new transaction. |
| `PAL020.004` | connector data request rejected | `400` | No | The blockchain rejected the request, for example when an Ethereum `originAddress` has no funds for a fee estimate. Fix the cause, and then send the request again. |
| `PAL020.005` | connector data operation unsupported | `501` | No | The blockchain connector doesn't support the operation. |
| `PAL020.006` | connector data service unavailable | `503` | Yes | The blockchain connector is temporarily unavailable. Retry with backoff. If it persists, contact support with the `requestId`. |


### Errors documented with their features

Pages that document a feature also list the reason codes it returns:

- Policies (`PAL006`): [Policy reference](/products/wallet/governance-and-controls/policies/policy-reference#error-codes) and [Policy rules](/products/wallet/governance-and-controls/policies/policy-reference#error-codes)
- Failed transactions: transactions carry a `problems` array with reason codes and retryability. See [Transaction problems](/products/wallet/api-and-developer-experience/api-conventions#transaction-problems).


## Troubleshoot common errors

These tables list errors that the API returns in practice, grouped by area, with their likely cause and fix. Some requests succeed when you might expect an error, so the tables also include a few `200` responses that usually mean something went wrong. For more behaviors to plan for, see [Behaviors to know](/products/wallet/api-and-developer-experience/api-conventions#behaviors-to-know).

### Authentication

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `400` `invalid request` from `POST /v2/credentials/oauth/token` | `PAL000.020` | The body is missing, or `clientId` or `clientSecret` is malformed. The token exchange doesn't return `401`. | Check that you send the credential's `clientId` and `clientSecret` in a JSON body. See [Get and use an access token](/products/wallet/api-and-developer-experience/api-conventions#get-and-use-an-access-token). |
| `404` `credential not found` from `POST /v2/credentials/oauth/token` | `PAL004.002` | The `clientId` is unknown. | Check the credential's `clientId`. See [Get and use an access token](/products/wallet/api-and-developer-experience/api-conventions#get-and-use-an-access-token). |
| `503` `authentication provider unavailable` from `POST /v2/credentials/oauth/token` | `PAL004.012` | The `clientSecret` is wrong, or the authentication provider is temporarily unavailable. | Check the credential's `clientSecret` first. If it's correct, retry with backoff. See [Get and use an access token](/products/wallet/api-and-developer-experience/api-conventions#get-and-use-an-access-token). |
| `401` `Unauthorized`, with no `details` | None | The `Authorization` header is missing, or the token is malformed or expired. | Request a new token and send it as `Authorization: Bearer <accessToken>`. |
| `403` `unauthorized request` | `PAL000.002` | The credential's type doesn't cover the endpoint, for example a `MONITORING` credential calling `GET /v2/vaults`. | Use a credential of the type that covers the endpoint. See [Credential types](/products/wallet/api-and-developer-experience/api-conventions#credential-types). |


### Permissions

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `403` on the policy rules endpoints (`/policy-rules`), while the wallet limit endpoints work | `PAL000.002` | The `CONTROLS` credential doesn't have the `policy:*` permissions. The wallet limit endpoints use the separate `keylimit:*` permissions. | Grant the credential the policy permissions it needs. See [Manage policy rules via the API](/products/wallet/governance-and-controls/policies/manage-policies-api#prerequisites). |
| `403` on freeze, unfreeze, or a sweep trigger | `PAL000.002` | The request doesn't use a `TRANSACTIONS` credential. | Use a `TRANSACTIONS` credential. |
| `403` on an operation that the credential type covers | `PAL000.002` | The credential's permissions don't include the operation, or the vault or wallet you're accessing. | Check the credential's permissions in the console. See [Manage API credentials](/products/wallet/organization-and-access/api-credentials/manage-api-credentials). |


### Validation

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `400` `invalid request` | `PAL000.020` | A required field is missing or empty, a value is out of range or in the wrong format, or an ID in the path isn't a UUID. The message doesn't name the field. | Check the request against the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |
| `400` `invalid request` on a list request | `PAL000.020` | The page size is above the maximum (1,000, or 100 for the top-level `pageSize` on some operations), `pagination.orderBy` isn't a snake_case sortable field (for example `createdAt` instead of `created_at`), or a filter value isn't recognized. | Fix the paging, sorting, or filter parameter. See [Pagination](/products/wallet/api-and-developer-experience/api-conventions#pagination) and [Filtering, search, and sorting](/products/wallet/api-and-developer-experience/api-conventions#filtering-search-and-sorting). |
| `400` with a parser message, such as `invalid path: "domain" is not a message` or `invalid value for string field search`, and no `ErrorInfo` | None | A filter that takes a bare value has an operator, a filter that needs an operator has none, or a body field has the wrong type, for example an object where the API expects an array or a string. | Check the filter form and the field types. An operator that an operator filter doesn't support is ignored: the request succeeds without that filter. See [Filters that take a bare value](/products/wallet/api-and-developer-experience/api-conventions#filters-that-take-a-bare-value). |
| `501` `Method Not Allowed` | None | The path doesn't support the HTTP method, for example `DELETE` on a vault, or `PUT` or `PATCH` on a webhook. | Use a supported method. To change a webhook, delete it and create a new one. |


### Vaults and wallets

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `404` `vault not found` | `PAL009.002` | No vault in your organization has this ID. | Check the vault ID. |
| `404` on a wallet | `PAL009.101` | No wallet has this ID, or the wallet isn't in the vault in the path. | Check the wallet ID and its `vaultId`, or get the wallet with `GET /v2/wallets/{id}`. |
| `400` `unsupported blockchain` when you create a wallet | `PAL009.110` | `blockchain` is missing or isn't a supported value. | Set `blockchain`, for example to `XRP_LEDGER`. See [Create a wallet](/products/wallet/vaults-and-wallets/wallets/manage-wallets-api#create-a-wallet-via-the-api). |
| `400` `MPC wallet creation requires quorum_id` | `PAL009.108` | An MPC wallet create request has no `quorumId`. | Pass the ID of a confirmed quorum. |
| `400` `wallet is not provisioned` | `PAL009.106` | You requested the sequence of a wallet that isn't `PROVISIONED`. | Wait until the wallet is `PROVISIONED`. |
| `400` `invalid request` on `PUT .../settings` | `PAL000.020` | The request has no `settings` object. | Send all four settings. Any setting you omit, including every setting in an empty `settings` object, is set to `false`. See [Update wallet settings](/products/wallet/vaults-and-wallets/wallets/manage-wallets-api#update-wallet-settings-via-the-api). |
| `200` with an empty list for a vault's wallets, or for a vault's or wallet's balances | None | The vault or wallet ID doesn't exist. These list and balance requests don't return `404`. | Get the vault or wallet by ID to check that it exists. |


### Transactions

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `404` `transaction not found` | `PAL010.004` | The transaction ID doesn't exist or belongs to a different wallet, or a transfer reuses an `externalId` already used on a different wallet. | Check the transaction ID and the wallet in the path. Use a new `externalId` for each transfer. See [External IDs](/products/wallet/api-and-developer-experience/api-conventions#external-ids). |
| `400` `blockchain override is only allowed between EVM-compatible chains` | `PAL010.009` | A transfer sets `blockchain` on a non-EVM wallet, or to a non-EVM chain. | Remove `blockchain`, or set it to an EVM chain for an EVM wallet. See [EVM cross-chain transfers](/products/wallet/transactions/send-assets#evm-cross-chain-transfers-via-the-api). |
| `400` `connector data request rejected` on a fee estimate | `PAL020.004` | On Ethereum, the `originAddress` has no funds. | Fund the origin wallet, and then estimate again. |
| `400` `invalid encoded transaction` on a raw transaction | `PAL010.011` | The EVM `encodedTransaction` can't be decoded. | Check the encoding. See [Transaction encoding formats](/products/wallet/transactions/raw-signing/encoding-formats). |
| `400` `xrp ledger orchestrator rejected the transaction` on a raw transaction | `PAL010.022` | Ripple Custody (Wallet) can't decode the XRP Ledger `encodedTransaction`, or it uses an unsupported transaction type (`Batch` or `DelegateSet`) or an unsupported amount type, such as a multi-purpose token (MPT) amount. | Don't retry. Check the encoding: see [Transaction encoding formats](/products/wallet/transactions/raw-signing/encoding-formats#xrp-ledger). Ripple Custody (Wallet) doesn't sign `Batch` or `DelegateSet`: see [Unsupported XRP Ledger transaction types](/products/wallet/transactions/raw-signing#unsupported-xrp-ledger-transaction-types). |
| `400` `cannot freeze/unfreeze transaction` | `PAL010.008` | The transaction is in a state that can't be frozen or unfrozen, such as a rejected outgoing transaction. | Check the transaction's status and `freezeInfo`. See [Freeze and unfreeze transactions via the API](/products/wallet/compliance/transaction-freeze-api). |
| `400` `invalid request` on freeze or unfreeze | `PAL000.020` | `reason` is missing, or `mutationId` isn't a UUID. | Pass a `reason`, and pass a UUID as `mutationId`. |
| `200`, then status `REJECTED` with a `problems` entry from `policy-service` | `PAL006.005` | Your policies don't allow the transaction, for example because the wallet's limits for the asset aren't active or the asset has no limit. | Check the wallet's policy rules and limits. See [Track the transaction lifecycle](/products/wallet/transactions/view-and-track-transactions#track-the-transaction-lifecycle-via-the-api). |
| On the XRP Ledger, status `FAILED` with an empty `problems` array | None | The blockchain rejected the transaction. `reasons` carries the result, such as `Blockchain status: tecUNFUNDED_PAYMENT`. | Read `reasons`, fix the cause, and send a new transaction. |
| On EVM chains, status `REJECTED` with the problem `transaction rejected on-chain` | `TRANSACTION_REJECTED_ON_CHAIN` | The blockchain rejected the transaction. | Check the `problems` entry, fix the cause, and send a new transaction. |


### Policies

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `409` `limit policy already exists` | `PAL006.023` | The wallet already has a limit with the same limit type, asset, and matchers. A different amount or duration doesn't make it a new limit. | Delete the existing limit, or change the limit type or matchers. See [Policy reference](/products/wallet/governance-and-controls/policies/policy-reference#error-codes). |
| `400` on deleting a wallet limit | `PAL006.016` | The limit is still pending approval, or no limit has this ID. | Wait for the approval to complete, or check the limit ID. |
| `400` `invalid matcher value` | `PAL006.028` | A matcher value isn't valid, for example a `COUNTERPARTY_ID` that isn't a UUID. | Check the matcher values. See [Matchers](/products/wallet/governance-and-controls/policies/policy-reference#matchers). |
| `400` `invalid request` on a wallet limit | `PAL000.020` | The `duration` is one year or longer, an `ALL_COUNTERPARTIES` matcher has a value, or the matcher uses the deprecated `COUNTERPARTY` type. | Fix the limit. See [Policy reference](/products/wallet/governance-and-controls/policies/policy-reference). |
| `403` on the policy rules endpoints | `PAL000.002` | The credential doesn't have the `policy:*` permissions. | See [Permissions](#permissions). |


### Address book

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `400` `address is not compatible with one or more selected blockchains` | `PAL013.015` | The address isn't valid on every blockchain in `blockchains`. | Check the address and the `blockchains` list. See [Add an address to a counterparty](/products/wallet/governance-and-controls/address-book/manage-address-book-api#add-an-address-to-a-counterparty-via-the-api). |
| `404` on a counterparty | `PAL013.002` | No counterparty has this ID. | Check the counterparty ID. |
| `404` on an address | `PAL013.012` | No address has this ID under the counterparty in the path. | Check the address ID and its counterparty. |
| `400` `not allowed` on deleting an address | `PAL013.021` | The address doesn't belong to the counterparty in the path. | Use the address's own counterparty ID. See [Get or delete an address](/products/wallet/governance-and-controls/address-book/manage-address-book-api#get-or-delete-an-address-via-the-api). |
| `400` `invalid request` on a counterparty or address | `PAL000.020` | A required field is missing or invalid, for example a counterparty without `name`, or an address with an empty `blockchains` list. | Check the request against the [API reference](/products/wallet/api-docs/palisade-api/palisade-api). |


### Webhooks

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `409` `webhook already exists` | `PAL015.001` | Another webhook has the same name. Webhooks can share an endpoint, but not a name. | Use a different name. |
| `409` `subscription already exists` | `PAL015.010` | The webhook already has a subscription for this domain. | List the webhook's subscriptions before you add one. |
| `404` on a webhook | `PAL015.002` | No webhook has this ID. | Check the webhook ID. |
| `404` on a subscription | `PAL015.011` | No subscription with this ID exists on the webhook. | Check the subscription ID and the webhook ID. |
| `400` `invalid request` on a webhook or subscription | `PAL000.020` | The endpoint is missing or doesn't use `https://`, or a subscription domain isn't recognized. | Use an `https://` endpoint and a valid domain, such as `TRANSACTION`. |
| `400` with a parser message on adding subscriptions | None | The body isn't an array. | Send the subscriptions as a JSON array. See [Add subscriptions](/products/wallet/integrations-and-monitoring/webhooks/manage-webhooks-api#add-subscriptions-via-the-api). |
| `200` on deleting a webhook or subscription that doesn't exist | None | Deletes return `200` whether or not the object existed. | Don't treat a `200` as proof that the object existed. |


### Sweeps

| You see | Reason | Cause | What to do |
|  --- | --- | --- | --- |
| `400` `sweep configuration already running` | `PAL017.006` | A sweep for this configuration is already running. | Wait for the current run to finish, then trigger the sweep again. See [Trigger a sweep](/products/wallet/vaults-and-wallets/asset-sweeping/trigger-asset-sweeps-api#trigger-a-sweep-via-the-api). |
| `400` `invalid request` on a sweep trigger | `PAL000.020` | The configuration ID isn't a UUID. | Check the configuration ID. |
| `403` on a sweep trigger | `PAL000.002` | The request doesn't use a `TRANSACTIONS` credential. | Use a `TRANSACTIONS` credential. |
| `200` with no transactions for a sweep instance | None | No sweep instance has this ID. | Check the sweep instance ID in the console's sweep run history. |


## Get help with an error

Log the `requestId` from every error response that includes one. If you can't resolve an error, contact [Ripple Support](https://technicalsupport.ripple.com/) with the `requestId`, the reason code, and the time of the request.