Skip to main content
GET
/
apps
/
gov-fr
/
v1
/
reports
/
{silo_entry_id}
/
periods
/
{period_id}
/
xml
Download a period's Flux 10 XML
curl --request GET \
  --url https://api.invopop.com/apps/gov-fr/v1/reports/{silo_entry_id}/periods/{period_id}/xml \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.invopop.com/apps/gov-fr/v1/reports/{silo_entry_id}/periods/{period_id}/xml"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.invopop.com/apps/gov-fr/v1/reports/{silo_entry_id}/periods/{period_id}/xml', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.invopop.com/apps/gov-fr/v1/reports/{silo_entry_id}/periods/{period_id}/xml",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.invopop.com/apps/gov-fr/v1/reports/{silo_entry_id}/periods/{period_id}/xml"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.invopop.com/apps/gov-fr/v1/reports/{silo_entry_id}/periods/{period_id}/xml")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.invopop.com/apps/gov-fr/v1/reports/{silo_entry_id}/periods/{period_id}/xml")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
"<string>"
{
  "error": "missing siren parameter"
}
{
  "error": "missing enrollment"
}
{
  "error": "silo entry not found"
}
{
  "error": "internal server error"
}
Available for any period status. Callers that want only finalized payloads should check the period’s status field first.

Authorizations

Authorization
string
header
required

Authenticate using a valid Invopop enrollment token in the Bearer scheme.

Example: Authorization: Bearer <token>

Path Parameters

silo_entry_id
string
required

ID of the org.Party silo entry being onboarded.

Example:

"5b45453c-cdd0-11ed-afa1-0242ac120002"

period_id
string
required

ID of the report period.

Example:

"018f9e2a-7c31-7a10-9b44-2f9d1e6c8a01"

Response

The Flux 10 XML body, served as application/xml.

The response is of type file.