Update a Business Application
curl --request PATCH \
--url https://api.treasuryprime.com/apply/business_application/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "4155552222"
}
'import requests
url = "https://api.treasuryprime.com/apply/business_application/{id}"
payload = { "phone_number": "4155552222" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone_number: '4155552222'})
};
fetch('https://api.treasuryprime.com/apply/business_application/{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.treasuryprime.com/apply/business_application/{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([
'phone_number' => '4155552222'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.treasuryprime.com/apply/business_application/{id}"
payload := strings.NewReader("{\n \"phone_number\": \"4155552222\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.treasuryprime.com/apply/business_application/{id}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"4155552222\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.treasuryprime.com/apply/business_application/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"4155552222\"\n}"
response = http.request(request)
puts response.read_body{
"bank_id": "bank_anybank",
"bankdata": null,
"created_at": "2019-03-02T11:55:14Z",
"dba": null,
"description": "Our company is engaged in the buying and selling of [...]",
"established_on": "2018-08-01",
"id": "abus_21sen7m398ab",
"identification_number": null,
"identification_number_type": null,
"incorporation_state": "DE",
"legal_structure": "llc",
"mailing_address": {
"city": "Sacramento",
"country": "US",
"postal_code": "95814",
"state": "CA",
"street_line_1": "1300 L St"
},
"naics": "42",
"naics_description": "Wholesale Trade",
"name": "Acme Goods Inc",
"person_applications": [
{
"id": "apsn_01d5w6yaa6vt",
"ownership_percentage": 25,
"roles": [
"signer"
],
"title": "CEO"
},
{
"id": "apsn_0fd62018smsk",
"ownership_percentage": 30,
"roles": [
"control_person",
"signer"
],
"title": "CFO"
}
],
"phone_number": "4155552222",
"physical_address": {
"city": "Benicia",
"postal_code": "94510",
"state": "CA",
"street_line_1": "115 W G St"
},
"tin": "11-3344555",
"updated_at": "2019-03-02T11:55:14Z",
"urls": [
"http://example.com"
],
"userdata": null
}Business Application
Update a Business Application
PATCH
/
apply
/
business_application
/
{id}
Update a Business Application
curl --request PATCH \
--url https://api.treasuryprime.com/apply/business_application/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "4155552222"
}
'import requests
url = "https://api.treasuryprime.com/apply/business_application/{id}"
payload = { "phone_number": "4155552222" }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({phone_number: '4155552222'})
};
fetch('https://api.treasuryprime.com/apply/business_application/{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.treasuryprime.com/apply/business_application/{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([
'phone_number' => '4155552222'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"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.treasuryprime.com/apply/business_application/{id}"
payload := strings.NewReader("{\n \"phone_number\": \"4155552222\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
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.treasuryprime.com/apply/business_application/{id}")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"4155552222\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.treasuryprime.com/apply/business_application/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"4155552222\"\n}"
response = http.request(request)
puts response.read_body{
"bank_id": "bank_anybank",
"bankdata": null,
"created_at": "2019-03-02T11:55:14Z",
"dba": null,
"description": "Our company is engaged in the buying and selling of [...]",
"established_on": "2018-08-01",
"id": "abus_21sen7m398ab",
"identification_number": null,
"identification_number_type": null,
"incorporation_state": "DE",
"legal_structure": "llc",
"mailing_address": {
"city": "Sacramento",
"country": "US",
"postal_code": "95814",
"state": "CA",
"street_line_1": "1300 L St"
},
"naics": "42",
"naics_description": "Wholesale Trade",
"name": "Acme Goods Inc",
"person_applications": [
{
"id": "apsn_01d5w6yaa6vt",
"ownership_percentage": 25,
"roles": [
"signer"
],
"title": "CEO"
},
{
"id": "apsn_0fd62018smsk",
"ownership_percentage": 30,
"roles": [
"control_person",
"signer"
],
"title": "CFO"
}
],
"phone_number": "4155552222",
"physical_address": {
"city": "Benicia",
"postal_code": "94510",
"state": "CA",
"street_line_1": "115 W G St"
},
"tin": "11-3344555",
"updated_at": "2019-03-02T11:55:14Z",
"urls": [
"http://example.com"
],
"userdata": null
}Authorizations
basicAuthapiKey
Body
application/json
The apply.business-application to update
Response
200 - application/json
The apply.business-application updated
Was this page helpful?