Skip to content

Initiate server-to-server KYC verification

POSThttps://api.gravv.xyz/v1/risk/start-kyc-s2s

Initiates KYC verification for a customer using previously uploaded documents in a server-to-server (s2s) flow. This is step 2 of the S2S KYC process. Before calling this endpoint, you must first upload all required documents using the Upload Document endpoint.

Possible outcomes

The following are the possible outcomes:

  • Full success: All documents uploaded and verification initiated

  • Missing documents: Returns error with list of missing required documents

  • Partial success: Some documents failed to upload, returns WebSDK link for customer to complete manually

Body Params

  • customer_idstringrequired

    Customer ID to initiate KYC verification for. Documents must be uploaded for this customer before calling this endpoint.

Headers

  • Idempotency-Keystring

    A unique key to prevent duplicate requests.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/risk/start-kyc-s2s' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"customer_id": "aabe0a33-6716-42e2-bbca-7abf1a8bd91c"
}'
{
"data": {
"status": "success",
"applicant_id": "apl_example_123"
},
"error": null
}