curl -X POST "https://api.uat.triple-a.io/api/fiat-payout/v1/individuals" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"external_id": "9c0eb636-84ac-4f78-a83c-83ab108d8cee",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "jamse.zhang@example.com",
"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",
"identification_issuer": "string",
"identification_issue_date": "2022-01-01",
"identification_expiry_date": "2022-09-01",
"additional_identification_type": "BVN",
"additional_identification_number": "S98765433X",
"additional_identification_issuer": "string",
"additional_identification_issue_date": "2022-01-01",
"additional_identification_expiry_date": "2022-09-01",
"nationality": "SGP",
"occupation": "string",
"remarks": "string",
"role": "sender",
"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` , {
method: 'POST' ,
headers: { 'Content-Type' : 'application/json' , 'Authorization' : 'Bearer <token>' },
body: JSON . stringify ({
"external_id" : "9c0eb636-84ac-4f78-a83c-83ab108d8cee" ,
"gender" : "female" ,
"native_last_name" : "張" ,
"last_name" : "Zhang" ,
"native_first_name" : "占士" ,
"first_name" : "James" ,
"email" : "jamse.zhang@example.com" ,
"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" ,
"identification_issuer" : "string" ,
"identification_issue_date" : "2022-01-01" ,
"identification_expiry_date" : "2022-09-01" ,
"additional_identification_type" : "BVN" ,
"additional_identification_number" : "S98765433X" ,
"additional_identification_issuer" : "string" ,
"additional_identification_issue_date" : "2022-01-01" ,
"additional_identification_expiry_date" : "2022-09-01" ,
"nationality" : "SGP" ,
"occupation" : "string" ,
"remarks" : "string" ,
"role" : "sender" ,
"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(
"POST" ,
"https://api.uat.triple-a.io/api/fiat-payout/v1/individuals" ,
headers = { "Authorization" : "Bearer <token>" },
json = {
"external_id" : "9c0eb636-84ac-4f78-a83c-83ab108d8cee" ,
"gender" : "female" ,
"native_last_name" : "張" ,
"last_name" : "Zhang" ,
"native_first_name" : "占士" ,
"first_name" : "James" ,
"email" : "jamse.zhang@example.com" ,
"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" ,
"identification_issuer" : "string" ,
"identification_issue_date" : "2022-01-01" ,
"identification_expiry_date" : "2022-09-01" ,
"additional_identification_type" : "BVN" ,
"additional_identification_number" : "S98765433X" ,
"additional_identification_issuer" : "string" ,
"additional_identification_issue_date" : "2022-01-01" ,
"additional_identification_expiry_date" : "2022-09-01" ,
"nationality" : "SGP" ,
"occupation" : "string" ,
"remarks" : "string" ,
"role" : "sender" ,
"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" );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER , true );
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST , "POST" );
curl_setopt ($ch, CURLOPT_HTTPHEADER , [ "Content-Type: application/json" , "Authorization: Bearer <token>" ]);
curl_setopt ($ch, CURLOPT_POSTFIELDS , '{
"external_id": "9c0eb636-84ac-4f78-a83c-83ab108d8cee",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "jamse.zhang@example.com",
"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",
"identification_issuer": "string",
"identification_issue_date": "2022-01-01",
"identification_expiry_date": "2022-09-01",
"additional_identification_type": "BVN",
"additional_identification_number": "S98765433X",
"additional_identification_issuer": "string",
"additional_identification_issue_date": "2022-01-01",
"additional_identification_expiry_date": "2022-09-01",
"nationality": "SGP",
"occupation": "string",
"remarks": "string",
"role": "sender",
"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 ( "POST" , "https://api.uat.triple-a.io/api/fiat-payout/v1/individuals" , strings. NewReader ( `{
"external_id": "9c0eb636-84ac-4f78-a83c-83ab108d8cee",
"gender": "female",
"native_last_name": "張",
"last_name": "Zhang",
"native_first_name": "占士",
"first_name": "James",
"email": "jamse.zhang@example.com",
"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",
"identification_issuer": "string",
"identification_issue_date": "2022-01-01",
"identification_expiry_date": "2022-09-01",
"additional_identification_type": "BVN",
"additional_identification_number": "S98765433X",
"additional_identification_issuer": "string",
"additional_identification_issue_date": "2022-01-01",
"additional_identification_expiry_date": "2022-09-01",
"nationality": "SGP",
"occupation": "string",
"remarks": "string",
"role": "sender",
"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" ))
. header ( "Content-Type" , "application/json" )
. header ( "Authorization" , "Bearer <token>" )
. method ( "POST" , HttpRequest.BodyPublishers. ofString ( "{ \n \" external_id \" : \" 9c0eb636-84ac-4f78-a83c-83ab108d8cee \" , \n \" gender \" : \" female \" , \n \" native_last_name \" : \" 張 \" , \n \" last_name \" : \" Zhang \" , \n \" native_first_name \" : \" 占士 \" , \n \" first_name \" : \" James \" , \n \" email \" : \" jamse.zhang@example.com \" , \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 \" identification_issuer \" : \" string \" , \n \" identification_issue_date \" : \" 2022-01-01 \" , \n \" identification_expiry_date \" : \" 2022-09-01 \" , \n \" additional_identification_type \" : \" BVN \" , \n \" additional_identification_number \" : \" S98765433X \" , \n \" additional_identification_issuer \" : \" string \" , \n \" additional_identification_issue_date \" : \" 2022-01-01 \" , \n \" additional_identification_expiry_date \" : \" 2022-09-01 \" , \n \" nationality \" : \" SGP \" , \n \" occupation \" : \" string \" , \n \" remarks \" : \" string \" , \n \" role \" : \" sender \" , \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" )
http = Net :: HTTP . new (uri. host , uri. port )
http. use_ssl = uri. scheme == "https"
request = Net :: HTTP :: Post . new (uri)
request[ "Content-Type" ] = "application/json"
request[ "Authorization" ] = "Bearer <token>"
request. body = "{ \n \" external_id \" : \" 9c0eb636-84ac-4f78-a83c-83ab108d8cee \" , \n \" gender \" : \" female \" , \n \" native_last_name \" : \" 張 \" , \n \" last_name \" : \" Zhang \" , \n \" native_first_name \" : \" 占士 \" , \n \" first_name \" : \" James \" , \n \" email \" : \" jamse.zhang@example.com \" , \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 \" identification_issuer \" : \" string \" , \n \" identification_issue_date \" : \" 2022-01-01 \" , \n \" identification_expiry_date \" : \" 2022-09-01 \" , \n \" additional_identification_type \" : \" BVN \" , \n \" additional_identification_number \" : \" S98765433X \" , \n \" additional_identification_issuer \" : \" string \" , \n \" additional_identification_issue_date \" : \" 2022-01-01 \" , \n \" additional_identification_expiry_date \" : \" 2022-09-01 \" , \n \" nationality \" : \" SGP \" , \n \" occupation \" : \" string \" , \n \" remarks \" : \" string \" , \n \" role \" : \" sender \" , \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 ⧉