curl -X POST "https://api.uat.triple-a.io/api/fiat-payout/v1/batches/<batchId>/confirm" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <token>" \
-d '{
"payment_method": "crypto_page",
"success_url": "string",
"cancel_url": "string",
"amount_to_pay": 100,
"cryptocurrency": "BTC",
"card_id": "00000000-0000-0000-0000-000000000000"
}' const response = await fetch ( `https://api.uat.triple-a.io/api/fiat-payout/v1/batches/${ batchId }/confirm` , {
method: 'POST' ,
headers: { 'Content-Type' : 'application/json' , 'Authorization' : 'Bearer <token>' },
body: JSON . stringify ({
"payment_method" : "crypto_page" ,
"success_url" : "string" ,
"cancel_url" : "string" ,
"amount_to_pay" : 100 ,
"cryptocurrency" : "BTC" ,
"card_id" : "00000000-0000-0000-0000-000000000000"
})
});
const data = await response. json (); import requests
response = requests.request(
"POST" ,
"https://api.uat.triple-a.io/api/fiat-payout/v1/batches/ {batchId} /confirm" ,
headers = { "Authorization" : "Bearer <token>" },
json = {
"payment_method" : "crypto_page" ,
"success_url" : "string" ,
"cancel_url" : "string" ,
"amount_to_pay" : 100 ,
"cryptocurrency" : "BTC" ,
"card_id" : "00000000-0000-0000-0000-000000000000"
},
)
data = response.json() <? php
$ch = curl_init ();
curl_setopt ($ch, CURLOPT_URL , "https://api.uat.triple-a.io/api/fiat-payout/v1/batches/<batchId>/confirm" );
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 , '{
"payment_method": "crypto_page",
"success_url": "string",
"cancel_url": "string",
"amount_to_pay": 100,
"cryptocurrency": "BTC",
"card_id": "00000000-0000-0000-0000-000000000000"
}' );
$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/batches/<batchId>/confirm" , strings. NewReader ( `{
"payment_method": "crypto_page",
"success_url": "string",
"cancel_url": "string",
"amount_to_pay": 100,
"cryptocurrency": "BTC",
"card_id": "00000000-0000-0000-0000-000000000000"
}` ))
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/batches/<batchId>/confirm" ))
. header ( "Content-Type" , "application/json" )
. header ( "Authorization" , "Bearer <token>" )
. method ( "POST" , HttpRequest.BodyPublishers. ofString ( "{ \n \" payment_method \" : \" crypto_page \" , \n \" success_url \" : \" string \" , \n \" cancel_url \" : \" string \" , \n \" amount_to_pay \" : 100, \n \" cryptocurrency \" : \" BTC \" , \n \" card_id \" : \" 00000000-0000-0000-0000-000000000000 \"\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/batches/<batchId>/confirm" )
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 \" payment_method \" : \" crypto_page \" , \n \" success_url \" : \" string \" , \n \" cancel_url \" : \" string \" , \n \" amount_to_pay \" : 100, \n \" cryptocurrency \" : \" BTC \" , \n \" card_id \" : \" 00000000-0000-0000-0000-000000000000 \"\n }"
response = http. request (request)
puts response. body ⧉