Skip to main content
GET
/
counterparty
List Counterparties
curl --request GET \
  --url https://api.treasuryprime.com/counterparty \
  --header 'Authorization: Basic <encoded-value>'
{
  "data": [
    {
      "ach": {
        "account_number": "<string>",
        "account_type": "<string>",
        "routing_number": "<string>"
      },
      "id": "<string>",
      "name_on_account": "<string>",
      "plaid_processor_token": "<string>",
      "userdata": {},
      "wire": {
        "account_number": "<string>",
        "address_on_account": {
          "city": "<string>",
          "country": "<string>",
          "postal_code": "<string>",
          "state": "<string>",
          "street_line_1": "<string>",
          "street_line_2": "<string>"
        },
        "bank_address": {
          "city": "<string>",
          "country": "<string>",
          "postal_code": "<string>",
          "state": "<string>",
          "street_line_1": "<string>",
          "street_line_2": "<string>"
        },
        "bank_name": "<string>",
        "routing_number": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

name_on_account
string

Name of the account owner. Filterable.

page_cursor
string

Pagination cursor, value is the object ID.

page_size
integer
default:100

Limits the number of objects in the returned list, value must be a number greater than or equal to 1. Defaults to 100.

Required range: x >= 1
from_date
string

Lists the objects created on the date provided and onwards. Date must be in ISO 8601 format (“YYYY-MM-DD”).

to_date
string

Lists the objects created before the date provided. Date must be in ISO 8601 format (“YYYY-MM-DD”).

Response

200 - application/json

A dictionary with a data property that contains a list of up to page_size counterparty elements, starting after the counterparty described by page_cursor. If no more counterpartys are available, the resulting list will be empty.

data
object[]