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

Start server-to-server KYC verification

Sends the documents you uploaded for review, with no hosted page. This is step 2 of server-to-server verification. Upload every required document first.

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

Sends the documents you uploaded for review, with no hosted page. This is step 2 of server-to-server verification. Upload every required document first.

For a business, every associated person must complete verification first, and the business needs each COMPANY_DOC subtype. Gravv sends the result in the customer.kyc.status.* webhooks.

When a step is missing, the error names it and the call that fixes it. DOCUMENTS_MISSING names the customer (an associated person together with its business) and lists each missing document with its idDocType and idDocSubType. For a business, ASSOCIATED_PERSONS_INCOMPLETE names every associated person whose KYC is not completed, with their step: no documents uploaded, not started, waiting for review, or rejected with the reviewer's remark. The same message lists any company documents the business still lacks.

A repeat call while the review is running returns 409 KYC_IN_PROGRESS. At any other time, a repeat call submits again. If the review refuses the submission, the call returns 400 SUBMISSION_INCOMPLETE or DOCUMENT_REJECTED with the reason, and the KYC stays unsubmitted so you can fix it and start again. Gravv replays a 4xx response for the same Idempotency-Key, so use a new key after you fix the step.

This flow records no liveness check. A customer verified this way must still complete a liveness step before a card can be issued.

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. Documents sent for review, or verification completed at once

NameDescription
data:objectRequired
Show 2 child attributesobject
error:nullRequired

Errors

StatusMeaning
200Documents sent for review, or verification completed at once
400Invalid request, a missing step, or a submission the review refused
404Customer or KYC record not found
409KYC is already completed for this customer, the review of an earlier submission is still running (review status queued, pending or prechecked), or a request with the same Idempotency-Key is still running.
422The Idempotency-Key was used before with a different body.
500The documents or the review request could not be sent. The KYC stays unsubmitted. Retry with the same Idempotency-Key.
503The service is not configured or not reachable. Retry later.
Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request POST \
--url 'https://api.gravv.xyz/v1/customers/kyc/start-s2s' \
--header 'Api-Key: <api-key>' \
--header 'Idempotency-Key: kyc-start-b84d9a52-attempt-1' \
--header 'Content-Type: application/json' \
--data '{
"customer_id": "aabe0a33-6716-42e2-bbca-7abf1a8bd91c"
}'
Responseapplication/json
200400404409422500503OK
{
"data": {
"status": "pending",
"message": "KYC verification initiated. Status will be updated via webhook."
},
"error": null
}