Disconnect a gateway
curl --request DELETE \
--url https://api.1-news.app/v1/projects/{projectId}/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>"
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/payments"
payload = { "provider": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"promoted": {},
"message": "<string>"
}Payments
Disconnect a gateway
Remove a Stripe or Paystack account from a newsroom.
DELETE
/
v1
/
projects
/
{projectId}
/
payments
Disconnect a gateway
curl --request DELETE \
--url https://api.1-news.app/v1/projects/{projectId}/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"provider": "<string>"
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({provider: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.1-news.app/v1/projects/{projectId}/payments"
payload = { "provider": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"promoted": {},
"message": "<string>"
}Disconnect one reader payment account. If it was active and the other account is connected, that other account becomes active. You need the payments tool.
The gateway that became active, or empty when nothing was promoted. Fields are provider, status, isActive, secretLast4, webhookToken, and webhookAcknowledged.