Sub-Merchant Onboarding APIs Flow
Seamlessly onboard merchants using the Sub-Merchant Onboarding APIs.
To use the Sub-Merchant Onboarding APIs, you need to enroll in the Razorpay Partner Program.
The following illustration depicts the Sub-merchant Onboarding APIs flow to help Partners onboard merchants from their platform:
Follow the steps given below:
-
Sign in to your
to obtain yourclient_id
andclient_secret
to authenticate API calls. You can obtainclient_id
andclient_secret
depending on the test mode or live mode. -
Create a webhook related to desired events such as payments, orders, invoices and so on.
-
Create an account for the sub-merchant using the
. -
An account is created and the
account_id
is provided in the response. For example,acc_Hbu4sC0O4GOGSN
. Use thisaccount_id
to fetch, update, delete the account and upload account documents. -
Use the
to add a stakeholder for an account. Each stakeholder needs to update the KYC. -
A
stakeholder_id
is provided in the response as a stakeholder is created. For example,sth_Hbu4sC0O4GOGSK
. Use this stakeholder id to complete stakeholder-related KYC details while onboarding a product. Also, use thisstakeholder_id
to fetch and update a stakeholder. -
Before activating the sub-merchant and requesting for relevant product configurations, the sub-merchant needs to view and accept Terms and Conditions. The partner can fetch Terms and Conditions links to show to the sub-merchant using
. -
As requested, the partner will get a link to the relevant Terms and Conditions.
-
Create a product (for example,
. A product is created with default configurations. To update configurations, you can use the (For Payment gateway product, settlement details (bank account) have to be sent in the Update Config API).payment_gateway
) and accept Terms and Conditions for the sub-merchant using the -
As the product is created, the
merchant_product_id
and the list of pending requirements are provided in the response. -
Cater to the pending account requirements using the
. -
As the requested account details criteria is met, an updated account response will be provided.
-
Using the
, upload the required sub-merchant's business documents. -
Once the required documents are uploaded, the uploaded details of a document (S3 URL) are provided in the response based on the entity, that is, account.
-
Fill in the stakeholder requirements using the
. For example, KYC requirements such as PAN is the type of document required to establish the stakeholder's identity. -
After the KYC requirements for a stakeholder are met, the response for the stakeholder is updated.
-
Using the
, upload the required sub-merchant's stakeholder's signatory documents. -
Once the required documents are uploaded, the uploaded document details (S3 URL) are provided in the response based on the entity, that is, stakeholder.
-
Using the
, fetch the account product. -
The
changes tounder_review
when all the requirements are met. At this point, the status for a Payment Gateway product changes tounder_review
and the webhook eventproduct.payment_gateway.under_review
is triggered. -
When the
is changed toneeds_clarification
, the webhook eventproduct.payment_gateway.needs_clarification
is triggered.Handy Tips
Repeat steps 11 to 18 till the account status changes to Terminal state (either activated or rejected).
-
The webhook event
product.payment_gateway.activated
is triggered when the Payment Gateway product status isactivated
.
Watch Out!
Currently, we do not support making concurrent requests to the following Onboarding APIs including their combination on the same account_id
:
Please wait for the response of these APIs before making subsequent requests.
Was this page helpful?
ON THIS PAGE