List currencies
curl --request GET \
--url https://api.1-news.app/v1/projects/{projectId}/payments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": "<string>",
"currencies": [
{}
],
"defaultCurrency": "<string>"
}Payments
List currencies
List the currencies the active reader payment account can charge.
GET
/
v1
/
projects
/
{projectId}
/
payments
List currencies
curl --request GET \
--url https://api.1-news.app/v1/projects/{projectId}/payments \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": "<string>",
"currencies": [
{}
],
"defaultCurrency": "<string>"
}Read the currencies on the active Stripe or Paystack account. You need the payments tool. When no gateway is active, provider is empty and currencies is an empty list.