curl -X POST "https://api.triple-a.work/kyc-api/v1/customers/poi" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"files": [
{
"customer_id": "6d282e8c-128e-4153-ad65-601930a94e02",
"options": {
"filename": "example.txt",
"filetype": "text/plain"
},
"notify_url": "https://example.com/notify"
},
{
"customer_id": "4d37cbdc-9dbb-4604-82a7-8f8753366a68",
"options": {
"filename": "example.jpeg",
"filetype": "image/jpeg"
},
"notify_url": "https://example.com/notify"
}
]
}' const response = await fetch ( `https://api.triple-a.work/kyc-api/v1/customers/poi` , {
method: 'POST' ,
headers: { 'Content-Type' : 'application/json' , 'Authorization' : 'Bearer <token>' },
body: JSON . stringify ({
"files" : [
{
"customer_id" : "6d282e8c-128e-4153-ad65-601930a94e02" ,
"options" : {
"filename" : "example.txt" ,
"filetype" : "text/plain"
},
"notify_url" : "https://example.com/notify"
},
{
"customer_id" : "4d37cbdc-9dbb-4604-82a7-8f8753366a68" ,
"options" : {
"filename" : "example.jpeg" ,
"filetype" : "image/jpeg"
},
"notify_url" : "https://example.com/notify"
}
]
})
});
const data = await response. json (); import requests
response = requests.request(
"POST" ,
"https://api.triple-a.work/kyc-api/v1/customers/poi" ,
headers = { "Authorization" : "Bearer <token>" },
json = {
"files" : [
{
"customer_id" : "6d282e8c-128e-4153-ad65-601930a94e02" ,
"options" : {
"filename" : "example.txt" ,
"filetype" : "text/plain"
},
"notify_url" : "https://example.com/notify"
},
{
"customer_id" : "4d37cbdc-9dbb-4604-82a7-8f8753366a68" ,
"options" : {
"filename" : "example.jpeg" ,
"filetype" : "image/jpeg"
},
"notify_url" : "https://example.com/notify"
}
]
},
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://api.triple-a.work/kyc-api/v1/customers/poi" );
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 , '{
"files": [
{
"customer_id": "6d282e8c-128e-4153-ad65-601930a94e02",
"options": {
"filename": "example.txt",
"filetype": "text/plain"
},
"notify_url": "https://example.com/notify"
},
{
"customer_id": "4d37cbdc-9dbb-4604-82a7-8f8753366a68",
"options": {
"filename": "example.jpeg",
"filetype": "image/jpeg"
},
"notify_url": "https://example.com/notify"
}
]
}' );
$response = curl_exec ($ch);
curl_close ($ch); package main
import (
" fmt "
" io "
" net/http "
" strings "
)
func main () {
req, _ := http. NewRequest ( "POST" , "https://api.triple-a.work/kyc-api/v1/customers/poi" , strings. NewReader ( `{
"files": [
{
"customer_id": "6d282e8c-128e-4153-ad65-601930a94e02",
"options": {
"filename": "example.txt",
"filetype": "text/plain"
},
"notify_url": "https://example.com/notify"
},
{
"customer_id": "4d37cbdc-9dbb-4604-82a7-8f8753366a68",
"options": {
"filename": "example.jpeg",
"filetype": "image/jpeg"
},
"notify_url": "https://example.com/notify"
}
]
}` ))
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.triple-a.work/kyc-api/v1/customers/poi" ))
. header ( "Content-Type" , "application/json" )
. header ( "Authorization" , "Bearer <token>" )
. method ( "POST" , HttpRequest.BodyPublishers. ofString ( "{ \n \" files \" : [ \n { \n \" customer_id \" : \" 6d282e8c-128e-4153-ad65-601930a94e02 \" , \n \" options \" : { \n \" filename \" : \" example.txt \" , \n \" filetype \" : \" text/plain \"\n }, \n \" notify_url \" : \" https://example.com/notify \"\n }, \n { \n \" customer_id \" : \" 4d37cbdc-9dbb-4604-82a7-8f8753366a68 \" , \n \" options \" : { \n \" filename \" : \" example.jpeg \" , \n \" filetype \" : \" image/jpeg \"\n }, \n \" notify_url \" : \" https://example.com/notify \"\n } \n ] \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.triple-a.work/kyc-api/v1/customers/poi" )
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 \" files \" : [ \n { \n \" customer_id \" : \" 6d282e8c-128e-4153-ad65-601930a94e02 \" , \n \" options \" : { \n \" filename \" : \" example.txt \" , \n \" filetype \" : \" text/plain \"\n }, \n \" notify_url \" : \" https://example.com/notify \"\n }, \n { \n \" customer_id \" : \" 4d37cbdc-9dbb-4604-82a7-8f8753366a68 \" , \n \" options \" : { \n \" filename \" : \" example.jpeg \" , \n \" filetype \" : \" image/jpeg \"\n }, \n \" notify_url \" : \" https://example.com/notify \"\n } \n ] \n }"
response = http. request (request)
puts response. body ⧉