Disconnect existing provider config
API to disconnect an existing payment config for given location
POST
/
payments
/
custom-provider
/
disconnect
Disconnect existing provider config
curl --request POST \
--url https://services.leadconnectorhq.com/payments/custom-provider/disconnect \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"liveMode": "true"
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({liveMode: 'true'})
};
fetch('https://services.leadconnectorhq.com/payments/custom-provider/disconnect', 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/disconnect"
payload = { "liveMode": "true" }
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": "true"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Body
application/json
Last modified on March 8, 2026
Was this page helpful?
Disconnect existing provider config
curl --request POST \
--url https://services.leadconnectorhq.com/payments/custom-provider/disconnect \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"liveMode": "true"
}
'const options = {
method: 'POST',
headers: {Version: '<version>', 'Content-Type': 'application/json'},
body: JSON.stringify({liveMode: 'true'})
};
fetch('https://services.leadconnectorhq.com/payments/custom-provider/disconnect', 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/disconnect"
payload = { "liveMode": "true" }
headers = {
"Version": "<version>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": "true"
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}