Preview the next invoice number
curl --request GET \
--url https://api.talescria.com/v1/invoices/next-number \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talescria.com/v1/invoices/next-number"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talescria.com/v1/invoices/next-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"number": "INV-0002"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Invoices
Preview the next invoice number
The number the next invoice is likely to get. It isn’t reserved.
Requires the invoices:read scope.
GET
/
v1
/
invoices
/
next-number
Preview the next invoice number
curl --request GET \
--url https://api.talescria.com/v1/invoices/next-number \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.talescria.com/v1/invoices/next-number"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talescria.com/v1/invoices/next-number', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"number": "INV-0002"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}