> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WithRawResponseDepositDestinationsClient

> WithRawResponseDepositDestinationsClient API reference.

Package: [`com.coinbase.cdp.resources.depositdestinations`](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/index)

```java theme={null}
public class WithRawResponseDepositDestinationsClient extends Object
```

## Method Details

### `listDepositDestinations`

**Overload 1**

```java theme={null}
public CdpClientHttpResponse<ListDepositDestinationsResponse> listDepositDestinations()
```

List deposit destinations. You can optionally filter the results by type, account ID, network, or cryptocurrency address. Results are sorted by creation date in descending order (newest first).

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[ListDepositDestinationsResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/types/ListDepositDestinationsResponse.md)>

**Overload 2**

```java theme={null}
public CdpClientHttpResponse<ListDepositDestinationsResponse> listDepositDestinations(ListDepositDestinationsRequest request)
```

List deposit destinations. You can optionally filter the results by type, account ID, network, or cryptocurrency address. Results are sorted by creation date in descending order (newest first).

**Parameters:**

`request` - [ListDepositDestinationsRequest](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/requests/ListDepositDestinationsRequest.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[ListDepositDestinationsResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/types/ListDepositDestinationsResponse.md)>

**Overload 3**

```java theme={null}
public CdpClientHttpResponse<ListDepositDestinationsResponse> listDepositDestinations(RequestOptions requestOptions)
```

List deposit destinations. You can optionally filter the results by type, account ID, network, or cryptocurrency address. Results are sorted by creation date in descending order (newest first).

**Parameters:**

`requestOptions` - [RequestOptions](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[ListDepositDestinationsResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/types/ListDepositDestinationsResponse.md)>

**Overload 4**

```java theme={null}
public CdpClientHttpResponse<ListDepositDestinationsResponse> listDepositDestinations(ListDepositDestinationsRequest request, RequestOptions requestOptions)
```

List deposit destinations. You can optionally filter the results by type, account ID, network, or cryptocurrency address. Results are sorted by creation date in descending order (newest first).

**Parameters:**

`request` - [ListDepositDestinationsRequest](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/requests/ListDepositDestinationsRequest.md)

`requestOptions` - [RequestOptions](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[ListDepositDestinationsResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/types/ListDepositDestinationsResponse.md)>

### `createDepositDestination`

**Overload 1**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> createDepositDestination(CreateDepositDestinationBody request)
```

Create a new deposit destination for an account. Two types are supported:

`crypto` (public): provisions a cryptocurrency address on the requested network. The returned `crypto.address` is the deposit address; funds sent to it are credited to the `target` account in the specified asset. For Customer-owned accounts, the Customer must have the `custodyCrypto` and `custodyStablecoin` capabilities enabled.

`fiat` (private-beta): provisions a bank account at a CDP banking partner. The server picks the account type (e.g. `us_bank`) and supported payment rails based on the account's eligibility; pass `fiat.paymentRail` to influence partner selection. The returned `fiat` object contains the bank account details the depositor needs to send funds. For Customer-owned accounts, the Customer must have the `custodyFiat` capability enabled. Requires account enablement — contact your Coinbase representative for access. Fields and behavior may change before general availability.

For Customer-owned accounts not authorized for the required capabilities, the request is rejected with `customer_not_authorized` (HTTP 403).

The created destination's `status` starts as `pending` for fiat (it becomes `active` once the partner provisioning callback completes) and `active` for crypto.

**Parameters:**

`request` - [CreateDepositDestinationBody](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/requests/CreateDepositDestinationBody.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>

**Overload 2**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> createDepositDestination(CreateDepositDestinationRequest body)
```

Create a new deposit destination for an account. Two types are supported:

`crypto` (public): provisions a cryptocurrency address on the requested network. The returned `crypto.address` is the deposit address; funds sent to it are credited to the `target` account in the specified asset. For Customer-owned accounts, the Customer must have the `custodyCrypto` and `custodyStablecoin` capabilities enabled.

`fiat` (private-beta): provisions a bank account at a CDP banking partner. The server picks the account type (e.g. `us_bank`) and supported payment rails based on the account's eligibility; pass `fiat.paymentRail` to influence partner selection. The returned `fiat` object contains the bank account details the depositor needs to send funds. For Customer-owned accounts, the Customer must have the `custodyFiat` capability enabled. Requires account enablement — contact your Coinbase representative for access. Fields and behavior may change before general availability.

For Customer-owned accounts not authorized for the required capabilities, the request is rejected with `customer_not_authorized` (HTTP 403).

The created destination's `status` starts as `pending` for fiat (it becomes `active` once the partner provisioning callback completes) and `active` for crypto.

**Parameters:**

`body` - [CreateDepositDestinationRequest](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CreateDepositDestinationRequest.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>

**Overload 3**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> createDepositDestination(CreateDepositDestinationBody request, RequestOptions requestOptions)
```

Create a new deposit destination for an account. Two types are supported:

`crypto` (public): provisions a cryptocurrency address on the requested network. The returned `crypto.address` is the deposit address; funds sent to it are credited to the `target` account in the specified asset. For Customer-owned accounts, the Customer must have the `custodyCrypto` and `custodyStablecoin` capabilities enabled.

`fiat` (private-beta): provisions a bank account at a CDP banking partner. The server picks the account type (e.g. `us_bank`) and supported payment rails based on the account's eligibility; pass `fiat.paymentRail` to influence partner selection. The returned `fiat` object contains the bank account details the depositor needs to send funds. For Customer-owned accounts, the Customer must have the `custodyFiat` capability enabled. Requires account enablement — contact your Coinbase representative for access. Fields and behavior may change before general availability.

For Customer-owned accounts not authorized for the required capabilities, the request is rejected with `customer_not_authorized` (HTTP 403).

The created destination's `status` starts as `pending` for fiat (it becomes `active` once the partner provisioning callback completes) and `active` for crypto.

**Parameters:**

`request` - [CreateDepositDestinationBody](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/requests/CreateDepositDestinationBody.md)

`requestOptions` - [RequestOptions](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>

**Overload 4**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> createDepositDestination(CreateDepositDestinationRequest body, RequestOptions requestOptions)
```

Create a new deposit destination for an account. Two types are supported:

`crypto` (public): provisions a cryptocurrency address on the requested network. The returned `crypto.address` is the deposit address; funds sent to it are credited to the `target` account in the specified asset. For Customer-owned accounts, the Customer must have the `custodyCrypto` and `custodyStablecoin` capabilities enabled.

`fiat` (private-beta): provisions a bank account at a CDP banking partner. The server picks the account type (e.g. `us_bank`) and supported payment rails based on the account's eligibility; pass `fiat.paymentRail` to influence partner selection. The returned `fiat` object contains the bank account details the depositor needs to send funds. For Customer-owned accounts, the Customer must have the `custodyFiat` capability enabled. Requires account enablement — contact your Coinbase representative for access. Fields and behavior may change before general availability.

For Customer-owned accounts not authorized for the required capabilities, the request is rejected with `customer_not_authorized` (HTTP 403).

The created destination's `status` starts as `pending` for fiat (it becomes `active` once the partner provisioning callback completes) and `active` for crypto.

**Parameters:**

`body` - [CreateDepositDestinationRequest](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/CreateDepositDestinationRequest.md)

`requestOptions` - [RequestOptions](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>

### `getDepositDestinationById`

**Overload 1**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> getDepositDestinationById(DepositDestinationId depositDestinationId)
```

Get a specific deposit destination by its ID.

**Parameters:**

`depositDestinationId` - [DepositDestinationId](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestinationId.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>

**Overload 2**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> getDepositDestinationById(DepositDestinationId depositDestinationId, GetDepositDestinationByIdRequest request)
```

Get a specific deposit destination by its ID.

**Parameters:**

`depositDestinationId` - [DepositDestinationId](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestinationId.md)

`request` - [GetDepositDestinationByIdRequest](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/requests/GetDepositDestinationByIdRequest.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>

**Overload 3**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> getDepositDestinationById(DepositDestinationId depositDestinationId, RequestOptions requestOptions)
```

Get a specific deposit destination by its ID.

**Parameters:**

`depositDestinationId` - [DepositDestinationId](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestinationId.md)

`requestOptions` - [RequestOptions](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>

**Overload 4**

```java theme={null}
public CdpClientHttpResponse<DepositDestination> getDepositDestinationById(DepositDestinationId depositDestinationId, GetDepositDestinationByIdRequest request, RequestOptions requestOptions)
```

Get a specific deposit destination by its ID.

**Parameters:**

`depositDestinationId` - [DepositDestinationId](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestinationId.md)

`request` - [GetDepositDestinationByIdRequest](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/resources/depositdestinations/requests/GetDepositDestinationByIdRequest.md)

`requestOptions` - [RequestOptions](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/RequestOptions.md)

**Returns:**

[CdpClientHttpResponse](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/core/CdpClientHttpResponse)\<[DepositDestination](https://docs.cdp.coinbase.com/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/DepositDestination.md)>
