Open an invoice
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/billing/invoices/open \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orderId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({orderId: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/billing/invoices/open', 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}/billing/invoices/open"
payload = { "orderId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"url": "<string>"
}Billing
Open an invoice
Open the document for an invoice on your account.
POST
/
v1
/
projects
/
{projectId}
/
billing
/
invoices
/
open
Open an invoice
curl --request POST \
--url https://api.1-news.app/v1/projects/{projectId}/billing/invoices/open \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orderId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({orderId: '<string>'})
};
fetch('https://api.1-news.app/v1/projects/{projectId}/billing/invoices/open', 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}/billing/invoices/open"
payload = { "orderId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"url": "<string>"
}