You need to use Partner Auth credentials to accept payments from customers on behalf of your sub-merchants. You can use these Razorpay products to accept payments:
Use the Partner credentials as described in the
.
Watch this video to see how to access your Partner credentials.
VIDEO
Handy Tips
We use Basic Auth
for authorising Partner requests.
These credentials are mode-specific. In addition to the API Key ID and Secret, provide the sub-merchant identification in the API requests.
The way to use Partner Auth differs on the basis of the HTTP methods/verbs.
To your API request:
Add the basic auth with partner credentials.
Add the account_id
of the sub-merchant using X-Razorpay-Account
in the header.
curl -u [ CLIENT_ID ] : [ CLIENT_SECRET ] \
-X GET https://api.razorpay.com/v1/orders \
-H "Content-Type: application/json" \
-H "X-Razorpay-Account: acc_Ef7ArAsdU5t0XL" \
To your API request:
Add the basic auth with partner credentials.
Add the account_id
of the sub-merchant using X-Razorpay-Account
in the header.
curl -u [ CLIENT_ID ] : [ CLIENT_SECRET ] \
-X POST https://api.razorpay.com/v1/orders \
-H "Content-Type: application/json" \
-H "X-Razorpay-Account: acc_Ef7ArAsdU5t0XL" \