> For the complete documentation index, see [llms.txt](https://docs.abby.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abby.fr/reference-de-lapi/factures.md).

# Factures

Créez, complétez, finalisez, faites payer, répétez ou annulez une facture.

Une facture est un document de facturation associé à un client : un contact ou une organisation. Elle contient des lignes et des informations générales. Utilisez ces routes pour créer une facture, régler ses paramètres, la rendre récurrente ou l'annuler. Les routes communes à tous les documents (lignes, finalisation, archivage) sont sur la page [Documents de facturation](https://docs.abby.fr/reference-de-lapi/documents-de-facturation.md).

## Comprendre le cycle de vie

Une facture suit ce chemin : brouillon (`draft`), finalisée (`finalized`), payée (`paid`).

1. Créez la facture. Elle est en brouillon.
2. Réglez ses informations générales, ses dates, sa langue et sa devise.
3. Renseignez ses lignes avec `PATCH /v2/billing/{billingId}/lines`.
4. Lisez la facture et vérifiez que `finalizable` vaut `true`.
5. Finalisez-la avec `PATCH /v2/billing/{billingId}/finalize`. Elle reçoit son numéro et son contenu n'est plus modifiable.
6. Envoyez-la au client. Voir [Envoi et téléchargement](https://docs.abby.fr/reference-de-lapi/envoi-et-telechargement.md).
7. Marquez-la comme payée. Voir [Paiements](https://docs.abby.fr/reference-de-lapi/paiements.md).

Pas à pas, avec les requêtes : [Facturer un client, du brouillon au paiement](https://docs.abby.fr/guides/facturer-un-client.md).

{% hint style="info" %}
Cinq routes spécifiques aux factures sont dépréciées : `lines`, `delivery-address`, `finalize`, `display-settings` et `bank-information`, sous `/v2/billing/invoice/{invoiceId}/`. Utilisez à la place les routes génériques `/v2/billing/{billingId}/...`. Voir [Endpoints dépréciés](https://docs.abby.fr/reference-de-lapi/endpoints-deprecies.md).
{% endhint %}

## Créer une facture

L'identifiant `customerId` est un `contactId` ou un `organizationId`. La route n'a pas de corps. Elle répond `201` avec la facture en brouillon, dont vous gardez l'`id`.

```bash
curl -X POST "https://api.abby.fr/v2/billing/invoice/$CUSTOMER_ID" \
  -H "Authorization: Bearer $ABBY_API_KEY"
```

## POST /v2/billing/invoice/{customerId}

> Create a new invoice with a customerId that can be a contactId or an organizationId

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{customerId}":{"post":{"operationId":"InvoiceController_createInvoiceByContactOrOrganizationId_v2","parameters":[{"name":"customerId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"Invoice created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"400":{"description":"Bad Request"},"401":{"description":"Unauthorized"}},"summary":"Create a new invoice with a customerId that can be a contactId or an organizationId","tags":["invoice"]}}}}
```

## Lire une facture

```bash
curl "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID" \
  -H "Authorization: Bearer $ABBY_API_KEY"
```

Les champs à surveiller sont `state`, `finalizable`, `finalizeRequirements`, `dueAt`, `paidAt`, `isOnlinePaymentActivated` et `isFinalInvoice`. Le modèle complet est ci-dessous.

## GET /v2/billing/invoice/{invoiceId}

> Get an invoice by ID

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}":{"get":{"operationId":"InvoiceController_getInvoice_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to retrieve","schema":{"type":"string"}}],"responses":{"200":{"description":"Invoice retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Get an invoice by ID","tags":["invoice"]}}}}
```

## The ReadInvoiceDto object

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"components":{"schemas":{"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}}}
```

## The ReadEstimateDto object

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"components":{"schemas":{"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]}}}}
```

## The ReadAssetDto object

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"components":{"schemas":{"ReadAssetDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"parent":{"oneOf":[{"$ref":"#/components/schemas/ReadInvoiceDto"},{"$ref":"#/components/schemas/ReadAdvanceDto"}]},"advances":{"description":"Advances deducted from the asset total (for V3+ assets from final invoice)","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"refundAt":{"type":"number"},"latePenalty":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingLatePenaltyDto"}]},"lumpSumCompensation":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"}]},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"dueAt":{"type":"number"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","lines","total","displaySettings","paymentDelay","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}}}
```

## Modifier les informations générales

Tous les champs sont facultatifs : notes d'en-tête et de pied (`headerNote`, `footerNote`), conditions générales (`generalTermsAndConditionsOfSale`), moyens de paiement acceptés (`paymentMethods`), pénalités de retard (`latePenalty`), indemnité forfaitaire (`lumpSumCompensation`), relance (`reminder`) et paiement en ligne (`isOnlinePaymentActivated`).

Sur une facture finalisée, seuls `reminder` et `isOnlinePaymentActivated` peuvent encore changer. Toute autre modification répond `400` (`billing.document.cannot_update_finalized_document`).

```bash
curl -X PATCH "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/general-informations" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "headerNote": "Merci pour votre confiance.",
    "paymentMethods": ["transfer", "credit_card"]
  }'
```

## PATCH /v2/billing/invoice/{invoiceId}/general-informations

> Update invoice general informations

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"UpdateInvoiceGeneralInformationsDto":{"type":"object","properties":{"headerNote":{"type":"string","description":"Custom note to be displayed in the header of the billing"},"footerNote":{"type":"string","description":"Custom note to be displayed in the footer of the billing"},"generalTermsAndConditionsOfSale":{"type":"string","description":"General terms and conditions of sale to be included in the billing"},"mentionMediator":{"type":"string","description":"Mention mediateur to be included in the billing"},"paymentMethods":{"type":"array","description":"Array of accepted payment methods for the billing","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"},"vatMention":{"description":"Vat mention applicable for a billing","allOf":[{"$ref":"#/components/schemas/VatMention"}]},"latePenalty":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingLatePenaltyDto"}]},"lumpSumCompensation":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"}]},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"isOnlinePaymentActivated":{"type":"boolean","description":"Indicates if online payment is activated for this invoice"},"reminder":{"description":"Reminder settings for the invoice","allOf":[{"$ref":"#/components/schemas/BillingReminderDto"}]}}},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/general-informations":{"patch":{"operationId":"InvoiceController_updateInvoiceGeneralInformations_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoiceGeneralInformationsDto"}}}},"responses":{"200":{"description":"Invoice general informations updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Update invoice general informations","tags":["invoice"]}}}}
```

## Modifier les dates

`emittedAt` (date d'émission) et `paymentDelay` (délai de paiement) sont obligatoires. Les dates sont en secondes Unix. Avec `paymentDelay` à `other`, indiquez la date d'échéance dans `customDueDate`. `deliveryDate` est facultatif.

```bash
curl -X PATCH "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/timeline" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "emittedAt": 1794960000,
    "paymentDelay": "thirty_days"
  }'
```

## PATCH /v2/billing/invoice/{invoiceId}/timeline

> Update invoice timeline

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"UpdateInvoiceTimelineDto":{"type":"object","properties":{"emittedAt":{"type":"number","description":"The timestamp when the invoice was emitted, in seconds","minimum":0,"maximum":4102444800},"paymentDelay":{"description":"The payment delay for the invoice","allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"customDueDate":{"type":"number","description":"Custom due date for the invoice when payment delay is OTHER, in seconds","minimum":0,"maximum":4102444800},"deliveryDate":{"type":"number","description":"The timestamp for delivery date, in seconds","nullable":true,"minimum":0,"maximum":4102444800}},"required":["emittedAt","paymentDelay"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/timeline":{"patch":{"operationId":"InvoiceController_updateTimeline_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoiceTimelineDto"}}}},"responses":{"200":{"description":"Invoice timeline updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Update invoice timeline","tags":["invoice"]}}}}
```

## Renseigner la demande de paiement

La demande de paiement sert au tiers de prestation de l'URSSAF, pour les factures de service à la personne. Cette route la crée ou la met à jour. Elle exige des identifiants URSSAF valides sur votre société et répond `400` pour une facture de test. Envoyez `"paymentRequest": null` pour retirer la demande.

Le corps contient `paymentRequest`, avec trois champs obligatoires : `advanceAlreadyPaid` (montant de l'avance déjà payée, en centimes, au plus 50 % du total), `dateDebutEmploi` et `dateFinEmploi` (secondes Unix). `advancePaymentDate` est obligatoire quand `advanceAlreadyPaid` est supérieur à 0.

```bash
curl -X PATCH "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/payment-request" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "paymentRequest": {
      "advanceAlreadyPaid": 0,
      "dateDebutEmploi": 1794960000,
      "dateFinEmploi": 1797552000
    }
  }'
```

## PATCH /v2/billing/invoice/{invoiceId}/payment-request

> Create or update invoice payment request infos

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"UpdateInvoicePaymentRequestDto":{"type":"object","properties":{"paymentRequest":{"description":"The payment request for the invoice","nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestPayloadDto"}]}},"required":["paymentRequest"]},"PaymentRequestPayloadDto":{"type":"object","properties":{"advanceAlreadyPaid":{"type":"number","description":"Amount in cents of the advance already paid. This amount must not exceed 50% of the total including or excluding tax of the invoice."},"advancePaymentDate":{"type":"number","description":"Date the advance was paid (unix timestamp, seconds). Required when advanceAlreadyPaid > 0.","minimum":0,"maximum":4102444800},"dateDebutEmploi":{"type":"number","description":"Date of the beginning of the employment period (unix timestamp, seconds).","minimum":0,"maximum":4102444800},"dateFinEmploi":{"type":"number","description":"Date of the end of the employment period (unix timestamp, seconds).","minimum":0,"maximum":4102444800}},"required":["advanceAlreadyPaid","dateDebutEmploi","dateFinEmploi"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/payment-request":{"patch":{"operationId":"InvoiceController_updateInvoicePaymentRequest_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoicePaymentRequestDto"}}}},"responses":{"200":{"description":"Payment request updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Create or update invoice payment request infos","tags":["invoice"]}}}}
```

## Activer le paiement en ligne

Le client peut alors payer la facture en ligne. La facture doit être à l'état `finalized`. La route répond `400` si elle ne l'est pas (`invoice.must_be_finalized`) ou si le compte de paiement n'est pas actif (`payment_account.not_active`), et `403` si votre offre n'inclut pas le paiement en ligne. Pour vérifier le compte de paiement avant, voir [Facturer un client, du brouillon au paiement](https://docs.abby.fr/guides/facturer-un-client.md). La route n'a pas de corps.

```bash
curl -X PATCH "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/activate-online-payment" \
  -H "Authorization: Bearer $ABBY_API_KEY"
```

## PATCH /v2/billing/invoice/{invoiceId}/activate-online-payment

> Activate online payment on a finalized invoice

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/activate-online-payment":{"patch":{"operationId":"InvoiceController_activateOnlinePayment_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice","schema":{"type":"string"}}],"responses":{"200":{"description":"Online payment activated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"400":{"description":"Invoice must be finalized or payment account not active"},"401":{"description":"Unauthorized"},"403":{"description":"Plan feature not accessible"},"404":{"description":"Invoice not found"}},"summary":"Activate online payment on a finalized invoice","tags":["invoice"]}}}}
```

## Changer la langue

Le corps contient `locale`, parmi `fr`, `en`, `de`, `it`, `nl`, `pt`, `es`. La route répond `400` si votre offre n'inclut pas les documents multilingues, si la facture n'est plus en brouillon, ou si elle a un document parent.

```bash
curl -X PUT "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/locale" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "locale": "en" }'
```

## PUT /v2/billing/invoice/{invoiceId}/locale

> Update invoice locale

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"UpdateBillingLocaleDto":{"type":"object","properties":{"locale":{"description":"The locale of the billing document","allOf":[{"$ref":"#/components/schemas/BillingLocale"}]}},"required":["locale"]},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/locale":{"put":{"operationId":"InvoiceController_updateInvoiceLocale_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingLocaleDto"}}}},"responses":{"200":{"description":"Invoice locale updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Update invoice locale","tags":["invoice"]}}}}
```

## Changer la devise

Le corps contient `currency`, un code comme `EUR`, `GBP`, `CHF` ou `USD`. `currencyRate` est facultatif : c'est le taux de conversion de la devise du document vers la nouvelle devise. La route répond `400` si votre offre n'inclut pas le multidevise, si la facture n'est plus en brouillon, ou si elle a un document parent.

```bash
curl -X PUT "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/currency" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "currency": "GBP" }'
```

## PUT /v2/billing/invoice/{invoiceId}/currency

> Update invoice currency

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"UpdateBillingCurrencyDto":{"type":"object","properties":{"currency":{"description":"The currency which will be used with the billing","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyRate":{"type":"number","description":"The conversion rate from the billing currency to the new currency"}},"required":["currency"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/currency":{"put":{"operationId":"InvoiceController_updateInvoiceCurrency_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingCurrencyDto"}}}},"responses":{"200":{"description":"Invoice currency updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Update invoice currency","tags":["invoice"]}}}}
```

## Rendre une facture récurrente

Une facture récurrente est répétée à intervalle régulier. Le corps de création et de mise à jour est le même, et tous ses champs sont obligatoires.

| Champ             | Description                                                        |
| ----------------- | ------------------------------------------------------------------ |
| `interval`        | Unité de répétition : `day`, `week`, `month` ou `year`.            |
| `frequency`       | Nombre d'unités entre deux factures. Entier supérieur ou égal à 1. |
| `from`            | Date de début, au format `YYYY-MM-DD`.                             |
| `to`              | Date de fin, au format `YYYY-MM-DD`.                               |
| `finalizeInvoice` | `true` pour finaliser automatiquement chaque facture générée.      |
| `sendByMail`      | `true` pour envoyer chaque facture par email.                      |
| `inCopy`          | `true` pour recevoir une copie des envois.                         |

Les trois routes répondent par la facture (`ReadInvoiceDto`). Une facture a une seule récurrence : en créer une seconde répond `400`.

### Créer la récurrence

```bash
curl -X POST "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/frequency" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "interval": "month",
    "frequency": 1,
    "from": "2026-12-01",
    "to": "2027-12-01",
    "finalizeInvoice": true,
    "sendByMail": true,
    "inCopy": false
  }'
```

## POST /v2/billing/invoice/{invoiceId}/frequency

> Create invoice frequency

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"CreateInvoiceFrequencyDto":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/frequency":{"post":{"operationId":"InvoiceController_createInvoiceFrequency_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceFrequencyDto"}}}},"responses":{"200":{"description":"Invoice frequency created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Create invoice frequency","tags":["invoice"]}}}}
```

### Modifier la récurrence

L'URL ne contient pas d'identifiant de récurrence, même si la spécification déclare un paramètre `frequencyId` pour cette route.

```bash
curl -X PUT "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/frequency" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "interval": "month",
    "frequency": 2,
    "from": "2026-12-01",
    "to": "2027-12-01",
    "finalizeInvoice": true,
    "sendByMail": true,
    "inCopy": false
  }'
```

## PUT /v2/billing/invoice/{invoiceId}/frequency

> Update invoice frequency

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"UpdateInvoiceFrequencyDto":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/frequency":{"put":{"operationId":"InvoiceController_updateInvoiceFrequency_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}},{"name":"frequencyId","required":true,"in":"path","description":"ID of the frequency to update","schema":{}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoiceFrequencyDto"}}}},"responses":{"200":{"description":"Invoice bank information updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Update invoice frequency","tags":["invoice"]}}}}
```

### Supprimer la récurrence

La route supprime la récurrence de la facture. Le résumé de la spécification dit à tort « Create invoice frequency ». La route ne prend pas de corps.

```bash
curl -X DELETE "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/frequency" \
  -H "Authorization: Bearer $ABBY_API_KEY"
```

## DELETE /v2/billing/invoice/{invoiceId}/frequency

> Create invoice frequency

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/frequency":{"delete":{"operationId":"InvoiceController_deleteInvoiceFrequency_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to update","schema":{"type":"string"}}],"responses":{"200":{"description":"Invoice frequency deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Create invoice frequency","tags":["invoice"]}}}}
```

## Corriger ou annuler une facture finalisée

Le contenu d'une facture finalisée ne se modifie plus. Pour la corriger, deux routes produisent un avoir (voir [Avoirs](https://docs.abby.fr/reference-de-lapi/avoirs.md)) :

* créer un avoir en brouillon depuis la facture, pour l'ajuster avant de le finaliser ;
* annuler la facture, ce qui crée directement un avoir finalisé.

### Créer un avoir depuis une facture

Crée un avoir en brouillon rattaché à la facture d'origine. Les lignes de la facture sont reprises et ajustées au prorata du montant restant dû, les acomptes déjà émis étant déduits. Sans acompte, l'avoir couvre 100 % de la facture. La route n'a pas de corps. Elle répond par l'avoir (`ReadAssetDto`).

```bash
curl -X POST "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/asset" \
  -H "Authorization: Bearer $ABBY_API_KEY"
```

## POST /v2/billing/invoice/{invoiceId}/asset

> Create asset from invoice

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"ReadAssetDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"parent":{"oneOf":[{"$ref":"#/components/schemas/ReadInvoiceDto"},{"$ref":"#/components/schemas/ReadAdvanceDto"}]},"advances":{"description":"Advances deducted from the asset total (for V3+ assets from final invoice)","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"refundAt":{"type":"number"},"latePenalty":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingLatePenaltyDto"}]},"lumpSumCompensation":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"}]},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"dueAt":{"type":"number"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","lines","total","displaySettings","paymentDelay","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/asset":{"post":{"operationId":"InvoiceController_createAsset_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to create asset from","schema":{"type":"string"}}],"responses":{"200":{"description":"Asset created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadAssetDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Create asset from invoice","tags":["invoice"]}}}}
```

### Annuler une facture

La route crée un avoir, le finalise aussitôt, et la facture reçoit une date d'annulation (`canceledAt`). L'avoir reprend les lignes d'origine de la facture, acomptes déduits. Le champ `wantArchiveAfterCancellation` est obligatoire : à `true`, l'avoir et la facture sont archivés ensuite. La réponse est la facture annulée. Elle ne contient pas l'identifiant de l'avoir : pour le retrouver, listez les documents avec `type=asset` (voir [Lister les documents](https://docs.abby.fr/reference-de-lapi/lister-les-documents.md)) et lisez le champ `parent`.

```bash
curl -X POST "https://api.abby.fr/v2/billing/invoice/$INVOICE_ID/cancel" \
  -H "Authorization: Bearer $ABBY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "wantArchiveAfterCancellation": false }'
```

## Cancel an invoice

> Creates a finalized asset to cancel the invoice. Optionally archives both documents.

```json
{"openapi":"3.0.0","info":{"title":"Abby Public API","version":"1.130.0+66756885474b"},"servers":[{"url":"https://api.abby.fr","description":"Production server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key authentication. Pass your API key as a Bearer token."}},"schemas":{"CancelBillingDto":{"type":"object","properties":{"wantArchiveAfterCancellation":{"type":"boolean","description":"Whether to archive the document after cancellation"}},"required":["wantArchiveAfterCancellation"]},"ReadInvoiceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"isOnlinePaymentActivated":{"type":"boolean"},"isFinalInvoice":{"type":"boolean"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/ReadInvoiceTotalDto"},"reminder":{"$ref":"#/components/schemas/ReminderDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplayBillingSettingsDto"},"paymentRequest":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/PaymentRequestDto"}]},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceNumbers":{"description":"Numbers of the advances associated with this invoice","type":"array","items":{"type":"string"}},"frequency":{"$ref":"#/components/schemas/FrequencyDto"},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDiscountDisbursement":{"type":"boolean"},"expiredAt":{"type":"number"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","dueAt","isReminderActivated","isOnlinePaymentActivated","isFinalInvoice","lines","total","displaySettings","hasAssociatedTransaction","includeDiscountDisbursement"]},"BillingType":{"type":"string","enum":["estimate","invoice","asset","advance","purchase_order"]},"BillingState":{"type":"string","enum":["draft","finalized","signed","refused","paid"]},"ReadBillingCustomerDto":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the customer"},"legacyId":{"type":"string","description":"Legacy identifier of the customer"},"currency":{"description":"Preferred currency of the customer","allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"firstname":{"type":"string","description":"First name of the customer"},"lastname":{"type":"string","description":"Last name of the customer"},"phoneNumber":{"type":"string","description":"Phone number of the customer"},"emails":{"description":"Email addresses of the customer","type":"array","items":{"type":"string"}},"billingAddress":{"description":"Billing address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddress":{"description":"Delivery address of the customer","allOf":[{"$ref":"#/components/schemas/AddressDto"}]},"deliveryAddressIsSame":{"type":"boolean","description":"Tell if delivery and billing address are deep equal or not"},"language":{"type":"string","description":"Preferred language of the customer"},"name":{"type":"string","description":"Full name of the customer"},"commercialName":{"type":"string","description":"Commercial name of the customer"},"siren":{"type":"string","description":"SIREN number of the customer"},"siret":{"type":"string","description":"SIRET number of the customer"},"nafCode":{"type":"string","description":"NAF code of the customer"},"vatNumber":{"type":"string","description":"VAT number of the customer"},"token":{"type":"string","description":"Token associated with the customer"},"parent":{"description":"Parent customer information","allOf":[{"$ref":"#/components/schemas/ReadBillingCustomerDto"}]},"contactId":{"type":"string","description":"Contact identifier associated with the customer"},"organizationId":{"type":"string","description":"Organization identifier associated with the customer"},"isDefault":{"type":"boolean","description":"Indicates if this is the default customer"},"test":{"type":"boolean","description":"Indicates if this is a test customer"}},"required":["id","legacyId","billingAddress","deliveryAddressIsSame","token","test"]},"CurrencyCode":{"type":"string","enum":["EUR","GBP","CHF","USD","AUD","CAD","JPY","CNH","CZK","DKK","BGN","PLN","HUF","RON","SEK","NOK","TRY","BRL","HKD","ILS","INR","KRW","MXN","XPF","XOF","XAF"],"description":"Preferred currency of the customer"},"AddressDto":{"type":"object","properties":{"line1":{"type":"string","description":"First line of the address"},"line2":{"type":"string","description":"Second line of the address"},"city":{"type":"string","description":"City of the address"},"zipCode":{"type":"string","description":"Zip code of the address"},"country":{"description":"Country code of the address","allOf":[{"$ref":"#/components/schemas/CountryCode"}]}},"required":["line1","city","zipCode","country"]},"CountryCode":{"type":"string","enum":["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AN","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","XK","KP","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MK","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RE","RO","RU","RW","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","SS","ES","LK","SD","SR","SJ","SZ","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW"],"description":"Country code of the address"},"BillingLocale":{"type":"string","enum":["fr","en","de","it","nl","pt","es"]},"OpportunityDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"ReadCurrencyDto":{"type":"object","properties":{"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currencyDate":{"type":"number"},"currencyRate":{"type":"number"},"origin":{"allOf":[{"$ref":"#/components/schemas/CurrencyOrigin"}]}},"required":["currencyCode","currencyDate","currencyRate","origin"]},"CurrencyOrigin":{"type":"string","enum":["ECB","USER","FIXED"]},"ReadFileDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"extension":{"type":"string"},"mimeType":{"type":"string"},"url":{"type":"string"},"relativeUrl":{"type":"string"},"isCertified":{"type":"boolean"},"isCertifiable":{"type":"boolean"}},"required":["id","name","extension","mimeType","url","relativeUrl"]},"FinalizeRequirementDto":{"type":"object","properties":{"name":{"allOf":[{"$ref":"#/components/schemas/FinalizeRequirementName"}]},"message":{"type":"string"},"metadata":{"description":"Only present on the `hasNoUrssafRoundingDrift` requirement.","allOf":[{"$ref":"#/components/schemas/UrssafRoundingDriftMetadataDto"}]}},"required":["name","message"]},"FinalizeRequirementName":{"type":"string","enum":["hasValidLines","hasLineDesignation","hasQuantityGreaterThanOrEqualToZero","hasValidLineType","hasValidPersonalServiceActivityLines","advancesAreAllFinalized","HasValidLineDiscountAmount","HasValidLineDiscountPercentage","HasValidGlobalDiscountAmount","HasValidGlobalDiscountPercentage","hasValidProductQuantityUnitForPersonalServiceActivity","hasConsistentVatRateForEuMention","isNotAlreadyFinalized","hasValidElectronicSignature","validateEmittedDate","hasValidEmittedAt","hasValidAmount","hasPositiveAmount","hasValidReminder","hasValidPaymentRequestAdvanceAmount","hasNoUrssafRoundingDrift"]},"UrssafRoundingDriftMetadataDto":{"type":"object","properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/UrssafRoundingDriftLineDto"}},"totalDriftHtCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals excl. tax and the invoice total."},"totalDriftTtcCents":{"type":"number","description":"Difference in cents between the sum of transmitted line totals incl. tax and the invoice total."}},"required":["lines","totalDriftHtCents","totalDriftTtcCents"]},"UrssafRoundingDriftLineDto":{"type":"object","properties":{"lineId":{"type":"string","description":"Id of the invoice line whose transmitted amounts do not add up."},"driftHtCents":{"type":"number","description":"Difference in cents between the transmitted line total excl. tax and the stored one."},"driftTtcCents":{"type":"number","description":"Difference in cents between the transmitted line total incl. tax and the stored one."},"suggestedUnitAmountCents":{"type":"number","nullable":true,"description":"Quantity-1 unit amount, in cents, that clears the drift for the whole invoice. Null when no amount was found."},"suggestedIsTaxIncluded":{"type":"boolean","description":"Whether the suggested amount is expressed tax-included."}},"required":["lineId","driftHtCents","driftTtcCents","suggestedUnitAmountCents","suggestedIsTaxIncluded"]},"BillingWarningDto":{"type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"}},"required":["title","message"]},"ReadBillingEmitterDto":{"type":"object","properties":{"name":{"type":"string"},"fullName":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"commercialName":{"type":"string"},"siret":{"type":"string"},"vatNumber":{"type":"string"},"rcsNumber":{"type":"string","nullable":true},"rsacNumber":{"type":"string","nullable":true},"legalStatus":{"allOf":[{"$ref":"#/components/schemas/LegalStatus"}]},"sapAgreementNumber":{"type":"string"},"hasVat":{"type":"boolean"}}},"LegalStatus":{"type":"string","enum":["micro_enterprise","sas","sarl","sasu","ei","eurl","eirl","sa","snc","other","sasu_sas","eurl_sarl","sci","association"]},"ReadBankInformationDto":{"type":"object","properties":{"bic":{"type":"string"},"iban":{"type":"string"},"holder":{"type":"string"}},"required":["bic","iban","holder"]},"BillingLegalsDto":{"type":"object","properties":{"headerNote":{"type":"string"},"footerNote":{"type":"string"},"generalTermsAndConditionsOfSale":{"type":"string"},"mentionMediator":{"type":"string"},"vatMention":{"allOf":[{"$ref":"#/components/schemas/VatMention"}]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"otherPaymentMethod":{"type":"string","description":"Other payment method"}},"required":["vatMention","paymentMethods"]},"VatMention":{"type":"string","enum":["not_subject","second_hand_good","art_object","collection_antique","travel_agency","vat_not_applicable","vat_not_applicable_2","vat_exemption","vat_exemption_eu_sale","vat_exemption_eu_service","vat_construction","vat_psychologist","vat_psychologist_2","vat_reverse_charge","vat_reverse_charge_2","vat_reverse_charge_3","vat_reverse_charge_4","vat_reduced_rate","vat_reduced_rate_2","vat_article_261c_cgi","vat_exemption_294_cgi"]},"PaymentMethod":{"type":"string","enum":["transfer","direct_debit","credit_card","cheque","universal_employment_service_cheque","cash","paypal","stripe","other"]},"BillingCompatibilityVersion":{"type":"string","enum":["V1","V2","V3"]},"PaymentDelay":{"type":"string","enum":["at_reception","end_of_month","seven_days","ten_days","fifteen_days","thirty_days","thirty_days_end_of_month","forty_five_days","forty_five_days_end_of_month","sixty_days","sixty_days_end_of_month","ninety_days","ninety_days_end_of_month","one_hundred_and_twenty_days","other"]},"ReadBillingDetailsLineDto":{"type":"object","properties":{"generatedId":{"type":"string"},"id":{"type":"string"},"unitPrice":{"type":"number"},"unitPriceHT":{"type":"number"},"productId":{"type":"string"},"quantity":{"type":"number"},"quantityUnit":{"allOf":[{"$ref":"#/components/schemas/ProductUnit"}]},"designation":{"type":"string"},"reference":{"type":"string"},"description":{"type":"string"},"isDeliveryOfGoods":{"type":"boolean"},"type":{"allOf":[{"$ref":"#/components/schemas/ProductType"}]},"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"personalServiceActivity":{"allOf":[{"$ref":"#/components/schemas/PersonalServiceActivity"}]},"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"discount":{"$ref":"#/components/schemas/DiscountLineDto"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsLineDto"},"isTaxIncluded":{"type":"boolean","description":"Indicates whether the unit price includes tax (TTC) or excludes tax (HT)"}},"required":["unitPrice","unitPriceHT","designation","isDeliveryOfGoods","priceWithoutTaxBeforeDiscount","discountAmount","discount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ProductUnit":{"type":"string","enum":["unit","gram","hour","day","week","fixed_rate","year","character","line","license","article","month","kilogram","kilometer","liter","batch","meter","square_meter","cubic_meter","linear_meter","person","ton","word","page","leaflet","paragraph","minute","overnight_stay"]},"ProductType":{"type":"string","enum":["sale_of_goods","service_delivery","commercial_or_craft_services","sale_of_manufactured_goods","disbursement"]},"VatCode":{"type":"string","enum":["FR_210","FR_550","FR_850","FR_1000","FR_2000","FR_00HT","FR_00UE","FR_0HUE"]},"PersonalServiceActivity":{"type":"string","enum":["GARDE_ENFANT_HANDICAPE","ACCOMPAGNEMENT_ENFANT_HANDICAPE","AIDE_HUMAINE","CONDUITE_VEHICULE_PERSONNEL","AIDE_AU_DEPLACEMENT","ENTRETIEN_DE_LA_MAISON","JARDINAGE","BRICOLAGE","GARDE_ENFANT_PLUS_DE_6_ANS","SOUTIEN_SCOLAIRE_COURS_A_DOMICILE","SOIN_ESTHETIQUE_A_DOMICILE","PREPARATION_REPAS_A_DOMICILE","LIVRAISON_REPAS_A_DOMICILE","COLLECTE_ET_LIVRAISON_DE_LINGE_REPASSE","LIVRAISON_COURSES_A_DOMICILE","ASSISTANCE_INFORMATIQUE","SOINS_ET_PROMENADES_ANIMAUX_DE_COMPAGNIE_POUR_PERSONNES_DEPENDANTES","MAINTENANCE_ENTRETIEN_ET_VIGILANCE_DE_LA_RESIDENCE_PRINCIPALE","ASSISTANCE_ADMINISTRATIVE","ACCOMPAGNEMENT_ENFANT_PLUS_DE_6_ANS","TELEASSISTANCE","INTERPRETE_LANGUE_DES_SIGNES","CONDUITE_VEHICULE_PERSONNEL_EN_CAS_INVALIDITE_TEMPORAIRE","ACCOMPAGNEMENT_DEPLACEMENTS_EN_DEHORS_DU_DOMICILE","ASSISTANCE_PERSONNES_TEMPORAIREMENT_DEPENDANTES_A_DOMICILE","COORDINATION_ET_GESTION","DIVERS_NON_ELIGIBLE"]},"DiscountLineDto":{"type":"object","properties":{"amount":{"type":"number","description":"Montant de la remise, 1000 pour 10% ou 10€"},"mode":{"description":"Mode de la réduction en pourcentage ou en euros","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]}},"required":["amount","mode"]},"DiscountMode":{"type":"string","enum":["PERCENTAGE","AMOUNT"],"description":"Mode de la réduction en pourcentage ou en euros"},"ConvertedAmountsLineDto":{"type":"object","properties":{"priceWithoutTaxBeforeDiscount":{"type":"number"},"discountAmount":{"type":"number"},"priceWithoutTaxAfterDiscount":{"type":"number"},"vatAmount":{"type":"number"},"priceTotalTax":{"type":"number"}},"required":["priceWithoutTaxBeforeDiscount","priceWithoutTaxAfterDiscount","vatAmount","priceTotalTax"]},"ReadInvoiceTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ReadInvoiceTotalWithoutConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"VatDetailDto":{"type":"object","properties":{"vatCode":{"allOf":[{"$ref":"#/components/schemas/VatCode"}]},"amount":{"type":"number"},"vatRate":{"type":"number"}},"required":["vatCode","amount","vatRate"]},"ReadInvoiceTotalWithoutConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"discountAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"ReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean"},"frequency":{"allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number"},"active":{"type":"boolean"},"recipients":{"type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active","recipients"]},"ReminderFrequency":{"type":"string","enum":["on_due_date","every_week"],"description":"The frequency at which reminders should be sent"},"DiscountDto":{"type":"object","properties":{"mode":{"description":"The mode of discount application, either percentage or fixed amount","allOf":[{"$ref":"#/components/schemas/DiscountMode"}]},"amount":{"type":"number","description":"The amount for the discount (1000 for 10% or 10€)"}},"required":["mode","amount"]},"LatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LatePenalty":{"type":"string","enum":["three_time_legal_rate","bce_director_rate_plus_ten_points","other"]},"BillingLumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"LumpSumCompensation":{"type":"string","enum":["forty_euros","other"]},"BillingDiscountAdvancePaymentDto":{"type":"object","properties":{"value":{"description":"Type de remise sur acompte","allOf":[{"$ref":"#/components/schemas/DiscountAdvancePayment"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DiscountAdvancePayment":{"type":"string","enum":["none","other"],"description":"Type de remise sur acompte"},"DisplayBillingSettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayEstimateNumber":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"PaymentRequestDto":{"type":"object","properties":{"idDemandePaiement":{"type":"string"},"dateDebutEmploi":{"type":"number"},"dateFinEmploi":{"type":"number"},"dateVirement":{"type":"number"},"advanceAlreadyPayed":{"type":"number"},"advancePaymentDate":{"type":"number"},"mntVirement":{"type":"number"},"statut":{"allOf":[{"$ref":"#/components/schemas/PaymentRequestStatusUrssafTp"}]}},"required":["dateDebutEmploi","dateFinEmploi"]},"PaymentRequestStatusUrssafTp":{"type":"string","enum":[0,"10","20","30","40","50","60","70","110","111","120","112","ERR_PARTICULIER_INCONNU","ERR_CMPT_BLOQUE","ERR_FACTURE_DOUBLON","ERR_NBRE_PREST_MAX","ERR_DATE_FUTUR","ERR_DATE_PAIEMENT_AVANT_EXP","ERR_PERIODE_EMPLOI_MOIS_NON_UNIQUE","ERR_DATE_FIN_AVANT_DATE_DEB","ERR_MONTANT_ACOMPTE","ERR_TOTAL_PRESTATIONS","ERR_CODE_NATURE","ERR_CODE_ACTIVITE","ERR_CODE_ACTIVITE_NATURE","ERR_MNT_PREST_HT_TVA","ERR_MNT_PREST_TTC","ERR_VALEUR_NEGATIVE","ERR_PRESTATAIRE_EMETTEUR_INCONNU","ERR_LIEN_PARTICULIER_PRESTATAIRE","ERR_PRESTATAIRE_FACTURATION_INCONNU","ERR_CRITERE_RECHERCHE_VIDE","ERR_DGFIP_R2P_INCONNU","ERR_DATE_NAISSANCE_FUTUR","ERR_LIEU_NAISSANCE_DEPT","ERR_LIEU_NAISSANCE_COMN","ERR_LIEU_NAISSANCE_PAYS","ERR_DGFIP_IMPOTPART_INCONNU","ERR_CONTACT","ERR_CONTACT_ADRESSE_TYPE_VOIE","ERR_CONTACT_ADRESSE_LETTRE_VOIE","ERR_CONTACT_ADRESSE_TYPEVOIE","ERR_CONTACT_ADRESSE_LIBELLEVOIE","ERR_CONTACT_ADRESSE_INFORMATION_SUPPLEMENTAIRE","ERR_CONTACT_ADRESSE_COMMUNE","ERR_COORDONNEES_BANCAIRES","ERR_FORMAT_VALEUR","ERR_NBRE_MAX_RESULTAT","ERR_RECHERCHE_VIDE","ERR_ECV_PARTICULIERS_EXISTENT","ERREUR_REFERENCE_PARTICULIER_EXISTANTE_TYPE","ERR_LIEU_NAISSANCE_OBLIGATOIRE","ERREUR_LIEU_NAISSANCE_INVALIDE","ERR_RECHERCHE_PARTICULIER","ERR_FORMAT_NUMINTERVENANT","ERR_NUMINTERVENANT_MANQUANT","ERR_NUMINTERVENANT_BLOQUE","ERR_MANDAT_ECHU","ERREUR_VALIDATION","ERREUR_TECHNIQUE","ERREUR_INCONNUE"]},"ReadEstimateDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"expiredAt":{"type":"number"},"refusedAt":{"type":"number"},"signedAt":{"type":"number"},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ReadBillingDetailsLineDto"}},"total":{"$ref":"#/components/schemas/EstimateTotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"latePenalty":{"$ref":"#/components/schemas/LatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/LumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"advances":{"type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceDto"}},"advanceEstimateLines":{"$ref":"#/components/schemas/ReadEstimateAdvanceLinesDto"},"withElectronicSignature":{"type":"boolean"},"electronicSignature":{"$ref":"#/components/schemas/EstimateElectronicSignatureDto"},"dueAt":{"type":"number"},"electronicSignatureRequirements":{"type":"array","items":{"$ref":"#/components/schemas/ElectronicSignatureRequirementDto"}},"hasFinalInvoice":{"type":"boolean"},"includeDiscountDisbursement":{"type":"boolean"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","expiredAt","lines","total","displaySettings","advances","advanceEstimateLines","withElectronicSignature","electronicSignature","electronicSignatureRequirements","hasFinalInvoice","includeDiscountDisbursement"]},"EstimateTotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","amountWithoutTaxBeforeDiscountWithoutDisbursement","remainingAmountWithoutTaxWithoutDisbursement"]},"ConvertedAmountsDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingAmountToBill":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"billedAmountWithoutTax":{"type":"number"},"billedAmountWithTax":{"type":"number"},"remainingAmountWithoutTaxWithoutDisbursement":{"type":"number"},"amountWithoutTaxBeforeDiscountWithoutDisbursement":{"type":"number"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingAmountToBill","vatDetails","billedAmountWithoutTax","billedAmountWithTax","remainingAmountWithoutTaxWithoutDisbursement","amountWithoutTaxBeforeDiscountWithoutDisbursement"]},"LumpSumCompensationDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LumpSumCompensation"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"DisplaySettingsDto":{"type":"object","properties":{"displayFullName":{"type":"boolean"},"displayEmail":{"type":"boolean"},"displayPhoneNumber":{"type":"boolean"},"displaySAPAgreement":{"type":"boolean"},"displayLegalStatus":{"type":"boolean"},"displayRequiredMentionsProduct":{"type":"boolean"},"displayGoodForApproval":{"type":"boolean"},"displayMemberOfAnApprovedAssociation":{"type":"boolean"},"displayAbbyLogo":{"type":"boolean"},"displayTitle":{"type":"boolean"}},"required":["displayFullName","displayEmail","displayPhoneNumber","displaySAPAgreement","displayLegalStatus","displayRequiredMentionsProduct","displayMemberOfAnApprovedAssociation","displayAbbyLogo","displayTitle"]},"ReadAdvanceDto":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"title":{"type":"string","description":"Title of the billing document"},"type":{"allOf":[{"$ref":"#/components/schemas/BillingType"}]},"state":{"allOf":[{"$ref":"#/components/schemas/BillingState"}]},"customer":{"$ref":"#/components/schemas/ReadBillingCustomerDto"},"locale":{"allOf":[{"$ref":"#/components/schemas/BillingLocale"}]},"emittedAt":{"type":"number"},"archivedAt":{"type":"number"},"opportunity":{"$ref":"#/components/schemas/OpportunityDto"},"locked":{"type":"boolean"},"finalizable":{"type":"boolean"},"test":{"type":"boolean"},"isEditable":{"type":"boolean"},"currencyCode":{"allOf":[{"$ref":"#/components/schemas/CurrencyCode"}]},"currency":{"$ref":"#/components/schemas/ReadCurrencyDto"},"lastDownloadAt":{"type":"number"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/ReadFileDto"}},"finalizeRequirements":{"type":"array","items":{"$ref":"#/components/schemas/FinalizeRequirementDto"}},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/BillingWarningDto"}},"emitter":{"$ref":"#/components/schemas/ReadBillingEmitterDto"},"bankInformation":{"$ref":"#/components/schemas/ReadBankInformationDto"},"billingLegals":{"$ref":"#/components/schemas/BillingLegalsDto"},"createdAt":{"type":"number"},"updatedAt":{"type":"number"},"deliveryDate":{"type":"number"},"compatibilityVersion":{"allOf":[{"$ref":"#/components/schemas/BillingCompatibilityVersion"}]},"isDeletable":{"type":"boolean"},"displayDeliveryAddress":{"type":"boolean"},"finalizedAt":{"type":"number"},"lastSendByEmailAt":{"type":"number"},"themeId":{"type":"string","description":"ID of the theme applied to this document when set"},"paymentDelay":{"allOf":[{"$ref":"#/components/schemas/PaymentDelay"}]},"dueAt":{"type":"number"},"paidAt":{"type":"number"},"lastReminderSentAt":{"type":"number"},"isReminderActivated":{"type":"boolean"},"designation":{"type":"string"},"isOnlinePaymentActivated":{"type":"boolean"},"description":{"type":"string"},"total":{"$ref":"#/components/schemas/TotalDto"},"discount":{"$ref":"#/components/schemas/DiscountDto"},"displaySettings":{"$ref":"#/components/schemas/DisplaySettingsDto"},"parent":{"$ref":"#/components/schemas/ReadEstimateDto"},"advanceMode":{"allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"advancePercentage":{"type":"number"},"advanceAmount":{"type":"number"},"reminder":{"$ref":"#/components/schemas/BillingReminderDto"},"latePenalty":{"$ref":"#/components/schemas/BillingLatePenaltyDto"},"lumpSumCompensation":{"$ref":"#/components/schemas/BillingLumpSumCompensationDto"},"discountAdvancePayment":{"nullable":true,"allOf":[{"$ref":"#/components/schemas/BillingDiscountAdvancePaymentDto"}]},"hasAssociatedTransaction":{"type":"boolean","description":"Indicates if the customer has an associated transaction"},"includeDisbursement":{"type":"boolean","description":"Indicates if the advance includes disbursement"},"canceledAt":{"type":"number"}},"required":["id","type","state","customer","locale","emittedAt","finalizable","test","isEditable","currencyCode","currency","attachments","finalizeRequirements","warnings","emitter","billingLegals","createdAt","updatedAt","compatibilityVersion","isDeletable","displayDeliveryAddress","paymentDelay","isReminderActivated","designation","isOnlinePaymentActivated","total","displaySettings","advanceMode","advancePercentage","advanceAmount","hasAssociatedTransaction","includeDisbursement"]},"TotalDto":{"type":"object","properties":{"amountWithoutTaxBeforeDiscount":{"type":"number"},"amountWithoutTaxAfterDiscount":{"type":"number"},"amountWithTaxAfterDiscount":{"type":"number"},"remainingAmountWithoutTax":{"type":"number"},"remainingAmountWithTax":{"type":"number"},"remainingReconciliateAmount":{"type":"number"},"vatDetails":{"type":"array","items":{"$ref":"#/components/schemas/VatDetailDto"}},"discountAmount":{"type":"number"},"convertedAmounts":{"$ref":"#/components/schemas/ConvertedAmountsDto"}},"required":["amountWithoutTaxBeforeDiscount","amountWithoutTaxAfterDiscount","amountWithTaxAfterDiscount","remainingAmountWithoutTax","remainingAmountWithTax","remainingReconciliateAmount","vatDetails"]},"AdvanceMode":{"type":"string","enum":["AMOUNT","PERCENTAGE"],"description":"The mode of the advance (amount or percentage)"},"BillingReminderDto":{"type":"object","properties":{"inCopy":{"type":"boolean","description":"Indicates if the sender should be in copy of the reminder"},"frequency":{"description":"The frequency at which reminders should be sent","allOf":[{"$ref":"#/components/schemas/ReminderFrequency"}]},"numberOfRemindersToSend":{"type":"number","description":"The number of reminders to be sent"},"active":{"type":"boolean","description":"Indicates if the reminder is active"},"recipients":{"description":"Array of email addresses to receive the reminder","type":"array","items":{"type":"string"}}},"required":["inCopy","frequency","numberOfRemindersToSend","active"]},"BillingLatePenaltyDto":{"type":"object","properties":{"value":{"allOf":[{"$ref":"#/components/schemas/LatePenalty"}]},"otherValue":{"type":"string","description":"Description custom si `value` vaut `other`"}},"required":["value"]},"ReadEstimateAdvanceLinesDto":{"type":"object","properties":{"advances":{"description":"Array of advance items","type":"array","items":{"$ref":"#/components/schemas/ReadAdvanceItemLineDto"}},"totals":{"description":"Totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]},"convertedTotals":{"description":"Converted totals of the advance items","allOf":[{"$ref":"#/components/schemas/ReadAdvanceItemLineTotalsDto"}]}},"required":["advances","totals","convertedTotals"]},"ReadAdvanceItemLineDto":{"type":"object","properties":{"value":{"type":"number","description":"The value of the advance (amount or percentage)"},"mode":{"description":"The mode of the advance (amount or percentage)","allOf":[{"$ref":"#/components/schemas/AdvanceMode"}]},"paymentCondition":{"description":"Payment condition for the advance","allOf":[{"$ref":"#/components/schemas/PaymentCondition"}]},"customPaymentCondition":{"type":"string","description":"Custom payment condition if OTHER is selected","nullable":true}},"required":["value","mode"]},"PaymentCondition":{"type":"string","enum":["SIGNATURE","ORDER","OTHER"],"description":"Payment condition for the advance"},"ReadAdvanceItemLineTotalsDto":{"type":"object","properties":{"totalAmountWithoutTax":{"type":"number","description":"Total amount of all advances"},"totalAmountWithTax":{"type":"number","description":"Total amount of all advances after discount"},"remainingTotalAmountWithoutTax":{"type":"number","description":"Remaining total amount without tax"},"remainingTotalAmountWithTax":{"type":"number","description":"Remaining total amount with tax"}},"required":["totalAmountWithoutTax","totalAmountWithTax","remainingTotalAmountWithoutTax","remainingTotalAmountWithTax"]},"EstimateElectronicSignatureDto":{"type":"object","properties":{"id":{"type":"string"},"canceledAt":{"type":"number","nullable":true},"procedureId":{"type":"string","nullable":true},"magicLink":{"type":"string","nullable":true},"signedAt":{"type":"number","nullable":true},"refusedAt":{"type":"number","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/ElectronicSignatureStatus"}]}},"required":["id","canceledAt","procedureId","magicLink","signedAt","refusedAt","status"]},"ElectronicSignatureStatus":{"type":"string","enum":["requested","activated","on_going","refused","signed","cancelled"]},"ElectronicSignatureRequirementDto":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"]},"FrequencyDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"},"nextBillingAt":{"type":"string","nullable":true},"frequency":{"type":"number"},"interval":{"allOf":[{"$ref":"#/components/schemas/FrequencyInterval"}]},"finalizeInvoice":{"type":"boolean"},"sendByMail":{"type":"boolean"},"inCopy":{"type":"boolean"}},"required":["id","from","to","frequency","interval","finalizeInvoice","sendByMail","inCopy"]},"FrequencyInterval":{"type":"string","enum":["day","week","month","year"]}}},"paths":{"/v2/billing/invoice/{invoiceId}/cancel":{"post":{"description":"Creates a finalized asset to cancel the invoice. Optionally archives both documents.","operationId":"InvoiceController_cancelInvoice_v2","parameters":[{"name":"invoiceId","required":true,"in":"path","description":"ID of the invoice to cancel","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelBillingDto"}}}},"responses":{"200":{"description":"Invoice cancelled successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadInvoiceDto"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Invoice not found"}},"summary":"Cancel an invoice","tags":["invoice"]}}}}
```

## Encaisser une facture

Marquer une facture comme payée, ou annuler ce paiement, se fait avec les routes de la page [Paiements](https://docs.abby.fr/reference-de-lapi/paiements.md) : `POST /v2/accounting-billing/invoice/{invoiceId}/reconciliate` et `POST /v2/accounting-billing/invoice/{invoiceId}/mark-as-unpaid`.

## Voir aussi

* [Facturer un client, du brouillon au paiement](https://docs.abby.fr/guides/facturer-un-client.md)
* [Documents de facturation](https://docs.abby.fr/reference-de-lapi/documents-de-facturation.md)
* [Avoirs](https://docs.abby.fr/reference-de-lapi/avoirs.md)
* [Paiements](https://docs.abby.fr/reference-de-lapi/paiements.md)
* [Endpoints dépréciés](https://docs.abby.fr/reference-de-lapi/endpoints-deprecies.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.abby.fr/reference-de-lapi/factures.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
