Features Check feature eligibility
Check feature eligibility
Lists the requirements a customer has met, and those still pending, for one feature. The call only reads data, but it is a POST and needs an Idempotency-Key. A repeated key returns the cached answer for 24 hours, so use a new key for each check. Every error is HTTP 400.
Api-Key
Headers
NameDescription
Idempotency-KeyRequired for POST requests. 1 to 255 printable ASCII characters. A retry with the same key and body within 24 hours returns the first response.
Body parameters
NameDescription
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
customer_idID of the customer
Response
Returns 200 OK. Requirements met and pending
NameDescription
dataShow 5 child attributesobject
customer_ideligibleTrue when nothing is pending. For
virtual_cards it stays false until activation, because the pending provider_data items are the fields you send to activate.feature_idrequirements_fulfilledShow 3 child attributesobject[]
typePossible values:
kyc_status, provider_datavaluefulfilled_atTime in RFC 3339 format for KYC. Empty for other types.
requirements_pendingShow 4 child attributesobject[]
typePossible values:
kyc_status, provider_data, documentrequiredWhat is needed
currentThe current KYC status, for
kyc_statusactionHow to meet the requirement. For
provider_data it names the data_key to send in provider_data when you activate. For kyc_status it points to v1/risk/start-kyc.Show 6 child attributesobject
typedata_keyfield_typeurlmethoddescriptionerrorErrors
| Status | Meaning |
|---|---|
| 200 | Requirements met and pending |
| 400 | Invalid customer, or the check failed. An unknown feature_id and a customer with no KYC record both give the generic message. |
Was this page helpful? Yes No
Previous
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/risk/features/eligibility' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: activate-cards-302dabcb-1' \
--header 'Content-Type: application/json' \
--data '{
"feature_id": "virtual_cards",
"customer_id": "5793f1ea-91f0-4892-9705-d37e0592dd3a"
}'
const response = await fetch('https://api.gravv.xyz/v1/risk/features/eligibility', {
method: 'POST',
headers: {
'Api-Key': '<api-key>',
'Idempotency-Key': 'activate-cards-302dabcb-1',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"feature_id": "virtual_cards",
"customer_id": "5793f1ea-91f0-4892-9705-d37e0592dd3a"
}),
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/risk/features/eligibility"
headers = {
"Api-Key": "<api-key>",
"Idempotency-Key": "activate-cards-302dabcb-1",
}
payload = {
"feature_id": "virtual_cards",
"customer_id": "5793f1ea-91f0-4892-9705-d37e0592dd3a",
}
response = requests.post(url, headers=headers, json=payload)
print(response.status_code)
print(response.json())
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
payload := []byte(`{
"feature_id": "virtual_cards",
"customer_id": "5793f1ea-91f0-4892-9705-d37e0592dd3a"
}`)
req, err := http.NewRequest("POST", "https://api.gravv.xyz/v1/risk/features/eligibility", bytes.NewReader(payload))
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
req.Header.Set("Idempotency-Key", "activate-cards-302dabcb-1")
req.Header.Set("Content-Type", "application/json")
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 "json"
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/risk/features/eligibility")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Post.new(uri)
request["Api-Key"] = "<api-key>"
request["Idempotency-Key"] = "activate-cards-302dabcb-1"
request["Content-Type"] = "application/json"
request.body = JSON.generate({
"feature_id" => "virtual_cards",
"customer_id" => "5793f1ea-91f0-4892-9705-d37e0592dd3a",
})
response = http.request(request)
puts response.code
puts response.body
<?php
$payload = [
'feature_id' => 'virtual_cards',
'customer_id' => '5793f1ea-91f0-4892-9705-d37e0592dd3a',
];
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/risk/features/eligibility',
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
'Idempotency-Key: activate-cards-302dabcb-1',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode($payload),
]);
$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 {
String payload = """
{
"feature_id": "virtual_cards",
"customer_id": "5793f1ea-91f0-4892-9705-d37e0592dd3a"
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/risk/features/eligibility"))
.header("Api-Key", "<api-key>")
.header("Idempotency-Key", "activate-cards-302dabcb-1")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(payload))
.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.Post, "https://api.gravv.xyz/v1/risk/features/eligibility");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
request.Headers.TryAddWithoutValidation("Idempotency-Key", "activate-cards-302dabcb-1");
request.Content = new StringContent(
"""
{
"feature_id": "virtual_cards",
"customer_id": "5793f1ea-91f0-4892-9705-d37e0592dd3a"
}
""",
Encoding.UTF8,
"application/json");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400OK
{
"data": {
"customer_id": "5793f1ea-91f0-4892-9705-d37e0592dd3a",
"eligible": true,
"feature_id": "usd_account",
"requirements_fulfilled": [
{
"type": "kyc_status",
"value": "completed",
"fulfilled_at": "2026-10-13T10:01:02Z"
}
],
"requirements_pending": []
},
"error": null
}
{
"data": null,
"error": "Failed to check feature eligibility"
}