Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Card KYC Start server-to-server cardholder KYC verification

Start server-to-server cardholder KYC verification

Sends the documents you uploaded for a cardholder for review. This is step 2 of server-to-server card KYC.

POSThttps://api.gravv.xyz/v1/risk/start-kyc-s2sTry it
Api-Key

Sends the documents you uploaded for a cardholder for review. This is step 2 of server-to-server card KYC.

Three outcomes return HTTP 200, so check data.status and data.code: pending (sent for review), partial_success (the customer finishes on web_url), or a code of MISSING_DOCUMENTS or KYC_ALREADY_COMPLETED.

This flow records no liveness check, so card activation will ask for one. Other errors are HTTP 400.

Headers

NameDescription
Idempotency-Key:stringRequired
Required 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
customer_id:stringRequired
ID of the customer to verify. Upload the required documents for this customer first.

Response

Returns 200 OK. Sent for review, partly sent, or a coded result

NameDescription
data:oneOfRequired
One of the following variants:
Show 9 child attributesoneOf
error:nullRequired

Errors

StatusMeaning
200Sent for review, partly sent, or a coded result
400Any other error
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/risk/start-kyc-s2s' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: card-kyc-b84d9a52-attempt-1' \
--header 'Content-Type: application/json' \
--data '{
"customer_id": "aabe0a33-6716-42e2-bbca-7abf1a8bd91c"
}'
Responseapplication/json
200400OK
{
"data": {
"status": "pending",
"applicant_id": "66f0c2a1b3d4e5f6a7b8c9d0",
"message": "KYC verification initiated. Status will be updated via webhook."
},
"error": null
}