> 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 Invoice

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

Retrieve a single AR invoice by ID.

Reference: https://rockwell.ferndocs.com/api-reference/accounts-receivable-invoices-api/get-ar-invoice

## Request

### Path parameters

- `id` (string, required)

## Response

### 200

200 OK - Successfully Retrieved AR Invoice

- `id` (string, optional)
- `customerId` (string, optional)
- `customerName` (string, optional)
- `invoiceDate` (date, optional)
- `dueDate` (date, optional)
- `currency` (string, optional)
- `status` (string, optional)
- `lineItems` (list of AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaLineItemsItems, optional)
- `subtotal` (integer, optional)
- `taxTotal` (double, optional)
- `totalAmount` (double, optional)
- `notes` (string, optional)
- `referenceNumber` (string, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)

## Errors

### 400 Bad Request Error

400 Bad Request - Invalid ID Format

- `error` (AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaError, optional)

### 401 Unauthorized Error

401 Unauthorized - Missing or Invalid Bearer Token

- `error` (AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaError, optional)

### 404 Not Found Error

404 Not Found - Invoice Does Not Exist

- `error` (AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaError, optional)

### 500 Internal Server Error

500 Internal Server Error - Server-Side Error

- `error` (AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaError, optional)

## Types

### AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaLineItemsItems

- `lineId` (string, optional)
- `description` (string, optional)
- `quantity` (integer, optional)
- `unitPrice` (double, optional)
- `taxCode` (string, optional)
- `taxRate` (double, optional)
- `amount` (integer, optional)

### AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaError

- `code` (string, optional)
- `message` (string, optional)
- `details` (list of AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaErrorDetailsItems, optional)
- `requestId` (string, optional)
- `timestamp` (datetime, optional)
- `support` (string, optional)
- `documentation` (string, optional)

### AccountingV1ArInvoicesIdGetResponsesContentApplicationJsonSchemaErrorDetailsItems

- `issue` (string, optional)
- `suggestion` (string, optional)

## Examples

**Response**

```json
{
  "id": "a3f7c2d1-84e6-4b29-9f3a-1c2d3e4f5a6b",
  "customerId": "c9b1e3f2-11a4-4d78-8e5c-2f3a4b5c6d7e",
  "customerName": "Acme Manufacturing Corp.",
  "invoiceDate": "2024-06-01",
  "dueDate": "2024-07-01",
  "currency": "USD",
  "status": "OPEN",
  "lineItems": [
    {
      "lineId": "li-001",
      "description": "CNC Machined Aluminum Brackets - Part #ALU-4892",
      "quantity": 500,
      "unitPrice": 12.75,
      "taxCode": "TAX-US-MI",
      "taxRate": 0.06,
      "amount": 6375
    },
    {
      "lineId": "li-002",
      "description": "Precision Steel Fasteners - Part #STL-2201",
      "quantity": 2000,
      "unitPrice": 0.85,
      "taxCode": "TAX-US-MI",
      "taxRate": 0.06,
      "amount": 1700
    },
    {
      "lineId": "li-003",
      "description": "Assembly & Quality Inspection Services",
      "quantity": 8,
      "unitPrice": 150,
      "taxCode": "TAX-US-MI-SVC",
      "taxRate": 0,
      "amount": 1200
    }
  ],
  "subtotal": 9275,
  "taxTotal": 484.5,
  "totalAmount": 9759.5,
  "notes": "Net 30 payment terms. Please reference invoice number on remittance.",
  "referenceNumber": "INV-2024-008472",
  "createdAt": "2024-06-01T08:15:00Z",
  "updatedAt": "2024-06-01T08:15:00Z"
}
```

**SDK Code**

```python getArInvoice_example
import requests

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

response = requests.get(url)

print(response.json())
```

```javascript getArInvoice_example
const url = 'https://connect.plex.com/accounting/v1/ar-invoices/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 getArInvoice_example
package main

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

func main() {

	url := "https://connect.plex.com/accounting/v1/ar-invoices/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 getArInvoice_example
require 'uri'
require 'net/http'

url = URI("https://connect.plex.com/accounting/v1/ar-invoices/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 getArInvoice_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-invoices/id")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp getArInvoice_example
using RestSharp;

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

```swift getArInvoice_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://connect.plex.com/accounting/v1/ar-invoices/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()
```