Gravv
/Docs
Search docs or ask a question⌘K
DocsAgent
ChangelogTry sandbox
Recipes Customers and KYC Resubmit KYC after a rejection

Resubmit KYC after a rejection

Read why KYC failed, then send the person back to the hosted page or replace the rejected document, without creating a new customer.

6 min read

This recipe reads why KYC failed, then sends the person back to the hosted page or replaces the rejected document, without creating a new customer.

Who it is for. This recipe is for the remittance app from Verify a person with documents you upload, after Kofi's verification came back failed because his selfie was blurred.

Status. Available. You cannot test it in sandbox today, because sandbox never records a rejection.

Money example

1.
Kofi is rejected, so he stays on the lowest limits, with a cap of 500.00 USD a day.
2.
His 800.00 USD rent payout would pause on the daily limit.
3.
He resubmits a clear selfie and is approved. His limit becomes 50,000.00 USD a day, and the 800.00 USD goes through.

Before you start

•
Kofi's basic row is failed. To check, read kyc[type=basic].status on GET /v1/customers/{customer_id}.
•
Know whether he was verified the first time on the hosted page or with documents you uploaded.

Find out what is required

1.
The reason. Read failure_reason in the customer.kyc.status.failed webhook, or remark on the basic row. It holds the reviewer's comment, the reasons as sentences, or only Verification failed.
2.
The detail. Read rejectLabels and reviewRejectType in the review status that GET /v1/customers/{customer_id}/kyc/status returns.
cURLNodePython
curl --request GET \
--url https://api.gravv.xyz/v1/customers/9d2f4b6a-1c3e-4a5b-8d7f-2e4a6c8e0b13/kyc/status \
--header 'Api-Key: <API_KEY>'
Response
{
"data": {
"reviewStatus": "completed",
"reviewResult": {
"reviewAnswer": "rejected",
"rejectLabels": ["BAD_SELFIE"],
"reviewRejectType": "RETRY"
},
"reviewDate": "2026-10-13 11:20:40+0000",
"priority": 0
},
"error": null
}
•
RETRY means the person may resubmit. Retake only what the labels name.
•
FINAL means the reviewer does not expect a resubmission to pass. Contact support rather than trying again.

Steps

If you used the hosted page

Start again with a new key. From failed, the start returns a new link, valid for 1 hour, and sets the row back to pending, with no new fee.

cURLNodePython
curl --request POST \
--url https://api.gravv.xyz/v1/customers/kyc/start \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: 2c8a4d99-2860-4d9c-bd69-a2abcc0ce82e' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "9d2f4b6a-1c3e-4a5b-8d7f-2e4a6c8e0b13"
}
'
Response
{
"data": {
"status": "success",
"review_status": "pending",
"web_url": "https://<verification-host>/websdk/p/R7u2LwQ8sd"
},
"error": null
}

Send Kofi the link. He retakes only what was rejected.

If you uploaded the documents

1.
Upload the rejected document again with the same idDocType and idDocSubType, here SELFIE. The new file replaces the old one.
cURLNodePython
curl --request POST \
--url https://api.gravv.xyz/v1/customers/kyc/upload-document \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: c5df1c69-b7f1-4abf-a416-2667956a483d' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "9d2f4b6a-1c3e-4a5b-8d7f-2e4a6c8e0b13",
"filename": "selfie-retake.jpg",
"content": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYI",
"metadata": {
"idDocType": "SELFIE"
}
}
'
2.
Start verification again with a new key. Gravv bills this start again, so first confirm that the upload replaced the right document.
cURLNodePython
curl --request POST \
--url https://api.gravv.xyz/v1/customers/kyc/start-s2s \
--header 'Api-Key: <API_KEY>' \
--header 'Idempotency-Key: a47a1d26-8526-4ea3-890b-d8e7b747c770' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "9d2f4b6a-1c3e-4a5b-8d7f-2e4a6c8e0b13"
}
'

Then wait

Wait for customer.kyc.status.completed or customer.kyc.status.failed, as you did the first time.

If the customer record was wrong

If a name, date of birth or address on the customer was wrong, fix it first with PUT /v1/customers/{customer_id}. Only the fields you send change, and you cannot blank a field. Editing the record does not reset KYC.

What can go wrong

ResponseWhyFix
The start returns the old, expired linkYou reused the first key, so Gravv replayed the stored responseUse a new key
409 KYC_ALREADY_COMPLETED: … on start-s2s or upload-documentHe was approved already, for example by an earlier retry. Once KYC is completed, his documents can't be replacedYou don't need to do anything
409 KYC_IN_PROGRESS: … on start-s2sThe review of an earlier start is still running, so Gravv refuses a second submission and does not bill itWait for its webhook, or poll GET /v1/customers/{customer_id}/kyc/status
400 DOCUMENT_REJECTED: … on start-s2sThe review refused the new file. The message names its type, its document_id and the reasonUpload a corrected file with the same idDocType and idDocSubType, then start again with a new key
400 SUBMISSION_INCOMPLETE: … on start-s2sThe review refused the submission, for example because a document it needs is missing. KYC stays unsubmittedUpload what the message asks for, then start again with a new key
The same rejection againYou sent the same file again, or replaced a different side or typeRead rejectLabels, then replace that exact type and sub-type
failed again with reviewRejectType FINALThe reviewer made a final decisionContact support. Do not keep resubmitting, because Gravv bills each server-to-server start
PUT 400 only company emails are allowed when changing an individual's emailThe company-email rule applies to individuals on update too, a known issueChange only the fields that were wrong. Contact support if the customer needs a free-mail address
PUT 400 failed to update customer: email already existsThe email belongs to another customerUse another email

Webhooks you will receive

You receive customer.kyc.status.pending on the restart, then customer.kyc.status.completed or customer.kyc.status.failed with failure_reason. See Customer and KYC events.

Testing in sandbox

You cannot test this recipe end to end in sandbox. Sandbox completes every finished review, so it never produces a failed row or a failed webhook. You can test the calls. A start from pending with a new key returns a new link.

Reference

Was this page helpful? Yes No