> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://rockwell.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://rockwell.ferndocs.com/_mcp/server.

# Get AR Deposit

GET https://connect.plex.com/accounting/v1/ar-deposits/{id}

Retrieve a single AR deposit by ID, including its associated deposit lines.

Reference: https://rockwell.ferndocs.com/api-reference/accounts-receivable-deposits-api/get-ar-deposit

## Request

### Path parameters

- `id` (string, required)

## Response

### 200

200 Success - Full Deposit with Lines

- `id` (string, optional)
- `depositDate` (date, optional)
- `amount` (integer, optional)
- `currency` (string, optional)
- `status` (string, optional)
- `referenceNumber` (string, optional)
- `bankAccount` (AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaBankAccount, optional)
- `customerId` (string, optional)
- `customerName` (string, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `depositLines` (list of AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaDepositLinesItems, optional)

## Errors

### 400 Bad Request Error

400 Bad Request - Invalid ID Format

- `error` (AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaError, optional)

### 401 Unauthorized Error

401 Unauthorized - Missing or Invalid Token

- `error` (AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaError, optional)

### 404 Not Found Error

404 Not Found - Deposit Does Not Exist

- `error` (AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaError, optional)

## Types

### AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaBankAccount

- `accountId` (string, optional)
- `accountName` (string, optional)
- `bankName` (string, optional)
- `accountNumberLast4` (string, optional)

### AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaDepositLinesItems

- `lineId` (string, optional)
- `invoiceId` (string, optional)
- `invoiceNumber` (string, optional)
- `appliedAmount` (integer, optional)
- `description` (string, optional)

### AccountingV1ArDepositsIdGetResponsesContentApplicationJsonSchemaError

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional)
- `requestId` (string, optional)
- `timestamp` (datetime, optional)
- `documentation` (string, optional)

## Examples

**Response**

```json
{
  "id": "dep_7f3a92bc1d4e",
  "depositDate": "2024-06-15",
  "amount": 47250,
  "currency": "USD",
  "status": "Posted",
  "referenceNumber": "DEP-2024-06-0042",
  "bankAccount": {
    "accountId": "ba_001",
    "accountName": "Operating Checking Account",
    "bankName": "First National Bank",
    "accountNumberLast4": "7823"
  },
  "customerId": "cust_a1b2c3d4",
  "customerName": "Acme Manufacturing Corp.",
  "createdAt": "2024-06-15T09:14:32Z",
  "updatedAt": "2024-06-15T11:47:05Z",
  "depositLines": [
    {
      "lineId": "dpl_001a",
      "invoiceId": "inv_9921aa",
      "invoiceNumber": "INV-2024-1101",
      "appliedAmount": 18500,
      "description": "Payment for Invoice INV-2024-1101 - Machined Parts Order"
    },
    {
      "lineId": "dpl_002b",
      "invoiceId": "inv_9934bc",
      "invoiceNumber": "INV-2024-1118",
      "appliedAmount": 22750,
      "description": "Payment for Invoice INV-2024-1118 - Assembly Components"
    },
    {
      "lineId": "dpl_003c",
      "invoiceId": "inv_9947de",
      "invoiceNumber": "INV-2024-1125",
      "appliedAmount": 6000,
      "description": "Partial payment for Invoice INV-2024-1125 - Tooling Supplies"
    }
  ]
}
```

**SDK Code**

```python getArDeposit_example
import requests

url = "https://connect.plex.com/accounting/v1/ar-deposits/id"

response = requests.get(url)

print(response.json())
```

```javascript getArDeposit_example
const url = 'https://connect.plex.com/accounting/v1/ar-deposits/id';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go getArDeposit_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://connect.plex.com/accounting/v1/ar-deposits/id"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby getArDeposit_example
require 'uri'
require 'net/http'

url = URI("https://connect.plex.com/accounting/v1/ar-deposits/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java getArDeposit_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://connect.plex.com/accounting/v1/ar-deposits/id")
  .asString();
```

```php getArDeposit_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://connect.plex.com/accounting/v1/ar-deposits/id');

echo $response->getBody();
```

```csharp getArDeposit_example
using RestSharp;

var client = new RestClient("https://connect.plex.com/accounting/v1/ar-deposits/id");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift getArDeposit_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://connect.plex.com/accounting/v1/ar-deposits/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```