List a person's accounts
curl --request GET \
--url https://api.montereyfinancial.app/v1/persons/{party_id}/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.montereyfinancial.app/v1/persons/{party_id}/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.montereyfinancial.app/v1/persons/{party_id}/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.montereyfinancial.app/v1/persons/{party_id}/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.montereyfinancial.app/v1/persons/{party_id}/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.montereyfinancial.app/v1/persons/{party_id}/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.montereyfinancial.app/v1/persons/{party_id}/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"organization_id": "<string>",
"contract_id": "<string>",
"external_id": "<string>",
"external_contract_id": "<string>",
"status_code": "<string>",
"current_balance_cents": 123,
"past_due_amount_cents": 123,
"payoff_amount_cents": 123,
"payment_amount_cents": 123,
"payment_frequency": "<string>",
"last_payment_at": "2023-12-25",
"next_payment_due_at": "2023-12-25",
"payments_made": 123,
"interest_rate_bps": 123,
"apr_bps": 123,
"interest_start_at": "2023-12-25",
"days_past_due_30": 123,
"days_past_due_60": 123,
"days_past_due_90": 123,
"nsf_count": 123,
"opened_at": "2023-12-25",
"closed_at": "2023-12-25",
"borrowers": [
{
"party_id": "<string>",
"display_name": "<string>",
"role": "<string>",
"is_primary": true
}
]
}
],
"page": {
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
}
}{
"detail": {
"error_code": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Persons
List a person's accounts
Returns accounts on which the person identified by party_id is the primary borrower or appears in AccountPartyRole, filtered to the calling access token’s organization allowlist. Returns 404 if the person isn’t visible to this key (out-of-scope party IDs are indistinguishable from non-existent ones).
GET
/
v1
/
persons
/
{party_id}
/
accounts
List a person's accounts
curl --request GET \
--url https://api.montereyfinancial.app/v1/persons/{party_id}/accounts \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.montereyfinancial.app/v1/persons/{party_id}/accounts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.montereyfinancial.app/v1/persons/{party_id}/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.montereyfinancial.app/v1/persons/{party_id}/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.montereyfinancial.app/v1/persons/{party_id}/accounts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.montereyfinancial.app/v1/persons/{party_id}/accounts")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.montereyfinancial.app/v1/persons/{party_id}/accounts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"organization_id": "<string>",
"contract_id": "<string>",
"external_id": "<string>",
"external_contract_id": "<string>",
"status_code": "<string>",
"current_balance_cents": 123,
"past_due_amount_cents": 123,
"payoff_amount_cents": 123,
"payment_amount_cents": 123,
"payment_frequency": "<string>",
"last_payment_at": "2023-12-25",
"next_payment_due_at": "2023-12-25",
"payments_made": 123,
"interest_rate_bps": 123,
"apr_bps": 123,
"interest_start_at": "2023-12-25",
"days_past_due_30": 123,
"days_past_due_60": 123,
"days_past_due_90": 123,
"nsf_count": 123,
"opened_at": "2023-12-25",
"closed_at": "2023-12-25",
"borrowers": [
{
"party_id": "<string>",
"display_name": "<string>",
"role": "<string>",
"is_primary": true
}
]
}
],
"page": {
"has_more": true,
"limit": 123,
"next_cursor": "<string>"
}
}{
"detail": {
"error_code": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Short-lived access token minted by POST /v1/oauth/token.
Path Parameters
Query Parameters
Opaque pagination cursor from a previous response's page.next_cursor. Omit on the first page.
Page size for cursor pagination. Default 100, minimum 1, maximum 1000. Requests above the maximum return 422 — narrow your page size and use the returned next_cursor to walk additional pages.
Required range:
1 <= x <= 1000Response
Successful Response