curl -X PATCH "https://api.uat.triple-a.io/api/fiat-payout/v1/individuals/<individualId>" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"external_id": "my_user_millerinc01",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "[email protected]",
"country_code": "USA",
"province_state": "New York",
"city": "New York City",
"native_address": "51 號,福州路,廣州市",
"address": "1 Falcon Ave, California",
"zip_code": "12345",
"date_of_birth": "2019-08-24",
"place_of_birth": "New York City",
"mobile_number": "+198766234",
"identification_type": "NATIONAL_ID",
"identification_number": "S98765433X",
"nationality": "SGP",
"remarks": "string",
"occupation": "string",
"approximate_transaction_volume_per_month": 10000,
"approximate_number_of_transactions_per_month": 42,
"is_blocked": true
}'
const response = await fetch(`https://api.uat.triple-a.io/api/fiat-payout/v1/individuals/${individualId}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer <token>' },
body: JSON.stringify({
"external_id": "my_user_millerinc01",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "[email protected]",
"country_code": "USA",
"province_state": "New York",
"city": "New York City",
"native_address": "51 號,福州路,廣州市",
"address": "1 Falcon Ave, California",
"zip_code": "12345",
"date_of_birth": "2019-08-24",
"place_of_birth": "New York City",
"mobile_number": "+198766234",
"identification_type": "NATIONAL_ID",
"identification_number": "S98765433X",
"nationality": "SGP",
"remarks": "string",
"occupation": "string",
"approximate_transaction_volume_per_month": 10000,
"approximate_number_of_transactions_per_month": 42,
"is_blocked": true
})
});
const data = await response.json();
import requests
response = requests.request(
"PATCH",
"https://api.uat.triple-a.io/api/fiat-payout/v1/individuals/{individualId}",
headers={ "Authorization": "Bearer <token>" },
json={
"external_id": "my_user_millerinc01",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "[email protected]",
"country_code": "USA",
"province_state": "New York",
"city": "New York City",
"native_address": "51 號,福州路,廣州市",
"address": "1 Falcon Ave, California",
"zip_code": "12345",
"date_of_birth": "2019-08-24",
"place_of_birth": "New York City",
"mobile_number": "+198766234",
"identification_type": "NATIONAL_ID",
"identification_number": "S98765433X",
"nationality": "SGP",
"remarks": "string",
"occupation": "string",
"approximate_transaction_volume_per_month": 10000,
"approximate_number_of_transactions_per_month": 42,
"is_blocked": True
},
)
data = response.json()
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.uat.triple-a.io/api/fiat-payout/v1/individuals/<individualId>");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json", "Authorization: Bearer <token>"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{
"external_id": "my_user_millerinc01",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "[email protected]",
"country_code": "USA",
"province_state": "New York",
"city": "New York City",
"native_address": "51 號,福州路,廣州市",
"address": "1 Falcon Ave, California",
"zip_code": "12345",
"date_of_birth": "2019-08-24",
"place_of_birth": "New York City",
"mobile_number": "+198766234",
"identification_type": "NATIONAL_ID",
"identification_number": "S98765433X",
"nationality": "SGP",
"remarks": "string",
"occupation": "string",
"approximate_transaction_volume_per_month": 10000,
"approximate_number_of_transactions_per_month": 42,
"is_blocked": true
}');
$response = curl_exec($ch);
curl_close($ch);
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("PATCH", "https://api.uat.triple-a.io/api/fiat-payout/v1/individuals/<individualId>", strings.NewReader(`{
"external_id": "my_user_millerinc01",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "[email protected]",
"country_code": "USA",
"province_state": "New York",
"city": "New York City",
"native_address": "51 號,福州路,廣州市",
"address": "1 Falcon Ave, California",
"zip_code": "12345",
"date_of_birth": "2019-08-24",
"place_of_birth": "New York City",
"mobile_number": "+198766234",
"identification_type": "NATIONAL_ID",
"identification_number": "S98765433X",
"nationality": "SGP",
"remarks": "string",
"occupation": "string",
"approximate_transaction_volume_per_month": 10000,
"approximate_number_of_transactions_per_month": 42,
"is_blocked": true
}`))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer <token>")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
data, _ := io.ReadAll(resp.Body)
fmt.Println(string(data))
}
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.uat.triple-a.io/api/fiat-payout/v1/individuals/<individualId>"))
.header("Content-Type", "application/json")
.header("Authorization", "Bearer <token>")
.method("PATCH", HttpRequest.BodyPublishers.ofString("{\n \"external_id\": \"my_user_millerinc01\",\n \"gender\": \"female\",\n \"native_last_name\": \"張\",\n \"last_name\": \"Zhang\",\n \"native_first_name\": \"占士\",\n \"first_name\": \"James\",\n \"email\": \"[email protected]\",\n \"country_code\": \"USA\",\n \"province_state\": \"New York\",\n \"city\": \"New York City\",\n \"native_address\": \"51 號,福州路,廣州市\",\n \"address\": \"1 Falcon Ave, California\",\n \"zip_code\": \"12345\",\n \"date_of_birth\": \"2019-08-24\",\n \"place_of_birth\": \"New York City\",\n \"mobile_number\": \"+198766234\",\n \"identification_type\": \"NATIONAL_ID\",\n \"identification_number\": \"S98765433X\",\n \"nationality\": \"SGP\",\n \"remarks\": \"string\",\n \"occupation\": \"string\",\n \"approximate_transaction_volume_per_month\": 10000,\n \"approximate_number_of_transactions_per_month\": 42,\n \"is_blocked\": true\n}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require "net/http"
require "uri"
uri = URI("https://api.uat.triple-a.io/api/fiat-payout/v1/individuals/<individualId>")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Patch.new(uri)
request["Content-Type"] = "application/json"
request["Authorization"] = "Bearer <token>"
request.body = "{\n \"external_id\": \"my_user_millerinc01\",\n \"gender\": \"female\",\n \"native_last_name\": \"張\",\n \"last_name\": \"Zhang\",\n \"native_first_name\": \"占士\",\n \"first_name\": \"James\",\n \"email\": \"[email protected]\",\n \"country_code\": \"USA\",\n \"province_state\": \"New York\",\n \"city\": \"New York City\",\n \"native_address\": \"51 號,福州路,廣州市\",\n \"address\": \"1 Falcon Ave, California\",\n \"zip_code\": \"12345\",\n \"date_of_birth\": \"2019-08-24\",\n \"place_of_birth\": \"New York City\",\n \"mobile_number\": \"+198766234\",\n \"identification_type\": \"NATIONAL_ID\",\n \"identification_number\": \"S98765433X\",\n \"nationality\": \"SGP\",\n \"remarks\": \"string\",\n \"occupation\": \"string\",\n \"approximate_transaction_volume_per_month\": 10000,\n \"approximate_number_of_transactions_per_month\": 42,\n \"is_blocked\": true\n}"
response = http.request(request)
puts response.body