Get a Child org
curl --request GET \
--url https://api.jenzy.com/v2/child-orgs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.jenzy.com/v2/child-orgs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.jenzy.com/v2/child-orgs/{id}', 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.jenzy.com/v2/child-orgs/{id}",
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.jenzy.com/v2/child-orgs/{id}"
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.jenzy.com/v2/child-orgs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/child-orgs/{id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "individual",
"display_name": "<string>",
"reference": "<string>",
"status": "incomplete",
"requirements": [
{
"party_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "terms_value",
"document_category": "identifying_documents",
"document_types": [
"passport",
"national_id"
],
"reason": "missing"
}
],
"capabilities": {
"usd_collections": "pending",
"usd_payouts": "pending"
},
"associated_parties": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"terms_url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Child orgs
Get a Child org
One Child org: its status, what you still owe (requirements) and its capabilities.
GET
/
child-orgs
/
{id}
Get a Child org
curl --request GET \
--url https://api.jenzy.com/v2/child-orgs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.jenzy.com/v2/child-orgs/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.jenzy.com/v2/child-orgs/{id}', 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.jenzy.com/v2/child-orgs/{id}",
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.jenzy.com/v2/child-orgs/{id}"
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.jenzy.com/v2/child-orgs/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jenzy.com/v2/child-orgs/{id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "individual",
"display_name": "<string>",
"reference": "<string>",
"status": "incomplete",
"requirements": [
{
"party_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "terms_value",
"document_category": "identifying_documents",
"document_types": [
"passport",
"national_id"
],
"reason": "missing"
}
],
"capabilities": {
"usd_collections": "pending",
"usd_payouts": "pending"
},
"associated_parties": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"terms_url": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}{
"error": {
"code": "validation_error",
"message": "<string>"
}
}Headers
Response
The Child org.
incomplete: requirements lists what you still owe before review. in_review: nothing is owed; the review is in progress. action_required: the review needs more from you; requirements lists it, and you send it with POST /v2/child-orgs/{id}/information. active: approved; the Child org can transact. requirements can list a request after approval; the status stays active. rejected: final; to try again, create a new Child org. suspended: the Child org or your organization is suspended.
Available options:
incomplete, in_review, action_required, active, rejected, suspended