POST api/ConsommationV2

Permet d'obtenir les consommations par identifiant API.

Request Information

URI Parameters

None.

Body Parameters

ParamModel
NameDescriptionTypeAdditional information
Debut

Date de début de période (AAAA-MM-JJ)

date

None.

Fin

Date de fin de période (AAAA-MM-JJ)

date

None.

ProduitId

Permet de filtrer sur un produit en particulier, si pas de valeur on renvoie les consommations de tous les produits

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Debut": "2026-03-22T00:33:32.0494548+01:00",
  "Fin": "2026-03-22T00:33:32.0494548+01:00",
  "ProduitId": 1
}

application/xml, text/xml

Sample:
<ParamModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Facturation.Api.Models">
  <Debut>2026-03-22T00:33:32.0494548+01:00</Debut>
  <Fin>2026-03-22T00:33:32.0494548+01:00</Fin>
  <ProduitId>1</ProduitId>
</ParamModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of ReponseV2Model
NameDescriptionTypeAdditional information
ProduitId

Identifiant du produit

integer

None.

NomProduit

Nom du produit

string

None.

Identifiant

Identifiant User

string

None.

ConsommationsSomme

Consommations totales par compteur sur la période

Collection of CompteurModel

None.

ConsommationsDetails

Consommations détaillées par dossier et par compteur sur la période

Collection of ConsoV2Model

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ProduitId": 1,
    "NomProduit": "sample string 2",
    "Identifiant": "sample string 3",
    "ConsommationsSomme": [
      {
        "Sequence": 1,
        "Libelle": "sample string 2",
        "Quantite": 3
      },
      {
        "Sequence": 1,
        "Libelle": "sample string 2",
        "Quantite": 3
      }
    ],
    "ConsommationsDetails": [
      {
        "Dossier": "sample string 1",
        "DateDossier": "2026-03-22T00:33:32.2894565+01:00",
        "Identifiant": "sample string 3",
        "Compteur": [
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          },
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          }
        ]
      },
      {
        "Dossier": "sample string 1",
        "DateDossier": "2026-03-22T00:33:32.2894565+01:00",
        "Identifiant": "sample string 3",
        "Compteur": [
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          },
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          }
        ]
      }
    ]
  },
  {
    "ProduitId": 1,
    "NomProduit": "sample string 2",
    "Identifiant": "sample string 3",
    "ConsommationsSomme": [
      {
        "Sequence": 1,
        "Libelle": "sample string 2",
        "Quantite": 3
      },
      {
        "Sequence": 1,
        "Libelle": "sample string 2",
        "Quantite": 3
      }
    ],
    "ConsommationsDetails": [
      {
        "Dossier": "sample string 1",
        "DateDossier": "2026-03-22T00:33:32.2894565+01:00",
        "Identifiant": "sample string 3",
        "Compteur": [
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          },
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          }
        ]
      },
      {
        "Dossier": "sample string 1",
        "DateDossier": "2026-03-22T00:33:32.2894565+01:00",
        "Identifiant": "sample string 3",
        "Compteur": [
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          },
          {
            "Sequence": 1,
            "Libelle": "sample string 2",
            "Quantite": 3
          }
        ]
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfReponseV2Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Facturation.Api.Models">
  <ReponseV2Model>
    <ConsommationsDetails>
      <ConsoV2Model>
        <Compteur>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
        </Compteur>
        <DateDossier>2026-03-22T00:33:32.2894565+01:00</DateDossier>
        <Dossier>sample string 1</Dossier>
        <Identifiant>sample string 3</Identifiant>
      </ConsoV2Model>
      <ConsoV2Model>
        <Compteur>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
        </Compteur>
        <DateDossier>2026-03-22T00:33:32.2894565+01:00</DateDossier>
        <Dossier>sample string 1</Dossier>
        <Identifiant>sample string 3</Identifiant>
      </ConsoV2Model>
    </ConsommationsDetails>
    <ConsommationsSomme>
      <CompteurModel>
        <Libelle>sample string 2</Libelle>
        <Quantite>3</Quantite>
        <Sequence>1</Sequence>
      </CompteurModel>
      <CompteurModel>
        <Libelle>sample string 2</Libelle>
        <Quantite>3</Quantite>
        <Sequence>1</Sequence>
      </CompteurModel>
    </ConsommationsSomme>
    <Identifiant>sample string 3</Identifiant>
    <NomProduit>sample string 2</NomProduit>
    <ProduitId>1</ProduitId>
  </ReponseV2Model>
  <ReponseV2Model>
    <ConsommationsDetails>
      <ConsoV2Model>
        <Compteur>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
        </Compteur>
        <DateDossier>2026-03-22T00:33:32.2894565+01:00</DateDossier>
        <Dossier>sample string 1</Dossier>
        <Identifiant>sample string 3</Identifiant>
      </ConsoV2Model>
      <ConsoV2Model>
        <Compteur>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
          <CompteurModel>
            <Libelle>sample string 2</Libelle>
            <Quantite>3</Quantite>
            <Sequence>1</Sequence>
          </CompteurModel>
        </Compteur>
        <DateDossier>2026-03-22T00:33:32.2894565+01:00</DateDossier>
        <Dossier>sample string 1</Dossier>
        <Identifiant>sample string 3</Identifiant>
      </ConsoV2Model>
    </ConsommationsDetails>
    <ConsommationsSomme>
      <CompteurModel>
        <Libelle>sample string 2</Libelle>
        <Quantite>3</Quantite>
        <Sequence>1</Sequence>
      </CompteurModel>
      <CompteurModel>
        <Libelle>sample string 2</Libelle>
        <Quantite>3</Quantite>
        <Sequence>1</Sequence>
      </CompteurModel>
    </ConsommationsSomme>
    <Identifiant>sample string 3</Identifiant>
    <NomProduit>sample string 2</NomProduit>
    <ProduitId>1</ProduitId>
  </ReponseV2Model>
</ArrayOfReponseV2Model>