How-to task page: guide the user through re-verification after documents / KYC data expire (kycApplyMode=H5-RENEWAL / guide page type=8). Entry point is kycRenewalRequired=true; organized as a two-step flow, including the retry loop after a rejection and when the restriction is lifted.
Identity documents and KYC data both have an expiry. Once they expire the user must complete verification again for the account to stay compliant and keep spending normally. DCS notifies you proactively when it detects an expiry; all you have to do is guide the user to re-capture their documents and selfie on a DCS-hosted H5 page.Renewal reuses the same two-step H5 KYC flow; the only differences are that the application mode is H5-RENEWAL and the guide page type is type=8.
You receive the user-level KYC webhook with kycRenewalRequired=true.
The webhook’s kycRenewalType states which factors need renewing (POI proof of identity / SELFIE), which you can use to prompt for only that item in your front end.
Until the renewal completes, some of the user’s operations (such as spending) may be restricted. Guide the user through it as early as possible.
A renewal can be rejected. Once rejected the ticket is terminal, but the user still needs to renew (kycRenewalRequired remains true); apply for a new ticket to let them retry until it passes and kycRenewalRequired becomes false.
This step synchronously checks that the user really does need to renew. If they do not (kycRenewalRequired is not true), no ticket is created and DAPI_KYC_RENEWAL_NOT_REQUIRED is returned. Confirm first via Query a user’s KYC information or the webhook.
Only one in-progress (INIT) renewal ticket is allowed per user at a time; you can apply again only after the previous one reaches a terminal state (PASSED / REJECTED).
Error page to redirect to when the renewal fails. Required for type=8; omitting it returns DAPI_SYS_ILLEGAL_PARAM
language
string
Yes
Length 2
zh / en; non-zh countries are uniformly mapped to en
theme
string
Yes
≤10
Such as default
mode
string
Yes
≤10
light / dark
userAgent
string
Yes
≤300
User browser UA
successfulRedirectUrl
string
No
≤200
Redirect address on success
submitAutoClosed
string
No
≤1
Y closes the page automatically after a successful submission / N does not
primaryColor
string
No
≤7
Main colour, such as #FFFFFF
type=8 does not need profileId (that is required only for type=7, apply for KYC-H5).
The response data is a string — the H5 URL you hand to the user. The link has a limited lifetime; if it expires while the ticket is still INIT, call this endpoint again for a fresh link — you do not need to apply for a new ticket.