KYC overview
Verify customers and retrieve verification status.
Use the KYC API to start customer verification, upload supporting documents, and retrieve verification documents or status.
Verification flows
Gravv supports two verification flows:
POST /v1/customers/kyc/start. The customer completes verification on a hosted page. This is the simplest integration.In both flows, the outcome is the customer's basic KYC status. Read kyc on GET /v1/customers/{customer_id}, or subscribe to customer KYC webhook events. While the review runs, GET /v1/customers/{customer_id}/kyc/status shows its current state. Errors are strings that start with a code, such as INVALID_REQUEST: ….
For business customers, complete KYC verification for every associated person before you start the business's own verification. Otherwise the start returns ASSOCIATED_PERSONS_INCOMPLETE. Business documents use idDocType COMPANY_DOC with four sub-types. See KYC.
Step errors
When you skip a step or call one out of order, the error code names the step, and the message names the customer, what is missing and the next call to make.
| Code | HTTP | Returned by | Meaning |
|---|---|---|---|
DOCUMENTS_MISSING | 400 | start-s2s | Required documents are missing. The message lists each one with its idDocType and idDocSubType |
ASSOCIATED_PERSONS_INCOMPLETE | 400 | start, start-s2s | A business has associated persons whose KYC is not completed. The message names each person and the step they need, and on start-s2s also lists any company documents still missing |
KYC_IN_PROGRESS | 409 | start-s2s | The review of an earlier submission is still running. Poll kyc/status instead of starting again |
SUBMISSION_INCOMPLETE | 400 | start-s2s | The review refused the submission. The message gives the reason, and KYC stays unsubmitted |
DOCUMENT_REJECTED | 400 | start-s2s | The review refused one uploaded file. The message names it, with its document_id and the reason |
KYC_ALREADY_COMPLETED | 409, or 404 on kyc/status | start-s2s, upload-document, kyc/status | The customer is already verified. On kyc/status, KYC was completed by automatic document verification, with no review to report |
INVALID_DOCUMENT_TYPE | 400 | upload-document | The idDocType is unknown or REGISTRATION_CERTIFICATE, or the idDocSubType doesn't fit it |
DOCUMENT_TYPE_NOT_ALLOWED | 400 | upload-document | The document belongs on another customer, such as a passport on a business |
KYC_NOT_INITIATED | 404 | kyc/status | No verification has been submitted for the customer yet |
Endpoints
| Endpoint | Description |
|---|---|
POST /v1/customers/kyc/start | Start hosted KYC verification for a customer |
POST /v1/customers/kyc/upload-document | Upload a base64-encoded KYC document (S2S step 1) |
POST /v1/customers/kyc/start-s2s | Start server-to-server verification using uploaded documents (S2S step 2) |
GET /v1/customers/{customer_id}/kyc/documents | List a customer's uploaded documents with metadata |
GET /v1/customers/{customer_id}/kyc/documents/{document_id}/download | Download one side of one document as a data URI, for a compliance review. A scoped key needs customer:update. See Download KYC documents |
GET /v1/customers/{customer_id}/kyc/status | Get the current review status and result |
Reading verification status
| Field | While in review | After review |
|---|---|---|
reviewStatus | pending | completed |
reviewResult | omitted | contains the decision |
Authentication
All requests use https://api.gravv.xyz/v1/ and authenticate with the Api-Key header. See Authentication for details.