Applications
Update an application (draft data only; never changes status)
PATCH
/
v2
/
applications
/
{id}
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": "<string>",
"individualActivity": {
"applicantAccountPurposes": [
"<string>"
],
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": [
"<string>"
],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantSourceOfFunds": [
"<string>"
],
"applicantSourceOfWealth": [
"<string>"
]
}
}
'import requests
url = "https://api.example.com/v2/applications/{id}"
payload = {
"hasIndirectControl": True,
"indirectControlDetails": "<string>",
"individualActivity": {
"applicantAccountPurposes": ["<string>"],
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": ["<string>"],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantSourceOfFunds": ["<string>"],
"applicantSourceOfWealth": ["<string>"]
}
}
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: '<string>',
individualActivity: {
applicantAccountPurposes: ['<string>'],
applicantEmploymentStatus: '<string>',
applicantExpectedCounterpartyCountries: ['<string>'],
applicantExpectedCryptoMonthlyVolume: '<string>',
applicantExpectedFiatMonthlyVolume: '<string>',
applicantSourceOfFunds: ['<string>'],
applicantSourceOfWealth: ['<string>']
}
})
};
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' => '<string>',
'individualActivity' => [
'applicantAccountPurposes' => [
'<string>'
],
'applicantEmploymentStatus' => '<string>',
'applicantExpectedCounterpartyCountries' => [
'<string>'
],
'applicantExpectedCryptoMonthlyVolume' => '<string>',
'applicantExpectedFiatMonthlyVolume' => '<string>',
'applicantSourceOfFunds' => [
'<string>'
],
'applicantSourceOfWealth' => [
'<string>'
]
]
]),
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\": \"<string>\",\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ]\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\": \"<string>\",\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ]\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\": \"<string>\",\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"editableSections": [
"<string>"
],
"moreInfoReason": "<string>",
"registeredName": "<string>"
}{
"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"
}Authorizations
Enter Auth0 JWT token
Path Parameters
Body
application/json
Response
The account this application belongs to (self or sub-account).
Available options:
business, individual Available options:
draft, under_review, approved, more_info_requested, rejected 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. Empty otherwise.
When status is more_info_requested, the reviewer’s notes describing what needs to change. Null otherwise.
The name the company is registered under, so a directory can label an application without reading the full record.
Available options:
low, medium, high, prohibited Available options:
pending, in_progress, clear, flagged, failed, timed_out ⌘I
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": "<string>",
"individualActivity": {
"applicantAccountPurposes": [
"<string>"
],
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": [
"<string>"
],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantSourceOfFunds": [
"<string>"
],
"applicantSourceOfWealth": [
"<string>"
]
}
}
'import requests
url = "https://api.example.com/v2/applications/{id}"
payload = {
"hasIndirectControl": True,
"indirectControlDetails": "<string>",
"individualActivity": {
"applicantAccountPurposes": ["<string>"],
"applicantEmploymentStatus": "<string>",
"applicantExpectedCounterpartyCountries": ["<string>"],
"applicantExpectedCryptoMonthlyVolume": "<string>",
"applicantExpectedFiatMonthlyVolume": "<string>",
"applicantSourceOfFunds": ["<string>"],
"applicantSourceOfWealth": ["<string>"]
}
}
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: '<string>',
individualActivity: {
applicantAccountPurposes: ['<string>'],
applicantEmploymentStatus: '<string>',
applicantExpectedCounterpartyCountries: ['<string>'],
applicantExpectedCryptoMonthlyVolume: '<string>',
applicantExpectedFiatMonthlyVolume: '<string>',
applicantSourceOfFunds: ['<string>'],
applicantSourceOfWealth: ['<string>']
}
})
};
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' => '<string>',
'individualActivity' => [
'applicantAccountPurposes' => [
'<string>'
],
'applicantEmploymentStatus' => '<string>',
'applicantExpectedCounterpartyCountries' => [
'<string>'
],
'applicantExpectedCryptoMonthlyVolume' => '<string>',
'applicantExpectedFiatMonthlyVolume' => '<string>',
'applicantSourceOfFunds' => [
'<string>'
],
'applicantSourceOfWealth' => [
'<string>'
]
]
]),
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\": \"<string>\",\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ]\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\": \"<string>\",\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ]\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\": \"<string>\",\n \"individualActivity\": {\n \"applicantAccountPurposes\": [\n \"<string>\"\n ],\n \"applicantEmploymentStatus\": \"<string>\",\n \"applicantExpectedCounterpartyCountries\": [\n \"<string>\"\n ],\n \"applicantExpectedCryptoMonthlyVolume\": \"<string>\",\n \"applicantExpectedFiatMonthlyVolume\": \"<string>\",\n \"applicantSourceOfFunds\": [\n \"<string>\"\n ],\n \"applicantSourceOfWealth\": [\n \"<string>\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"editableSections": [
"<string>"
],
"moreInfoReason": "<string>",
"registeredName": "<string>"
}{
"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"
}