Retrieve not seen status
Information
This API allow you to get all status not seen yet
Link to swaggerThis endpoint is
synchronous
The role
user
is needed in order to use this endpointEndpoints
GET/v1/invoice/status/notSeen
No parameters
Request
GET /v1/invoice/status/notSeen
- bash
- javascript
- .NET
curl -X 'GET'
'https://api.ppd.iopole.fr//v1/invoice/status/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/status/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/status/notSeen");
response.EnsureSuccessStatusCode();
var responseString = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseString);
}
catch (HttpRequestException ex)
{
Console.WriteLine("Request error: {ex.Message}");
}
}
}
Response
200 OK
[
{
"invoiceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"newStatus": [
{
"statusId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"date": "2024-08-08T12:47:51.147Z",
"destType": "OPERATOR",
"invoiceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": {
"code": "IN_HAND",
"value": "205",
"desc": "Approuvée",
"message": "string"
},
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<rsm:CrossDomainAcknowledgementAndResponse xmlns:qdt=\"urn:un:unece:uncefact:data:standard:QualifiedDataType:131\" ...",
"json": {
"category": {
"code": "eInvoicing",
"value": "S1"
},
"context": {
"id": "LC_APPROVED_STREAM",
"name": "LifeCycle - Approuvée",
"date": "2024-07-16T20:36:31Z",
"sender": {
"name": "Iopole",
"siren": "123456789",
"siret": "12345678909090",
"roleCode": {
"code": "BUYER",
"value": "BY",
"desc": "Acheteur"
}
},
"issuer": {
"name": "Iopole",
"siren": "123456789",
"siret": "12345678909090",
"roleCode": {
"code": "BUYER",
"value": "BY",
"desc": "Acheteur"
}
},
"recipients": [
{
"name": "Iopole",
"siren": "123456789",
"siret": "12345678909090",
"roleCode": {
"code": "BUYER",
"value": "BY",
"desc": "Acheteur"
}
}
]
},
"responses": [
{
"documentReference": {
"issuerAssignedId": "F-LGjGKOUIQjgFjB",
"typeCode": "80",
"receiptDate": "2024-07-16T20:35:16Z",
"issuerTradeParty": "string"
},
"documentStatus": {
"message": "La facture est en cours de traitement par le destinataire",
"status": {
"code": "SUBMITTED",
"value": "205",
"desc": "Approuvée"
},
"details": {
"generatedDate": "2024-07-16T20:36:31Z",
"reason": "Error occurred during invoice validation process",
"documentStatusCharacteristic": [
{
"id": "BR-CO-15",
"name": "SCHEMATRON_ERROR",
"description": "[BR-CO-15]-Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).",
"location": "/*:CrossIndustryInvoice[namespace-uri()='urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100'][1]"
}
]
}
}
}
]
}
}
]
}
]