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

# DEMO ENDPOINT

GET https://connect.plex.com/demo

Retrieve a list of AP payment records, including payment headers, line items, and check details.

Reference: https://rockwell.ferndocs.com/api-reference/accounts-payable-payments-api/demo-endpoint

## Response

### 200

Success - Payment List Retrieved

- `data` (list of DemoGetResponsesContentApplicationJsonSchemaDataItems, optional)
- `pagination` (DemoGetResponsesContentApplicationJsonSchemaPagination, optional)
- `metadata` (DemoGetResponsesContentApplicationJsonSchemaMetadata, optional)

## Errors

### 400 Bad Request Error

Bad Request - Invalid Parameters

- `error` (DemoGetResponsesContentApplicationJsonSchemaError, optional)

### 401 Unauthorized Error

Unauthorized - Missing or Invalid Token

- `error` (DemoGetResponsesContentApplicationJsonSchemaError, optional)

### 403 Forbidden Error

Forbidden - Insufficient Permissions

- `error` (DemoGetResponsesContentApplicationJsonSchemaError, optional)

### 404 Not Found Error

Not Found - No Payments Found

- `error` (DemoGetResponsesContentApplicationJsonSchemaError, optional)

### 429 Too Many Requests Error

Rate Limit Exceeded

- `error` (DemoGetResponsesContentApplicationJsonSchemaError, optional)

### 500 Internal Server Error

Internal Server Error

- `error` (DemoGetResponsesContentApplicationJsonSchemaError, optional)

## Types

### DemoGetResponsesContentApplicationJsonSchemaDataItems

- `paymentId` (integer, optional)
- `vendorId` (integer, optional)
- `vendorName` (string, optional)
- `vendorCode` (string, optional)
- `paymentDate` (date, optional)
- `paymentAmount` (integer, optional)
- `currency` (string, optional)
- `paymentStatus` (string, optional)
- `paymentMethod` (string, optional)
- `checkNumber` (string, optional)
- `checkDate` (date, optional)
- `bankAccount` (string, optional)
- `createdBy` (string, optional)
- `createdDate` (datetime, optional)
- `approvedBy` (string, optional)
- `approvedDate` (datetime, optional)
- `paymentLines` (list of DemoGetResponsesContentApplicationJsonSchemaDataItemsPaymentLinesItems, optional)

### DemoGetResponsesContentApplicationJsonSchemaPagination

- `currentPage` (integer, optional)
- `pageSize` (integer, optional)
- `totalRecords` (integer, optional)
- `totalPages` (integer, optional)

### DemoGetResponsesContentApplicationJsonSchemaMetadata

- `requestId` (string, optional)
- `timestamp` (datetime, optional)
- `processingTime` (integer, optional)

### DemoGetResponsesContentApplicationJsonSchemaError

- `code` (string, optional)
- `message` (string, optional)
- `details` (string, optional)
- `timestamp` (datetime, optional)
- `requestId` (string, optional)
- `supportReference` (string, optional)

### DemoGetResponsesContentApplicationJsonSchemaDataItemsPaymentLinesItems

- `lineId` (integer, optional)
- `invoiceNumber` (string, optional)
- `invoiceDate` (date, optional)
- `lineAmount` (integer, optional)
- `discountAmount` (integer, optional)
- `glAccount` (string, optional)
- `glAccountDescription` (string, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "paymentId": 12345,
      "vendorId": 5678,
      "vendorName": "ABC Supplies Inc.",
      "vendorCode": "VENDOR-001",
      "paymentDate": "2024-01-15",
      "paymentAmount": 15750,
      "currency": "USD",
      "paymentStatus": "Processed",
      "paymentMethod": "Check",
      "checkNumber": "CHK-2024-001",
      "checkDate": "2024-01-15",
      "bankAccount": "Operating Account - 1234",
      "createdBy": "john.doe@company.com",
      "createdDate": "2024-01-14T10:30:00Z",
      "approvedBy": "jane.smith@company.com",
      "approvedDate": "2024-01-15T09:15:00Z",
      "paymentLines": [
        {
          "lineId": 1,
          "invoiceNumber": "INV-2024-001",
          "invoiceDate": "2023-12-20",
          "lineAmount": 10500,
          "discountAmount": 0,
          "glAccount": "2000-100",
          "glAccountDescription": "Accounts Payable - Trade"
        },
        {
          "lineId": 2,
          "invoiceNumber": "INV-2024-002",
          "invoiceDate": "2023-12-28",
          "lineAmount": 5250,
          "discountAmount": 0,
          "glAccount": "2000-100",
          "glAccountDescription": "Accounts Payable - Trade"
        }
      ]
    },
    {
      "paymentId": 12346,
      "vendorId": 5679,
      "vendorName": "XYZ Manufacturing Ltd.",
      "vendorCode": "VENDOR-002",
      "paymentDate": "2024-01-16",
      "paymentAmount": 1,
      "currency": "USD",
      "paymentStatus": "Processed",
      "paymentMethod": "ACH",
      "bankAccount": "Operating Account - 1234",
      "createdBy": "sarah.johnson@company.com",
      "createdDate": "2024-01-15T14:20:00Z",
      "approvedBy": "jane.smith@company.com",
      "approvedDate": "2024-01-16T08:30:00Z",
      "paymentLines": [
        {
          "lineId": 1,
          "invoiceNumber": "INV-2024-003",
          "invoiceDate": "2024-01-05",
          "lineAmount": 1,
          "discountAmount": 0,
          "glAccount": "2000-100",
          "glAccountDescription": "Accounts Payable - Trade"
        }
      ],
      "achReference": "ACH-2024-0045"
    }
  ],
  "pagination": {
    "currentPage": 1,
    "pageSize": 50,
    "totalRecords": 2,
    "totalPages": 1
  },
  "metadata": {
    "requestId": "req-abc123-def456",
    "timestamp": "2024-01-16T15:30:00Z",
    "processingTime": 245
  }
}
```

**SDK Code**

```python demoEndpoint_example
import requests

url = "https://connect.plex.com/demo"

response = requests.get(url)

print(response.json())
```

```javascript demoEndpoint_example
const url = 'https://connect.plex.com/demo';
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 demoEndpoint_example
package main

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

func main() {

	url := "https://connect.plex.com/demo"

	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 demoEndpoint_example
require 'uri'
require 'net/http'

url = URI("https://connect.plex.com/demo")

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 demoEndpoint_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://connect.plex.com/demo")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://connect.plex.com/demo');

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

```csharp demoEndpoint_example
using RestSharp;

var client = new RestClient("https://connect.plex.com/demo");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift demoEndpoint_example
import Foundation

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