Retrieve not seen invoices
Information
This API allow you to get all invoices not seen yet
Link to swaggerThis endpoint is
synchronous
The role
user
is needed in order to use this endpointEndpoints
GET/v1/invoice/notSeen
No parameters
Request
GET /v1/invoice/notSeen
- bash
- javascript
- .NET
curl -X 'GET'
'https://api.ppd.iopole.fr//v1/invoice/notSeen'
-H 'accept: application/json'
-H 'Authorization: Bearer ${token}'
const got = require('got');
const token = 'your_token_here';
(async () => {
try {
const response = await got(`https://api.ppd.iopole.fr//v1/invoice/notSeen`, {
headers: {
'accept': 'application/json',
'Authorization': `Bearer ${token}`,
},
responseType: 'json',
});
console.log(response.body);
} catch (error) {
console.error(error.response.body);
}
})();
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var token = "your_token_here";
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("accept", "application/json");
client.DefaultRequestHeaders.Add("Authorization", "Bearer ${token}");
try
{
var response = await client.GetAsync("https://api.ppd.iopole.fr//v1/invoice/notSeen");
response.EnsureSuccessStatusCode();
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);
}
catch (HttpRequestException ex)
{
Console.WriteLine("Request error: {ex.Message}");
}
}
}
Response
200 OK
[
"f27e51ff-9313-4545-8434-bcf19d0f5efd",
"bce56a88-0249-4b2c-9009-0cba857a69a1",
"f627d497-15f7-43f0-8598-cb37aa2759b6",
"60186e2e-63fc-4431-b528-fb1c1b3574af",
"fd7f1624-ee86-46db-8d8c-aa0012d7345d",
"32c9aec1-e6d6-4ddf-82a0-42dfa29268f8",
"5e80a8b6-06b5-4c52-853a-c5c2e252a2fc",
"f7f5b606-93bd-4771-a982-4697b04d8e1d",
"0a17f8b9-1674-47b1-ae7c-740e8c6e92c9",
"d7bdfce6-e97f-46c5-8cd7-628e96ea12b5",
"04628489-a5c0-4c01-b88d-1d9196d6109b"
]