Features List available features
List available features
Returns the feature catalogue. With `customer_id`, `activated` shows which features are active for that customer. The order is not fixed. Every error on this route is HTTP 400.
Api-Key
Query parameters
NameDescription
customer_idA customer in your tenant. An unknown customer is a 400
CUSTOMER_NOT_FOUND error.countryCountry code. It has no effect today, because every feature is available in every country.
statusFilter by activation. It needs customer_id. Without it, every feature is inactive. Other values act as all.
Possible values: active, inactive, all
Default
"all"Response
Returns 200 OK. The feature catalogue
NameDescription
dataShow 3 child attributesobject
customer_idThe
customer_id you sentcountryThe
country you sentfeaturesThe feature catalogue, in no fixed order
Show 4 child attributesobject[]
feature_idThe catalogue lists six features: virtual_cards (Cards), usd_account, eur_account and gbp_account (accounts), crypto_wallet (Wallet) and international_transfers (Payout). These routes serve cards, so send virtual_cards. Open accounts, wallets and payouts with their own APIs.
Possible values: crypto_wallet, virtual_cards, eur_account, usd_account, gbp_account, international_transfers
nameDisplay name of the feature
descriptionWhat the feature does
activatedWhether the customer has an active activation. Always false without
customer_id. For virtual_cards it does not mean a card was issued.errorErrors
| Status | Meaning |
|---|---|
| 200 | The feature catalogue |
| 400 | Invalid or unknown customer |
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all' \
--header 'Api-Key: <api-key>'
const response = await fetch('https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all', {
method: 'GET',
headers: {
'Api-Key': '<api-key>',
},
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all"
headers = {
"Api-Key": "<api-key>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all", nil)
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status)
fmt.Println(string(body))
}
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Api-Key"] = "<api-key>"
response = http.request(request)
puts response.code
puts response.body
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all"))
.header("Api-Key", "<api-key>")
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.gravv.xyz/v1/risk/features?customer_id=302dabcb-d4fd-4a00-a80b-afad70982614&country=NG&status=all");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400OK
{
"data": {
"features": [
{
"feature_id": "crypto_wallet",
"name": "Wallet",
"description": "Create and manage wallets",
"activated": false
},
{
"feature_id": "eur_account",
"name": "EUR Account",
"description": "Create and manage EUR currency accounts",
"activated": false
},
{
"feature_id": "gbp_account",
"name": "GBP Account",
"description": "Create and manage GBP currency accounts",
"activated": false
},
{
"feature_id": "international_transfers",
"name": "Payout",
"description": "Send and receive international wire transfers",
"activated": false
},
{
"feature_id": "usd_account",
"name": "USD Account",
"description": "Create and manage USD currency accounts",
"activated": false
},
{
"feature_id": "virtual_cards",
"name": "Cards",
"description": "Issue and manage debit/credit cards",
"activated": false
}
]
},
"error": null
}
{
"data": null,
"error": "CUSTOMER_NOT_FOUND: Customer not found. Please verify the customer exists in our system."
}