GET
/
account_lock
curl --request GET \
  --url https://api.treasuryprime.com/account_lock \
  --header 'Authorization: Basic <encoded-value>'
{
  "data": [
    {
      "account_id": "acct_1234567890",
      "additional_context": "ach_123453254 is disputed by customer.",
      "bank_id": "bank_treasuryprime",
      "id": "lock_1234567890",
      "locked": false,
      "org_id": "org_1234567890",
      "reason": "transactions_being_investigated_ACH",
      "released_at": "2024-04-02T11:55:14Z"
    }
  ]
}

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

account_id
string

ID of account that is associated with the account lock. Filterable.

bank_id
string

ID of bank that is associated with the account lock. Filterable.

locked
enum<string>

true if the account lock is active. Filterable.

Available options:
true,
false
org_id
string

ID of organization that is associated with the account lock. 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 lock elements, starting after the lock described by page_cursor. If no more locks are available, the resulting list will be empty.

The response is of type object.