curl -X POST "https://api.uat.triple-a.io/api/fiat-payout/v1/batches" \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer <token>" \
-d '{
"external_id": "string",
"file": "batch.csv",
"sending_currency": "BTC"
}'
const response = await fetch(`https://api.uat.triple-a.io/api/fiat-payout/v1/batches`, {
method: 'POST',
headers: { 'Content-Type': 'multipart/form-data', 'Authorization': 'Bearer <token>' },
body: JSON.stringify({
"external_id": "string",
"file": "batch.csv",
"sending_currency": "BTC"
})
});
const data = await response.json();
import requests
response = requests.request(
"POST",
"https://api.uat.triple-a.io/api/fiat-payout/v1/batches",
headers={ "Authorization": "Bearer <token>" },
json={
"external_id": "string",
"file": "batch.csv",
"sending_currency": "BTC"
},
)
data = response.json()
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.uat.triple-a.io/api/fiat-payout/v1/batches");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: multipart/form-data", "Authorization: Bearer <token>"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{
"external_id": "string",
"file": "batch.csv",
"sending_currency": "BTC"
}');
$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", strings.NewReader(`{
"external_id": "string",
"file": "batch.csv",
"sending_currency": "BTC"
}`))
req.Header.Set("Content-Type", "multipart/form-data")
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"))
.header("Content-Type", "multipart/form-data")
.header("Authorization", "Bearer <token>")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"external_id\": \"string\",\n \"file\": \"batch.csv\",\n \"sending_currency\": \"BTC\"\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")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Post.new(uri)
request["Content-Type"] = "multipart/form-data"
request["Authorization"] = "Bearer <token>"
request.body = "{\n \"external_id\": \"string\",\n \"file\": \"batch.csv\",\n \"sending_currency\": \"BTC\"\n}"
response = http.request(request)
puts response.body