Skip to main content
PATCH
/
counterparty
/
{id}
Update a Counterparty
curl --request PATCH \
  --url https://api.treasuryprime.com/counterparty/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userdata": {
    "ok": "true"
  }
}'
{
  "ach": {
    "account_number": "64141601",
    "account_type": "checking",
    "routing_number": "021001208"
  },
  "created_at": "2017-11-02T11:55:14Z",
  "id": "cp_1029384756",
  "name_on_account": "George Washington",
  "plaid_processor_token": null,
  "updated_at": "2017-11-02T11:55:14Z",
  "userdata": {
    "ok": "true"
  },
  "wire": null
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Unique identifier for object

Body

application/json

The counterparty to update

userdata
object

Response

200 - application/json

The counterparty updated

ach
object

Account information for use with ACH transfers

id
string

Unique identifier for object

name_on_account
string

Name of the account owner. Filterable.

plaid_processor_token
string

Plaid processor token, exchanged for an account number and routing number

userdata
object

Arbitrary data the user can attach to the object

wire
object

Account information for use with wire transfers

I