Aller au contenu

Qualifier fiscalement l'attrition d'un mandat (clause pénale / complément de prix)

PUT
/v1/operating-mandates/{mandateId}/attrition-fiscal-config
curl --request PUT \
--url https://example.com/v1/operating-mandates/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/attrition-fiscal-config \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "attritionNature": "out_of_scope", "vatRate": "10.00", "accountCode": "example", "effectiveFrom": "2026-04-15" }'

Append-only, effective-dated. out_of_scope = hors-champ TVA (aucun taux) ; taxable = taux hébergement requis (10.00/20.00). Prérequis fail-closed du cutoff.

mandateId
required
string format: uuid

Identifiant du mandat d’exploitation (périmètre fiscal)

Media type application/json
object
attritionNature
required
string
Allowed values: out_of_scope taxable
vatRate

Requis SSI taxable ; interdit si out_of_scope

string
Allowed values: 10.00 20.00
accountCode

Override plan comptable (cabinet), optionnel

string
effectiveFrom
required

Date d’effet (AAAA-MM-JJ)

string format: date

Config fiscale posée

Media type application/json
object
data
required
object
operatingMandateId
required
string format: uuid
effectiveFrom
required
string format: date
Example generated
{
"data": {
"operatingMandateId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"effectiveFrom": "2026-04-15"
}
}

Nature/taux incohérent ou date invalide

Media type application/json
object
code
required

Code machine de l’erreur

string
message
required

Message lisible

string
origin

Origine domaine de l’erreur (optionnel)

object
boundedContext
string
module
string
status
required
integer
traceId
required

Identifiant de corrélation pour le support

string
Example
{
"code": "RESERVATION_NOT_FOUND",
"message": "Réservation introuvable",
"status": 404
}

Non authentifié

Media type application/json
object
code
required

Code machine de l’erreur

string
message
required

Message lisible

string
origin

Origine domaine de l’erreur (optionnel)

object
boundedContext
string
module
string
status
required
integer
traceId
required

Identifiant de corrélation pour le support

string
Example
{
"code": "RESERVATION_NOT_FOUND",
"message": "Réservation introuvable",
"status": 404
}

Permission refusée (allotment.fiscal-config)

Media type application/json
object
code
required

Code machine de l’erreur

string
message
required

Message lisible

string
origin

Origine domaine de l’erreur (optionnel)

object
boundedContext
string
module
string
status
required
integer
traceId
required

Identifiant de corrélation pour le support

string
Example
{
"code": "RESERVATION_NOT_FOUND",
"message": "Réservation introuvable",
"status": 404
}