When to Use
Call this endpoint after all data-collection steps are complete to obtain aredirectLink for the merchant verification iFrame. The URL loads the PayGlocal partner onboarding experience where the merchant completes T&C acknowledgement, DigiLocker, and VKYC.
Use this as step 8 in the onboarding sequence — after Configure Products and before polling Get Onboarding Status.
Preconditions
The following checklist fields must not beINCOMPLETE before calling this endpoint:
Poll
GET /status and confirm documentsToBeUploaded is empty before calling redirect.
Notes
- Authenticate with
x-gl-authandx-gl-digest— sign the raw JSON request body (same as other PUT endpoints). See Authentication. - Request field is
callBackUrl(camelCase with capital B). - Response field is
redirectLink, notredirectUrl. redirectLinkformat:{baseUrl}?token={sessionToken}&onboardingId={onboardingId}. The session token is valid for 24 hours and must not be cached or reused.callBackUrlis persisted on the merchant record and used as the post-verification redirect target. Its domain must be whitelisted.- Environment base URLs for
redirectLink:
What Happens Server-Side
- Validates the onboarding checklist via
isVerificationAllowed(). - Stores
callBackUrlon the merchant record. - Generates a single-use session token (24-hour TTL).
- Returns the composed
redirectLinkfor iFrame embedding.

