Create new provider config
API to create a new payment config for given location
POST
/
payments
/
custom-provider
/
connect
Create new provider config
curl --request POST \
--url https://services.leadconnectorhq.com/payments/custom-provider/connect \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"live": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
},
"test": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
}
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
live: {apiKey: 'y5ZQxryRFXZHvUJZdLeXXXXX', publishableKey: 'rzp_test_zPRoVMLOa0XXXX'},
test: {apiKey: 'y5ZQxryRFXZHvUJZdLeXXXXX', publishableKey: 'rzp_test_zPRoVMLOa0XXXX'}
})
};
fetch('https://services.leadconnectorhq.com/payments/custom-provider/connect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/payments/custom-provider/connect"
payload = {
"live": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
},
"test": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
}
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"name": "Company Paypal Integration",
"description": "This payment gateway supports payments in India via UPI, Net banking, cards and wallets.",
"paymentsUrl": "https://testpayment.paypal.com",
"queryUrl": "https://testsubscription.paypal.com",
"imageUrl": "https://testsubscription.paypal.com",
"_id": "662a44ad19a2a44d3cd9d749",
"locationId": "Lk3nlfk4lxlelVEwcW",
"marketplaceAppId": "65f0b217a05c774da7f1efa5",
"deleted": true,
"createdAt": "2023-11-20T10:23:36.515Z",
"updatedAt": "2024-01-23T09:57:04.846Z",
"paymentProvider": "{ live: { liveMode: true }, test: { liveMode: false, apiKey: \"y5ZQxryRFXZHvUJZdLXXXXXX\", publishableKey: \"rzp_test_zPRoVMLOa0A9wo\" }}",
"traceId": "302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Response
Successful response
Last modified on March 8, 2026
Was this page helpful?
Create new provider config
curl --request POST \
--url https://services.leadconnectorhq.com/payments/custom-provider/connect \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"live": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
},
"test": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
}
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({
live: {apiKey: 'y5ZQxryRFXZHvUJZdLeXXXXX', publishableKey: 'rzp_test_zPRoVMLOa0XXXX'},
test: {apiKey: 'y5ZQxryRFXZHvUJZdLeXXXXX', publishableKey: 'rzp_test_zPRoVMLOa0XXXX'}
})
};
fetch('https://services.leadconnectorhq.com/payments/custom-provider/connect', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://services.leadconnectorhq.com/payments/custom-provider/connect"
payload = {
"live": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
},
"test": {
"apiKey": "y5ZQxryRFXZHvUJZdLeXXXXX",
"publishableKey": "rzp_test_zPRoVMLOa0XXXX"
}
}
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"name": "Company Paypal Integration",
"description": "This payment gateway supports payments in India via UPI, Net banking, cards and wallets.",
"paymentsUrl": "https://testpayment.paypal.com",
"queryUrl": "https://testsubscription.paypal.com",
"imageUrl": "https://testsubscription.paypal.com",
"_id": "662a44ad19a2a44d3cd9d749",
"locationId": "Lk3nlfk4lxlelVEwcW",
"marketplaceAppId": "65f0b217a05c774da7f1efa5",
"deleted": true,
"createdAt": "2023-11-20T10:23:36.515Z",
"updatedAt": "2024-01-23T09:57:04.846Z",
"paymentProvider": "{ live: { liveMode: true }, test: { liveMode: false, apiKey: \"y5ZQxryRFXZHvUJZdLXXXXXX\", publishableKey: \"rzp_test_zPRoVMLOa0A9wo\" }}",
"traceId": "302d2cf4-1ba0-4bf5-bc3b-f8fa76fda58a"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}