Patch counterparty
curl --request PATCH \
--url https://api.conduit.financial/counterparties/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"type": "individual",
"firstName": "John",
"middleName": "Snow",
"lastName": "Smith",
"birthDate": "2020-03-15",
"nationality": "US",
"email": "contact@globaltechsolutions.com",
"phone": "+1-555-123-4567",
"identificationType": "passport",
"identificationNumber": "123",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
},
"paymentMethods": [
{
"id": "bank_1234",
"type": "bank",
"rail": [
"ted",
"pix"
],
"bankName": "First National Bank",
"accountType": "checking",
"accountOwnerName": "Global Tech Solutions",
"accountNumber": "123456789",
"routingNumber": "123",
"swiftCode": "FNBOUS33",
"branchCode": "1234",
"bankCode": "123",
"currency": "USD",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
}
},
{
"id": "wlt_1234",
"type": "wallet",
"rail": "ethereum",
"walletAddress": "0X0000000",
"walletLabel": "Gus Personal ETH Wallet"
},
{
"type": "wallet",
"rail": "tron",
"walletAddress": "T0000000",
"walletLabel": "Gus Personal Tron Wallet"
}
],
"documents": [
{
"documentId": "1234",
"documentPurpose": "transaction_justification",
"documentType": "invoice",
"documentName": "invoice.png"
}
]
}
'import requests
url = "https://api.conduit.financial/counterparties/{id}"
payload = {
"type": "individual",
"firstName": "John",
"middleName": "Snow",
"lastName": "Smith",
"birthDate": "2020-03-15",
"nationality": "US",
"email": "contact@globaltechsolutions.com",
"phone": "+1-555-123-4567",
"identificationType": "passport",
"identificationNumber": "123",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
},
"paymentMethods": [
{
"id": "bank_1234",
"type": "bank",
"rail": ["ted", "pix"],
"bankName": "First National Bank",
"accountType": "checking",
"accountOwnerName": "Global Tech Solutions",
"accountNumber": "123456789",
"routingNumber": "123",
"swiftCode": "FNBOUS33",
"branchCode": "1234",
"bankCode": "123",
"currency": "USD",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
}
},
{
"id": "wlt_1234",
"type": "wallet",
"rail": "ethereum",
"walletAddress": "0X0000000",
"walletLabel": "Gus Personal ETH Wallet"
},
{
"type": "wallet",
"rail": "tron",
"walletAddress": "T0000000",
"walletLabel": "Gus Personal Tron Wallet"
}
],
"documents": [
{
"documentId": "1234",
"documentPurpose": "transaction_justification",
"documentType": "invoice",
"documentName": "invoice.png"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'individual',
firstName: 'John',
middleName: 'Snow',
lastName: 'Smith',
birthDate: '2020-03-15',
nationality: 'US',
email: 'contact@globaltechsolutions.com',
phone: '+1-555-123-4567',
identificationType: 'passport',
identificationNumber: '123',
address: {
streetLine1: '21 Jump Street',
streetLine2: 'Unit 708',
city: 'Boston',
state: 'MA',
postalCode: '02111',
country: 'USA'
},
paymentMethods: [
{
id: 'bank_1234',
type: 'bank',
rail: ['ted', 'pix'],
bankName: 'First National Bank',
accountType: 'checking',
accountOwnerName: 'Global Tech Solutions',
accountNumber: '123456789',
routingNumber: '123',
swiftCode: 'FNBOUS33',
branchCode: '1234',
bankCode: '123',
currency: 'USD',
address: {
streetLine1: '21 Jump Street',
streetLine2: 'Unit 708',
city: 'Boston',
state: 'MA',
postalCode: '02111',
country: 'USA'
}
},
{
id: 'wlt_1234',
type: 'wallet',
rail: 'ethereum',
walletAddress: '0X0000000',
walletLabel: 'Gus Personal ETH Wallet'
},
{
type: 'wallet',
rail: 'tron',
walletAddress: 'T0000000',
walletLabel: 'Gus Personal Tron Wallet'
}
],
documents: [
{
documentId: '1234',
documentPurpose: 'transaction_justification',
documentType: 'invoice',
documentName: 'invoice.png'
}
]
})
};
fetch('https://api.conduit.financial/counterparties/{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.conduit.financial/counterparties/{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([
'type' => 'individual',
'firstName' => 'John',
'middleName' => 'Snow',
'lastName' => 'Smith',
'birthDate' => '2020-03-15',
'nationality' => 'US',
'email' => 'contact@globaltechsolutions.com',
'phone' => '+1-555-123-4567',
'identificationType' => 'passport',
'identificationNumber' => '123',
'address' => [
'streetLine1' => '21 Jump Street',
'streetLine2' => 'Unit 708',
'city' => 'Boston',
'state' => 'MA',
'postalCode' => '02111',
'country' => 'USA'
],
'paymentMethods' => [
[
'id' => 'bank_1234',
'type' => 'bank',
'rail' => [
'ted',
'pix'
],
'bankName' => 'First National Bank',
'accountType' => 'checking',
'accountOwnerName' => 'Global Tech Solutions',
'accountNumber' => '123456789',
'routingNumber' => '123',
'swiftCode' => 'FNBOUS33',
'branchCode' => '1234',
'bankCode' => '123',
'currency' => 'USD',
'address' => [
'streetLine1' => '21 Jump Street',
'streetLine2' => 'Unit 708',
'city' => 'Boston',
'state' => 'MA',
'postalCode' => '02111',
'country' => 'USA'
]
],
[
'id' => 'wlt_1234',
'type' => 'wallet',
'rail' => 'ethereum',
'walletAddress' => '0X0000000',
'walletLabel' => 'Gus Personal ETH Wallet'
],
[
'type' => 'wallet',
'rail' => 'tron',
'walletAddress' => 'T0000000',
'walletLabel' => 'Gus Personal Tron Wallet'
]
],
'documents' => [
[
'documentId' => '1234',
'documentPurpose' => 'transaction_justification',
'documentType' => 'invoice',
'documentName' => 'invoice.png'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <api-key>"
],
]);
$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.conduit.financial/counterparties/{id}"
payload := strings.NewReader("{\n \"type\": \"individual\",\n \"firstName\": \"John\",\n \"middleName\": \"Snow\",\n \"lastName\": \"Smith\",\n \"birthDate\": \"2020-03-15\",\n \"nationality\": \"US\",\n \"email\": \"contact@globaltechsolutions.com\",\n \"phone\": \"+1-555-123-4567\",\n \"identificationType\": \"passport\",\n \"identificationNumber\": \"123\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n },\n \"paymentMethods\": [\n {\n \"id\": \"bank_1234\",\n \"type\": \"bank\",\n \"rail\": [\n \"ted\",\n \"pix\"\n ],\n \"bankName\": \"First National Bank\",\n \"accountType\": \"checking\",\n \"accountOwnerName\": \"Global Tech Solutions\",\n \"accountNumber\": \"123456789\",\n \"routingNumber\": \"123\",\n \"swiftCode\": \"FNBOUS33\",\n \"branchCode\": \"1234\",\n \"bankCode\": \"123\",\n \"currency\": \"USD\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n }\n },\n {\n \"id\": \"wlt_1234\",\n \"type\": \"wallet\",\n \"rail\": \"ethereum\",\n \"walletAddress\": \"0X0000000\",\n \"walletLabel\": \"Gus Personal ETH Wallet\"\n },\n {\n \"type\": \"wallet\",\n \"rail\": \"tron\",\n \"walletAddress\": \"T0000000\",\n \"walletLabel\": \"Gus Personal Tron Wallet\"\n }\n ],\n \"documents\": [\n {\n \"documentId\": \"1234\",\n \"documentPurpose\": \"transaction_justification\",\n \"documentType\": \"invoice\",\n \"documentName\": \"invoice.png\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
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.conduit.financial/counterparties/{id}")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"individual\",\n \"firstName\": \"John\",\n \"middleName\": \"Snow\",\n \"lastName\": \"Smith\",\n \"birthDate\": \"2020-03-15\",\n \"nationality\": \"US\",\n \"email\": \"contact@globaltechsolutions.com\",\n \"phone\": \"+1-555-123-4567\",\n \"identificationType\": \"passport\",\n \"identificationNumber\": \"123\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n },\n \"paymentMethods\": [\n {\n \"id\": \"bank_1234\",\n \"type\": \"bank\",\n \"rail\": [\n \"ted\",\n \"pix\"\n ],\n \"bankName\": \"First National Bank\",\n \"accountType\": \"checking\",\n \"accountOwnerName\": \"Global Tech Solutions\",\n \"accountNumber\": \"123456789\",\n \"routingNumber\": \"123\",\n \"swiftCode\": \"FNBOUS33\",\n \"branchCode\": \"1234\",\n \"bankCode\": \"123\",\n \"currency\": \"USD\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n }\n },\n {\n \"id\": \"wlt_1234\",\n \"type\": \"wallet\",\n \"rail\": \"ethereum\",\n \"walletAddress\": \"0X0000000\",\n \"walletLabel\": \"Gus Personal ETH Wallet\"\n },\n {\n \"type\": \"wallet\",\n \"rail\": \"tron\",\n \"walletAddress\": \"T0000000\",\n \"walletLabel\": \"Gus Personal Tron Wallet\"\n }\n ],\n \"documents\": [\n {\n \"documentId\": \"1234\",\n \"documentPurpose\": \"transaction_justification\",\n \"documentType\": \"invoice\",\n \"documentName\": \"invoice.png\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conduit.financial/counterparties/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"individual\",\n \"firstName\": \"John\",\n \"middleName\": \"Snow\",\n \"lastName\": \"Smith\",\n \"birthDate\": \"2020-03-15\",\n \"nationality\": \"US\",\n \"email\": \"contact@globaltechsolutions.com\",\n \"phone\": \"+1-555-123-4567\",\n \"identificationType\": \"passport\",\n \"identificationNumber\": \"123\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n },\n \"paymentMethods\": [\n {\n \"id\": \"bank_1234\",\n \"type\": \"bank\",\n \"rail\": [\n \"ted\",\n \"pix\"\n ],\n \"bankName\": \"First National Bank\",\n \"accountType\": \"checking\",\n \"accountOwnerName\": \"Global Tech Solutions\",\n \"accountNumber\": \"123456789\",\n \"routingNumber\": \"123\",\n \"swiftCode\": \"FNBOUS33\",\n \"branchCode\": \"1234\",\n \"bankCode\": \"123\",\n \"currency\": \"USD\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n }\n },\n {\n \"id\": \"wlt_1234\",\n \"type\": \"wallet\",\n \"rail\": \"ethereum\",\n \"walletAddress\": \"0X0000000\",\n \"walletLabel\": \"Gus Personal ETH Wallet\"\n },\n {\n \"type\": \"wallet\",\n \"rail\": \"tron\",\n \"walletAddress\": \"T0000000\",\n \"walletLabel\": \"Gus Personal Tron Wallet\"\n }\n ],\n \"documents\": [\n {\n \"documentId\": \"1234\",\n \"documentPurpose\": \"transaction_justification\",\n \"documentType\": \"invoice\",\n \"documentName\": \"invoice.png\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "1234",
"type": "individual",
"firstName": "John",
"middleName": "Snow",
"lastName": "Smith",
"birthDate": "2020-03-15",
"nationality": "US",
"email": "contact@globaltechsolutions.com",
"phone": "+1-555-123-4567",
"identificationType": "curp",
"identificationNumber": "123",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
},
"paymentMethods": [
{
"id": "1234",
"type": "bank",
"rail": [
"ted",
"pix"
],
"bankName": "First National Bank",
"accountType": "checking",
"accountOwnerName": "Global Tech Solutions",
"accountNumber": "123456789",
"routingNumber": "123",
"swiftCode": "FNBOUS33",
"branchCode": "1234",
"bankCode": "123",
"currency": "USD",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
}
},
{
"id": "bank_1234",
"type": "wallet",
"rail": "ethereum",
"walletAddress": "0X0000000",
"walletLabel": "Gus Personal ETH Wallet"
},
{
"id": "wlt_1234",
"type": "wallet",
"rail": "tron",
"walletAddress": "T0000000",
"walletLabel": "Gus Personal Tron Wallet"
}
],
"documents": [
{
"documentId": "doc_1234",
"documentPurpose": "recurring_payment",
"documentType": "invoice",
"documentName": "invoice.png",
"uploadedAt": "2023-10-15T09:30:00Z"
}
],
"messages": [],
"status": "active",
"createdAt": "2024-01-01T10:00:00Z",
"updatedAt": "2024-02-15T15:45:00Z"
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Counterparties
Patch counterparty
Patch an existing counterparty
PATCH
/
counterparties
/
{id}
Patch counterparty
curl --request PATCH \
--url https://api.conduit.financial/counterparties/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-API-Secret: <api-key>' \
--data '
{
"type": "individual",
"firstName": "John",
"middleName": "Snow",
"lastName": "Smith",
"birthDate": "2020-03-15",
"nationality": "US",
"email": "contact@globaltechsolutions.com",
"phone": "+1-555-123-4567",
"identificationType": "passport",
"identificationNumber": "123",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
},
"paymentMethods": [
{
"id": "bank_1234",
"type": "bank",
"rail": [
"ted",
"pix"
],
"bankName": "First National Bank",
"accountType": "checking",
"accountOwnerName": "Global Tech Solutions",
"accountNumber": "123456789",
"routingNumber": "123",
"swiftCode": "FNBOUS33",
"branchCode": "1234",
"bankCode": "123",
"currency": "USD",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
}
},
{
"id": "wlt_1234",
"type": "wallet",
"rail": "ethereum",
"walletAddress": "0X0000000",
"walletLabel": "Gus Personal ETH Wallet"
},
{
"type": "wallet",
"rail": "tron",
"walletAddress": "T0000000",
"walletLabel": "Gus Personal Tron Wallet"
}
],
"documents": [
{
"documentId": "1234",
"documentPurpose": "transaction_justification",
"documentType": "invoice",
"documentName": "invoice.png"
}
]
}
'import requests
url = "https://api.conduit.financial/counterparties/{id}"
payload = {
"type": "individual",
"firstName": "John",
"middleName": "Snow",
"lastName": "Smith",
"birthDate": "2020-03-15",
"nationality": "US",
"email": "contact@globaltechsolutions.com",
"phone": "+1-555-123-4567",
"identificationType": "passport",
"identificationNumber": "123",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
},
"paymentMethods": [
{
"id": "bank_1234",
"type": "bank",
"rail": ["ted", "pix"],
"bankName": "First National Bank",
"accountType": "checking",
"accountOwnerName": "Global Tech Solutions",
"accountNumber": "123456789",
"routingNumber": "123",
"swiftCode": "FNBOUS33",
"branchCode": "1234",
"bankCode": "123",
"currency": "USD",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
}
},
{
"id": "wlt_1234",
"type": "wallet",
"rail": "ethereum",
"walletAddress": "0X0000000",
"walletLabel": "Gus Personal ETH Wallet"
},
{
"type": "wallet",
"rail": "tron",
"walletAddress": "T0000000",
"walletLabel": "Gus Personal Tron Wallet"
}
],
"documents": [
{
"documentId": "1234",
"documentPurpose": "transaction_justification",
"documentType": "invoice",
"documentName": "invoice.png"
}
]
}
headers = {
"X-API-Key": "<api-key>",
"X-API-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-API-Key': '<api-key>',
'X-API-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'individual',
firstName: 'John',
middleName: 'Snow',
lastName: 'Smith',
birthDate: '2020-03-15',
nationality: 'US',
email: 'contact@globaltechsolutions.com',
phone: '+1-555-123-4567',
identificationType: 'passport',
identificationNumber: '123',
address: {
streetLine1: '21 Jump Street',
streetLine2: 'Unit 708',
city: 'Boston',
state: 'MA',
postalCode: '02111',
country: 'USA'
},
paymentMethods: [
{
id: 'bank_1234',
type: 'bank',
rail: ['ted', 'pix'],
bankName: 'First National Bank',
accountType: 'checking',
accountOwnerName: 'Global Tech Solutions',
accountNumber: '123456789',
routingNumber: '123',
swiftCode: 'FNBOUS33',
branchCode: '1234',
bankCode: '123',
currency: 'USD',
address: {
streetLine1: '21 Jump Street',
streetLine2: 'Unit 708',
city: 'Boston',
state: 'MA',
postalCode: '02111',
country: 'USA'
}
},
{
id: 'wlt_1234',
type: 'wallet',
rail: 'ethereum',
walletAddress: '0X0000000',
walletLabel: 'Gus Personal ETH Wallet'
},
{
type: 'wallet',
rail: 'tron',
walletAddress: 'T0000000',
walletLabel: 'Gus Personal Tron Wallet'
}
],
documents: [
{
documentId: '1234',
documentPurpose: 'transaction_justification',
documentType: 'invoice',
documentName: 'invoice.png'
}
]
})
};
fetch('https://api.conduit.financial/counterparties/{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.conduit.financial/counterparties/{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([
'type' => 'individual',
'firstName' => 'John',
'middleName' => 'Snow',
'lastName' => 'Smith',
'birthDate' => '2020-03-15',
'nationality' => 'US',
'email' => 'contact@globaltechsolutions.com',
'phone' => '+1-555-123-4567',
'identificationType' => 'passport',
'identificationNumber' => '123',
'address' => [
'streetLine1' => '21 Jump Street',
'streetLine2' => 'Unit 708',
'city' => 'Boston',
'state' => 'MA',
'postalCode' => '02111',
'country' => 'USA'
],
'paymentMethods' => [
[
'id' => 'bank_1234',
'type' => 'bank',
'rail' => [
'ted',
'pix'
],
'bankName' => 'First National Bank',
'accountType' => 'checking',
'accountOwnerName' => 'Global Tech Solutions',
'accountNumber' => '123456789',
'routingNumber' => '123',
'swiftCode' => 'FNBOUS33',
'branchCode' => '1234',
'bankCode' => '123',
'currency' => 'USD',
'address' => [
'streetLine1' => '21 Jump Street',
'streetLine2' => 'Unit 708',
'city' => 'Boston',
'state' => 'MA',
'postalCode' => '02111',
'country' => 'USA'
]
],
[
'id' => 'wlt_1234',
'type' => 'wallet',
'rail' => 'ethereum',
'walletAddress' => '0X0000000',
'walletLabel' => 'Gus Personal ETH Wallet'
],
[
'type' => 'wallet',
'rail' => 'tron',
'walletAddress' => 'T0000000',
'walletLabel' => 'Gus Personal Tron Wallet'
]
],
'documents' => [
[
'documentId' => '1234',
'documentPurpose' => 'transaction_justification',
'documentType' => 'invoice',
'documentName' => 'invoice.png'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-API-Secret: <api-key>"
],
]);
$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.conduit.financial/counterparties/{id}"
payload := strings.NewReader("{\n \"type\": \"individual\",\n \"firstName\": \"John\",\n \"middleName\": \"Snow\",\n \"lastName\": \"Smith\",\n \"birthDate\": \"2020-03-15\",\n \"nationality\": \"US\",\n \"email\": \"contact@globaltechsolutions.com\",\n \"phone\": \"+1-555-123-4567\",\n \"identificationType\": \"passport\",\n \"identificationNumber\": \"123\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n },\n \"paymentMethods\": [\n {\n \"id\": \"bank_1234\",\n \"type\": \"bank\",\n \"rail\": [\n \"ted\",\n \"pix\"\n ],\n \"bankName\": \"First National Bank\",\n \"accountType\": \"checking\",\n \"accountOwnerName\": \"Global Tech Solutions\",\n \"accountNumber\": \"123456789\",\n \"routingNumber\": \"123\",\n \"swiftCode\": \"FNBOUS33\",\n \"branchCode\": \"1234\",\n \"bankCode\": \"123\",\n \"currency\": \"USD\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n }\n },\n {\n \"id\": \"wlt_1234\",\n \"type\": \"wallet\",\n \"rail\": \"ethereum\",\n \"walletAddress\": \"0X0000000\",\n \"walletLabel\": \"Gus Personal ETH Wallet\"\n },\n {\n \"type\": \"wallet\",\n \"rail\": \"tron\",\n \"walletAddress\": \"T0000000\",\n \"walletLabel\": \"Gus Personal Tron Wallet\"\n }\n ],\n \"documents\": [\n {\n \"documentId\": \"1234\",\n \"documentPurpose\": \"transaction_justification\",\n \"documentType\": \"invoice\",\n \"documentName\": \"invoice.png\"\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("X-API-Secret", "<api-key>")
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.conduit.financial/counterparties/{id}")
.header("X-API-Key", "<api-key>")
.header("X-API-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"individual\",\n \"firstName\": \"John\",\n \"middleName\": \"Snow\",\n \"lastName\": \"Smith\",\n \"birthDate\": \"2020-03-15\",\n \"nationality\": \"US\",\n \"email\": \"contact@globaltechsolutions.com\",\n \"phone\": \"+1-555-123-4567\",\n \"identificationType\": \"passport\",\n \"identificationNumber\": \"123\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n },\n \"paymentMethods\": [\n {\n \"id\": \"bank_1234\",\n \"type\": \"bank\",\n \"rail\": [\n \"ted\",\n \"pix\"\n ],\n \"bankName\": \"First National Bank\",\n \"accountType\": \"checking\",\n \"accountOwnerName\": \"Global Tech Solutions\",\n \"accountNumber\": \"123456789\",\n \"routingNumber\": \"123\",\n \"swiftCode\": \"FNBOUS33\",\n \"branchCode\": \"1234\",\n \"bankCode\": \"123\",\n \"currency\": \"USD\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n }\n },\n {\n \"id\": \"wlt_1234\",\n \"type\": \"wallet\",\n \"rail\": \"ethereum\",\n \"walletAddress\": \"0X0000000\",\n \"walletLabel\": \"Gus Personal ETH Wallet\"\n },\n {\n \"type\": \"wallet\",\n \"rail\": \"tron\",\n \"walletAddress\": \"T0000000\",\n \"walletLabel\": \"Gus Personal Tron Wallet\"\n }\n ],\n \"documents\": [\n {\n \"documentId\": \"1234\",\n \"documentPurpose\": \"transaction_justification\",\n \"documentType\": \"invoice\",\n \"documentName\": \"invoice.png\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conduit.financial/counterparties/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["X-API-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"individual\",\n \"firstName\": \"John\",\n \"middleName\": \"Snow\",\n \"lastName\": \"Smith\",\n \"birthDate\": \"2020-03-15\",\n \"nationality\": \"US\",\n \"email\": \"contact@globaltechsolutions.com\",\n \"phone\": \"+1-555-123-4567\",\n \"identificationType\": \"passport\",\n \"identificationNumber\": \"123\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n },\n \"paymentMethods\": [\n {\n \"id\": \"bank_1234\",\n \"type\": \"bank\",\n \"rail\": [\n \"ted\",\n \"pix\"\n ],\n \"bankName\": \"First National Bank\",\n \"accountType\": \"checking\",\n \"accountOwnerName\": \"Global Tech Solutions\",\n \"accountNumber\": \"123456789\",\n \"routingNumber\": \"123\",\n \"swiftCode\": \"FNBOUS33\",\n \"branchCode\": \"1234\",\n \"bankCode\": \"123\",\n \"currency\": \"USD\",\n \"address\": {\n \"streetLine1\": \"21 Jump Street\",\n \"streetLine2\": \"Unit 708\",\n \"city\": \"Boston\",\n \"state\": \"MA\",\n \"postalCode\": \"02111\",\n \"country\": \"USA\"\n }\n },\n {\n \"id\": \"wlt_1234\",\n \"type\": \"wallet\",\n \"rail\": \"ethereum\",\n \"walletAddress\": \"0X0000000\",\n \"walletLabel\": \"Gus Personal ETH Wallet\"\n },\n {\n \"type\": \"wallet\",\n \"rail\": \"tron\",\n \"walletAddress\": \"T0000000\",\n \"walletLabel\": \"Gus Personal Tron Wallet\"\n }\n ],\n \"documents\": [\n {\n \"documentId\": \"1234\",\n \"documentPurpose\": \"transaction_justification\",\n \"documentType\": \"invoice\",\n \"documentName\": \"invoice.png\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "1234",
"type": "individual",
"firstName": "John",
"middleName": "Snow",
"lastName": "Smith",
"birthDate": "2020-03-15",
"nationality": "US",
"email": "contact@globaltechsolutions.com",
"phone": "+1-555-123-4567",
"identificationType": "curp",
"identificationNumber": "123",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
},
"paymentMethods": [
{
"id": "1234",
"type": "bank",
"rail": [
"ted",
"pix"
],
"bankName": "First National Bank",
"accountType": "checking",
"accountOwnerName": "Global Tech Solutions",
"accountNumber": "123456789",
"routingNumber": "123",
"swiftCode": "FNBOUS33",
"branchCode": "1234",
"bankCode": "123",
"currency": "USD",
"address": {
"streetLine1": "21 Jump Street",
"streetLine2": "Unit 708",
"city": "Boston",
"state": "MA",
"postalCode": "02111",
"country": "USA"
}
},
{
"id": "bank_1234",
"type": "wallet",
"rail": "ethereum",
"walletAddress": "0X0000000",
"walletLabel": "Gus Personal ETH Wallet"
},
{
"id": "wlt_1234",
"type": "wallet",
"rail": "tron",
"walletAddress": "T0000000",
"walletLabel": "Gus Personal Tron Wallet"
}
],
"documents": [
{
"documentId": "doc_1234",
"documentPurpose": "recurring_payment",
"documentType": "invoice",
"documentName": "invoice.png",
"uploadedAt": "2023-10-15T09:30:00Z"
}
],
"messages": [],
"status": "active",
"createdAt": "2024-01-01T10:00:00Z",
"updatedAt": "2024-02-15T15:45:00Z"
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}{
"errors": [
{
"detail": "<string>",
"code": "<string>"
}
]
}Authorizations
Includes an API key in the HTTP headers to authenticate the client.
Includes an API secret in the HTTP headers to authenticate the client.
Path Parameters
A valid Counterparty ID
Pattern:
^cp_[a-zA-Z0-9]{27}$Example:
"cp_2ofTA13AD0xBtbEvBl20aEb1hEu"
Body
application/json
- Patch Individual Counterparty Request
- Patch Business Counterparty Request
Available options:
individual A valid Customer ID
Pattern:
^cus_[a-zA-Z0-9]{27}$Example:
"cus_2ofTA13AD0xBtbEvBl20aEb1hEu"
The date of birth in YYYY-MM-DD format.
ISO 3166-1 alpha-3 country code
Example:
"USA"
Available options:
tin, nit, cc, ce, passport, cpf, cnpj, rfc, curp, cuit, cuil Show child attributes
Show child attributes
- Update Bank Payment Method
- Update Crypto Payment Method
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
The newly updated counterparty object
- Option 1
- Option 2
A valid Counterparty ID
Pattern:
^cp_[a-zA-Z0-9]{27}$Example:
"cp_2ofTA13AD0xBtbEvBl20aEb1hEu"
Available options:
individual ISO 3166-1 alpha-3 country code
Example:
"USA"
Show child attributes
Show child attributes
- Option 1
- Option 2
Show child attributes
Show child attributes
Example:
{ "type": "bank", "rail": ["fedwire"], "bankName": "Bank of America", "accountOwnerName": "John Doe", "accountNumber": "1234567890", "currency": "USD", "routingNumber": "1234567890", "address": { "streetLine1": "123 Main St", "city": "New York", "state": "NY", "postalCode": "10001", "country": "USA" }, "id": "bank_1234", "sortCode": "12-34-56" }
Show child attributes
Show child attributes
Available options:
active, compliance_rejected, in_compliance_review, deleted Show child attributes
Show child attributes
A valid Customer ID
Pattern:
^cus_[a-zA-Z0-9]{27}$Example:
"cus_2ofTA13AD0xBtbEvBl20aEb1hEu"
Available options:
tin, nit, cc, ce, passport, cpf, cnpj, rfc, curp, cuit, cuil ⌘I

