Update an application (draft data only; never changes status)
curl --request PATCH \
--url https://api.example.com/v2/applications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hasIndirectControl": true,
"indirectControlDetails": {},
"individualActivity": {
"applicantAccountPurposes": [
"<string>"
],
"applicantAccountPurposesOtherDescription": {},
"applicantAnnualIncome": "120000.00",
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": [
"<string>"
],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantOccupationOtherDescription": {},
"applicantSourceOfFunds": [
"<string>"
],
"applicantSourceOfFundsOtherDescription": {},
"applicantSourceOfWealth": [
"<string>"
],
"applicantSourceOfWealthOtherDescription": {}
}
}
'import requests
url = "https://api.example.com/v2/applications/{id}"
payload = {
"hasIndirectControl": True,
"indirectControlDetails": {},
"individualActivity": {
"applicantAccountPurposes": ["<string>"],
"applicantAccountPurposesOtherDescription": {},
"applicantAnnualIncome": "120000.00",
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": ["<string>"],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantOccupationOtherDescription": {},
"applicantSourceOfFunds": ["<string>"],
"applicantSourceOfFundsOtherDescription": {},
"applicantSourceOfWealth": ["<string>"],
"applicantSourceOfWealthOtherDescription": {}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hasIndirectControl: true,
indirectControlDetails: {},
individualActivity: {
applicantAccountPurposes: ['<string>'],
applicantAccountPurposesOtherDescription: {},
applicantAnnualIncome: '120000.00',
applicantEmploymentStatus: '<string>',
applicantExpectedCounterpartyCountries: ['<string>'],
applicantExpectedCryptoMonthlyVolume: '<string>',
applicantExpectedFiatMonthlyVolume: '<string>',
applicantOccupationOtherDescription: {},
applicantSourceOfFunds: ['<string>'],
applicantSourceOfFundsOtherDescription: {},
applicantSourceOfWealth: ['<string>'],
applicantSourceOfWealthOtherDescription: {}
}
})
};
fetch('https://api.example.com/v2/applications/{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.example.com/v2/applications/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'hasIndirectControl' => true,
'indirectControlDetails' => [
],
'individualActivity' => [
'applicantAccountPurposes' => [
'<string>'
],
'applicantAccountPurposesOtherDescription' => [
],
'applicantAnnualIncome' => '120000.00',
'applicantEmploymentStatus' => '<string>',
'applicantExpectedCounterpartyCountries' => [
'<string>'
],
'applicantExpectedCryptoMonthlyVolume' => '<string>',
'applicantExpectedFiatMonthlyVolume' => '<string>',
'applicantOccupationOtherDescription' => [
],
'applicantSourceOfFunds' => [
'<string>'
],
'applicantSourceOfFundsOtherDescription' => [
],
'applicantSourceOfWealth' => [
'<string>'
],
'applicantSourceOfWealthOtherDescription' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v2/applications/{id}"
payload := strings.NewReader("{\n \"hasIndirectControl\": true,\n \"indirectControlDetails\": {},\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantAccountPurposesOtherDescription\": {},\n \"applicantAnnualIncome\": \"120000.00\",\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantOccupationOtherDescription\": {},\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfFundsOtherDescription\": {},\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealthOtherDescription\": {}\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v2/applications/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"hasIndirectControl\": true,\n \"indirectControlDetails\": {},\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantAccountPurposesOtherDescription\": {},\n \"applicantAnnualIncome\": \"120000.00\",\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantOccupationOtherDescription\": {},\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfFundsOtherDescription\": {},\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealthOtherDescription\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v2/applications/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hasIndirectControl\": true,\n \"indirectControlDetails\": {},\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantAccountPurposesOtherDescription\": {},\n \"applicantAnnualIncome\": \"120000.00\",\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantOccupationOtherDescription\": {},\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfFundsOtherDescription\": {},\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealthOtherDescription\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"applicationType": "business",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "draft",
"editableSections": [
"<string>"
],
"moreInfoReason": {},
"registeredName": {},
"riskLevel": "low",
"screeningStatus": "pending"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}Body
Describes the indirect control when hasIndirectControl is true, and is required with it. Cleared whenever hasIndirectControl is false, and null clears it under any answer. An unexplained yes tells a reviewer control exists and gives them nothing to assess, so the requirement is judged on the application as it stands after the write.
Response
When status is more_info_requested, the sections you may edit and resubmit. applicant / businessInfo / businessActivity / individualActivity are edited via PATCH; persons via the /persons sub-resource (and covers that person’s own documents); documents is company-level documents via the /documents sub-resource; identityVerification is the applicant’s identity verification, started via POST /v2/applications/{id}/identity-verification/session, and is listed exactly where POST /v2/applications/{id}/submit would refuse the resubmission naming verify_identity, whether or not the reviewer flagged it. Empty otherwise.
curl --request PATCH \
--url https://api.example.com/v2/applications/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"hasIndirectControl": true,
"indirectControlDetails": {},
"individualActivity": {
"applicantAccountPurposes": [
"<string>"
],
"applicantAccountPurposesOtherDescription": {},
"applicantAnnualIncome": "120000.00",
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": [
"<string>"
],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantOccupationOtherDescription": {},
"applicantSourceOfFunds": [
"<string>"
],
"applicantSourceOfFundsOtherDescription": {},
"applicantSourceOfWealth": [
"<string>"
],
"applicantSourceOfWealthOtherDescription": {}
}
}
'import requests
url = "https://api.example.com/v2/applications/{id}"
payload = {
"hasIndirectControl": True,
"indirectControlDetails": {},
"individualActivity": {
"applicantAccountPurposes": ["<string>"],
"applicantAccountPurposesOtherDescription": {},
"applicantAnnualIncome": "120000.00",
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": ["<string>"],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantOccupationOtherDescription": {},
"applicantSourceOfFunds": ["<string>"],
"applicantSourceOfFundsOtherDescription": {},
"applicantSourceOfWealth": ["<string>"],
"applicantSourceOfWealthOtherDescription": {}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
hasIndirectControl: true,
indirectControlDetails: {},
individualActivity: {
applicantAccountPurposes: ['<string>'],
applicantAccountPurposesOtherDescription: {},
applicantAnnualIncome: '120000.00',
applicantEmploymentStatus: '<string>',
applicantExpectedCounterpartyCountries: ['<string>'],
applicantExpectedCryptoMonthlyVolume: '<string>',
applicantExpectedFiatMonthlyVolume: '<string>',
applicantOccupationOtherDescription: {},
applicantSourceOfFunds: ['<string>'],
applicantSourceOfFundsOtherDescription: {},
applicantSourceOfWealth: ['<string>'],
applicantSourceOfWealthOtherDescription: {}
}
})
};
fetch('https://api.example.com/v2/applications/{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.example.com/v2/applications/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'hasIndirectControl' => true,
'indirectControlDetails' => [
],
'individualActivity' => [
'applicantAccountPurposes' => [
'<string>'
],
'applicantAccountPurposesOtherDescription' => [
],
'applicantAnnualIncome' => '120000.00',
'applicantEmploymentStatus' => '<string>',
'applicantExpectedCounterpartyCountries' => [
'<string>'
],
'applicantExpectedCryptoMonthlyVolume' => '<string>',
'applicantExpectedFiatMonthlyVolume' => '<string>',
'applicantOccupationOtherDescription' => [
],
'applicantSourceOfFunds' => [
'<string>'
],
'applicantSourceOfFundsOtherDescription' => [
],
'applicantSourceOfWealth' => [
'<string>'
],
'applicantSourceOfWealthOtherDescription' => [
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v2/applications/{id}"
payload := strings.NewReader("{\n \"hasIndirectControl\": true,\n \"indirectControlDetails\": {},\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantAccountPurposesOtherDescription\": {},\n \"applicantAnnualIncome\": \"120000.00\",\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantOccupationOtherDescription\": {},\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfFundsOtherDescription\": {},\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealthOtherDescription\": {}\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.example.com/v2/applications/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"hasIndirectControl\": true,\n \"indirectControlDetails\": {},\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantAccountPurposesOtherDescription\": {},\n \"applicantAnnualIncome\": \"120000.00\",\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantOccupationOtherDescription\": {},\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfFundsOtherDescription\": {},\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealthOtherDescription\": {}\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v2/applications/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"hasIndirectControl\": true,\n \"indirectControlDetails\": {},\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantAccountPurposesOtherDescription\": {},\n \"applicantAnnualIncome\": \"120000.00\",\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantOccupationOtherDescription\": {},\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfFundsOtherDescription\": {},\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealthOtherDescription\": {}\n }\n}"
response = http.request(request)
puts response.read_body{
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"applicationType": "business",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "draft",
"editableSections": [
"<string>"
],
"moreInfoReason": {},
"registeredName": {},
"riskLevel": "low",
"screeningStatus": "pending"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}{
"error": "BAD_REQUEST",
"message": "Bad Request",
"path": "/v1/resource",
"statusCode": 400,
"timestamp": "2024-01-15T10:30:00.000Z"
}