POST api/cogeo/frais
Crée un frais.
Request Information
URI Parameters
None.
Body Parameters
ApiIncomingFrais| Name | Description | Type | Additional information |
|---|---|---|---|
| IdFrais | integer |
None. |
|
| MontantHT | decimal number |
None. |
|
| MontantTTC | decimal number |
None. |
|
| Objet | string |
None. |
|
| Reference | string |
None. |
|
| IdFacture | integer |
None. |
|
| IdAffaire | integer |
None. |
|
| Date | date |
None. |
|
| DateCloture | date |
None. |
|
| IdPhase | integer |
None. |
|
| IdUtilisateur | integer |
None. |
|
| IdTempsPasse | integer |
None. |
|
| IdTypeFrais | integer |
None. |
|
| IdFournisseur | integer |
None. |
|
| PrixUnitaireHT | decimal number |
None. |
|
| PrixUnitaireTTC | decimal number |
None. |
|
| Quantite | decimal number |
None. |
|
| ProprietesModifiees | Collection of string |
None. |
Request Formats
application/json, text/json
{
"IdFrais": 1,
"MontantHT": 2.0,
"MontantTTC": 3.0,
"Objet": "sample string 4",
"Reference": "sample string 5",
"IdFacture": 1,
"IdAffaire": 1,
"Date": "2025-11-30T17:02:14.4260538+01:00",
"DateCloture": "2025-11-30T17:02:14.4260538+01:00",
"IdPhase": 1,
"IdUtilisateur": 1,
"IdTempsPasse": 1,
"IdTypeFrais": 1,
"IdFournisseur": 1,
"PrixUnitaireHT": 8.0,
"PrixUnitaireTTC": 9.0,
"Quantite": 10.0,
"ProprietesModifiees": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
<ApiIncomingFrais xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoCommunServeur.Business.Api.Incoming">
<ProprietesModifiees xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ProprietesModifiees>
<Date>2025-11-30T17:02:14.4260538+01:00</Date>
<DateCloture>2025-11-30T17:02:14.4260538+01:00</DateCloture>
<IdAffaire>1</IdAffaire>
<IdFacture>1</IdFacture>
<IdFournisseur>1</IdFournisseur>
<IdFrais>1</IdFrais>
<IdPhase>1</IdPhase>
<IdTempsPasse>1</IdTempsPasse>
<IdTypeFrais>1</IdTypeFrais>
<IdUtilisateur>1</IdUtilisateur>
<MontantHT>2</MontantHT>
<MontantTTC>3</MontantTTC>
<Objet>sample string 4</Objet>
<PrixUnitaireHT>8</PrixUnitaireHT>
<PrixUnitaireTTC>9</PrixUnitaireTTC>
<Quantite>10</Quantite>
<Reference>sample string 5</Reference>
</ApiIncomingFrais>
application/x-www-form-urlencoded
Sample not available.
multipart/form-data
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdFrais" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MontantHT" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MontantTTC" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Objet" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Reference" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdFacture" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdAffaire" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Date" 2025-11-30T17:02:14.4260538+01:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DateCloture" 2025-11-30T17:02:14.4260538+01:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdPhase" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdUtilisateur" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdTempsPasse" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdTypeFrais" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdFournisseur" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PrixUnitaireHT" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PrixUnitaireTTC" 9 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Quantite" 10 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ProprietesModifiees[0]" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ProprietesModifiees[1]" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
Retourne un ApiFrais.
ApiFrais| Name | Description | Type | Additional information |
|---|---|---|---|
| IdFrais |
Identifiant unique d'un frais |
integer |
None. |
| MontantHT |
Montant HT du frais |
decimal number |
None. |
| MontantTTC |
Montant TTC du frais |
decimal number |
None. |
| Objet |
Objet du frais |
string |
None. |
| Reference |
Numéro de la pièce du frais |
string |
None. |
| IdFacture |
Identifiant unique de la facture associée au frais |
integer |
None. |
| IdAffaire |
Identifiant unique de l'affaire associée au frais |
integer |
None. |
| Date |
Date du frais |
date |
None. |
| DateCloture |
Date de clôture du frais |
date |
None. |
| IdPhase |
Identifiant unique de la phase associée au frais |
integer |
None. |
| IdUtilisateur |
Identifiant unique de l'utilisateur associé au frais |
integer |
None. |
| IdTempsPasse |
Identifiant unique du temps passé associé au frais |
integer |
None. |
| IdTypeFrais |
Identifiant unique du type de frais |
integer |
None. |
| IdFournisseur |
Identifiant unique du fournisseur associé au frais |
integer |
None. |
| PrixUnitaireHT |
Prix unitaire HT du frais |
decimal number |
None. |
| PrixUnitaireTTC |
Prix unitaire TTC de frais |
decimal number |
None. |
| Quantite |
Quantité du frais |
decimal number |
None. |
Response Formats
application/json, text/json
{
"IdFrais": 1,
"MontantHT": 2.0,
"MontantTTC": 3.0,
"Objet": "sample string 4",
"Reference": "sample string 5",
"IdFacture": 1,
"IdAffaire": 1,
"Date": "2025-11-30T17:02:14.4416635+01:00",
"DateCloture": "2025-11-30T17:02:14.4416635+01:00",
"IdPhase": 1,
"IdUtilisateur": 1,
"IdTempsPasse": 1,
"IdTypeFrais": 1,
"IdFournisseur": 1,
"PrixUnitaireHT": 7.0,
"PrixUnitaireTTC": 8.0,
"Quantite": 9.0
}
application/xml, text/xml
<ApiFrais xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModuleoWeb.Models.Api"> <Date>2025-11-30T17:02:14.4416635+01:00</Date> <DateCloture>2025-11-30T17:02:14.4416635+01:00</DateCloture> <IdAffaire>1</IdAffaire> <IdFacture>1</IdFacture> <IdFournisseur>1</IdFournisseur> <IdFrais>1</IdFrais> <IdPhase>1</IdPhase> <IdTempsPasse>1</IdTempsPasse> <IdTypeFrais>1</IdTypeFrais> <IdUtilisateur>1</IdUtilisateur> <MontantHT>2</MontantHT> <MontantTTC>3</MontantTTC> <Objet>sample string 4</Objet> <PrixUnitaireHT>7</PrixUnitaireHT> <PrixUnitaireTTC>8</PrixUnitaireTTC> <Quantite>9</Quantite> <Reference>sample string 5</Reference> </ApiFrais>
multipart/form-data
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdFrais" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MontantHT" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="MontantTTC" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Objet" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Reference" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdFacture" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdAffaire" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Date" 2025-11-30T17:02:14.4416635+01:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="DateCloture" 2025-11-30T17:02:14.4416635+01:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdPhase" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdUtilisateur" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdTempsPasse" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdTypeFrais" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="IdFournisseur" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PrixUnitaireHT" 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="PrixUnitaireTTC" 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Quantite" 9 --MultipartDataMediaFormatterBoundary1q2w3e--