Get all occupations
GET
/occupationsResponse
Retrieve occupations
namestring
risk_level"sensitive" | "not_sensitive" | "prohibited"
API Reference › Local Currency Payouts API › constants
/occupationsRetrieve occupations
curl -X GET "https://api.uat.triple-a.io/api/fiat-payout/v1/occupations" \
-H "Authorization: Bearer <token>"const response = await fetch(`https://api.uat.triple-a.io/api/fiat-payout/v1/occupations`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <token>' }
});
const data = await response.json();import requests
response = requests.request(
"GET",
"https://api.uat.triple-a.io/api/fiat-payout/v1/occupations",
headers={ "Authorization": "Bearer <token>" },
)
data = response.json()<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.uat.triple-a.io/api/fiat-payout/v1/occupations");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer <token>"]);
$response = curl_exec($ch);
curl_close($ch);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.uat.triple-a.io/api/fiat-payout/v1/occupations", nil)
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/occupations"))
.header("Authorization", "Bearer <token>")
.method("GET", HttpRequest.BodyPublishers.noBody())
.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/occupations")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer <token>"
response = http.request(request)
puts response.body[
{
"name": "string",
"risk_level": "not_sensitive"
}
]curl -X GET "https://api.uat.triple-a.io/api/fiat-payout/v1/occupations" \
-H "Authorization: Bearer <token>"const response = await fetch(`https://api.uat.triple-a.io/api/fiat-payout/v1/occupations`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <token>' }
});
const data = await response.json();import requests
response = requests.request(
"GET",
"https://api.uat.triple-a.io/api/fiat-payout/v1/occupations",
headers={ "Authorization": "Bearer <token>" },
)
data = response.json()<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.uat.triple-a.io/api/fiat-payout/v1/occupations");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer <token>"]);
$response = curl_exec($ch);
curl_close($ch);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.uat.triple-a.io/api/fiat-payout/v1/occupations", nil)
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/occupations"))
.header("Authorization", "Bearer <token>")
.method("GET", HttpRequest.BodyPublishers.noBody())
.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/occupations")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer <token>"
response = http.request(request)
puts response.body