Get jurisdiction by code
curl --request GET \
--url https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET'};
fetch('https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}"
response = requests.get(url)
print(response.text){
"data": {
"code": "BR",
"displayName": "<string>",
"profileVersion": "1.0.0",
"status": "active"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Get jurisdiction by code
Returns the descriptor for a single registered jurisdiction profile. Public (no tenant scope).
GET
/
api
/
v1
/
jurisdictions
/
{code}
Get jurisdiction by code
curl --request GET \
--url https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET'};
fetch('https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://lender.sandbox.lerian.net/api/v1/jurisdictions/{code}"
response = requests.get(url)
print(response.text){
"data": {
"code": "BR",
"displayName": "<string>",
"profileVersion": "1.0.0",
"status": "active"
}
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Was this page helpful?

