Submit L1 or L2 supplement answers as parameters
On behalf of a member ·
x-on-behalf-of required
Requires x-idempotency-key
Submit answers by template index. text is at most 500 characters; photo is a file_url uploaded by this member through /v1/kyc/files. The case is valid for 14 days after creation. Maximum JSON size: 128 KiB. Success sends the supplements for review.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | Required |
Request Headers
| Field | Type | Required | Description |
|---|---|---|---|
x-on-behalf-of |
string | Required | |
x-idempotency-key |
string | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
answers |
object[] | Required | |
answers.index |
integer | Required | The template index; duplicates are not allowed. |
answers.value |
string | Required | Text or an uploaded file_url. |
Response
200Case and application updated atomically; awaiting review.
{
"id": "ksup_456",
"level": "L2",
"status": "submitted"
}400invalid_fields / invalid_request / state_invalid
403insufficient_scope
404not_found / member_not_found
409idempotency_key_reused / idempotency_in_progress
Request
curl -X POST 'https://api.zinfra.vip/v1/kyc/supplements/{id}' \
-H 'x-auth-token: Bearer $TOKEN' \
-H 'x-on-behalf-of: $MEMBER_ID' \
-H 'x-idempotency-key: $IDEMPOTENCY_KEY' \
-H 'content-type: application/json' \
-d '{
"answers": []
}'const res = await fetch("https://api.zinfra.vip/v1/kyc/supplements/{id}", {
method: "POST",
headers: {
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
"x-idempotency-key": "$IDEMPOTENCY_KEY",
"content-type": "application/json",
},
body: JSON.stringify({
"answers": []
}),
});
// Keep monetary amounts as strings, never numbers.
const data = await res.json();import requests
res = requests.post(
"https://api.zinfra.vip/v1/kyc/supplements/{id}",
headers={
"x-auth-token": "Bearer $TOKEN",
"x-on-behalf-of": "$MEMBER_ID",
"x-idempotency-key": "$IDEMPOTENCY_KEY",
"content-type": "application/json",
},
json={
"answers": []
},
)
# Use Decimal(str(...)) for amounts, not float.
data = res.json()req, _ := http.NewRequest("POST", "https://api.zinfra.vip/v1/kyc/supplements/{id}",
strings.NewReader(`{
"answers": []
}`))
req.Header.Set("x-auth-token", "Bearer $TOKEN")
req.Header.Set("x-on-behalf-of", "$MEMBER_ID")
req.Header.Set("x-idempotency-key", "$IDEMPOTENCY_KEY")
req.Header.Set("content-type", "application/json")
res, err := http.DefaultClient.Do(req)
// Decode amount fields as string, not float64.HttpRequest req = HttpRequest.newBuilder()
.uri(URI.create("https://api.zinfra.vip/v1/kyc/supplements/{id}"))
.header("x-auth-token", "Bearer $TOKEN")
.header("x-on-behalf-of", "$MEMBER_ID")
.header("x-idempotency-key", "$IDEMPOTENCY_KEY")
.header("content-type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"answers": []
}
"""))
.build();
// Use String / BigDecimal for amounts, not double.$ch = curl_init('https://api.zinfra.vip/v1/kyc/supplements/{id}');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'x-auth-token: Bearer $TOKEN',
'x-on-behalf-of: $MEMBER_ID',
'x-idempotency-key: $IDEMPOTENCY_KEY',
'content-type: application/json',
],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"answers": []
}
JSON,
]);
$res = curl_exec($ch);
// Use bcmath / strings for amounts, not floatval.
200
{
"id": "ksup_456",
"level": "L2",
"status": "submitted"
}