Avoirs
Créez des avoirs depuis une facture, un acompte ou de zéro, puis finalisez-les.
Un avoir est un document de facturation qui annule ou rembourse tout ou partie d'une facture ou d'un acompte. Comme les autres documents, il est associé à un client (contact, organisation ou contact d'organisation) et contient des lignes ainsi que des informations générales.
Un avoir créé est dans un état brouillon (draft) tant qu'il n'a pas été finalisé. Une fois finalisé, il reçoit un numéro officiel et ne peut plus être modifié.
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 sont déduits) : sans acompte, l'avoir couvre 100 % de la facture.
API key authentication. Pass your API key as a Bearer token.
ID of the invoice to create asset from
Asset created successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueUnauthorized
Invoice not found
POST /v2/billing/invoice/{invoiceId}/asset HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Pour annuler intégralement une facture en une seule opération, utilisez plutôt
POST /v2/billing/invoice/{invoiceId}/cancel: l'avoir généré couvre la totalité de la facture et est directement finalisé.
Créer un avoir depuis un acompte
L'acompte doit être finalisé (un acompte en brouillon est refusé) et ne pas déjà avoir d'avoir associé.
API key authentication. Pass your API key as a Bearer token.
ID of the invoice to create asset from
Asset created successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueUnauthorized
Advance not found
POST /v2/billing/advance/{advanceId}/asset HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Créer un avoir vierge
Crée un avoir en brouillon sans document parent, dont les lignes sont à définir ensuite.
Le customerId dans l'URL est un contactId (client particulier) ou un organizationId (client professionnel) — le même identifiant que pour créer une facture ou un devis. Ce n'est pas le billingCustomerId interne, ni l'identifiant de l'avoir.
Aucun corps de requête n'est nécessaire : l'API résout le client de facturation à partir de cet identifiant.
L'identifiant customerId peut correspondre à un contactId ou à un organizationId.
API key authentication. Pass your API key as a Bearer token.
L'identifiant customerId peut correspondre à un contactId ou à un organizationId.
Asset created successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueBad Request
Unauthorized
POST /v2/billing/asset/{customerId} HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Paramètres de chemin
customerId: identifiant du client (contactIdouorganizationId)
Exemple
Réponse (ReadAssetDto)
201 — l'avoir créé, en état brouillon (draft). Les lignes se renseignent ensuite avec PATCH /v2/billing/{billingId}/lines.
Erreurs
401: clé API manquante ou invalide400:customerIdne correspond à aucun contact ni organisation de la société (customer_not_found)
L'ancien endpoint
POST /v2/billing/asset(corpsbillingCustomerId/opportunityId) n'est plus public. UtilisezPOST /v2/billing/asset/{customerId}.
Récupérer un avoir
API key authentication. Pass your API key as a Bearer token.
ID of the asset to retrieve
Asset retrieved successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueAsset not found
GET /v2/billing/asset/{assetId} HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Lister les avoirs
Le listing est commun à tous les documents de facturation : filtrez sur type=asset pour ne récupérer que les avoirs.
API key authentication. Pass your API key as a Bearer token.
Inclusive date window [from, to] applied to the field named by rangeType; use the calendar-day form YYYY-MM-DD, each bound being interpreted as a whole day in the API timezone (Europe/Paris). A full ISO instant is also accepted transitionally, for older clients, and is snapped to the Paris day it falls on, which can widen the window (a UTC end-of-day instant lands on the next Paris day).
The billings records
GET /v2/billings?page=1&limit=1&test=true HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
The billings records
{
"countWithoutFilters": 1,
"totalDocs": 1,
"limit": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPrevPage": true,
"nextPage": 1,
"page": 1,
"prevPage": 1,
"docs": [
{
"id": "text",
"number": "text",
"title": "text",
"type": "estimate",
"state": "draft",
"emittedAt": 1,
"dueAt": 1,
"customer": {
"id": "text",
"legacyId": "text",
"paymentMethods": [
"text"
],
"currency": "EUR",
"firstname": "text",
"lastname": "text",
"phoneNumber": "text",
"emails": [
"text"
],
"billingAddress": {
"line1": "text",
"line2": "text",
"city": "text",
"zipCode": "text",
"country": "AF"
},
"deliveryAddress": {
"line1": "text",
"line2": "text",
"city": "text",
"zipCode": "text",
"country": "AF"
},
"deliveryAddressIsSame": true,
"language": "text",
"name": "text",
"commercialName": "text",
"siren": "text",
"siret": "text",
"nafCode": "text",
"vatNumber": "text",
"token": "text",
"tiersPrestationIsActivated": true,
"tiersPrestation": {
"idClient": "text",
"registeredAt": 1,
"status": "synced"
},
"parent": {
"id": "text",
"legacyId": "text",
"paymentMethods": [
"text"
],
"currency": "EUR",
"firstname": "text",
"lastname": "text",
"phoneNumber": "text",
"emails": [
"text"
],
"billingAddress": {
"line1": "text",
"line2": "text",
"city": "text",
"zipCode": "text",
"country": "AF"
},
"deliveryAddress": {
"line1": "text",
"line2": "text",
"city": "text",
"zipCode": "text",
"country": "AF"
},
"deliveryAddressIsSame": true,
"language": "text",
"name": "text",
"commercialName": "text",
"siren": "text",
"siret": "text",
"nafCode": "text",
"vatNumber": "text",
"token": "text",
"tiersPrestationIsActivated": true,
"tiersPrestation": {
"idClient": "text",
"registeredAt": 1,
"status": "synced"
},
"parent": "[Circular Reference]",
"contactId": "text",
"organizationId": "text",
"isDefault": true,
"test": true,
"archivedAt": 1
},
"contactId": "text",
"organizationId": "text",
"isDefault": true,
"test": true,
"archivedAt": 1
},
"paidAt": 1,
"refundAt": 1,
"signedAt": 1,
"refusedAt": 1,
"expiredAt": 1,
"archivedAt": 1,
"nextBillingAt": 1,
"lastSendByEmailAt": 1,
"totalAmountWithoutTaxAfterDiscount": 1,
"totalAmountWithTaxAfterDiscount": 1,
"remainingAmountWithoutTax": 1,
"remainingAmountWithTax": 1,
"billedAmountWithoutTax": 1,
"paymentMethodUsed": [
{
"value": "text",
"other": "text",
"paymentAmount": 1,
"statut": "112"
}
],
"billedAmountWithTax": 1,
"cancelledAmountWithoutTax": 1,
"cancelledAmountWithTax": 1,
"lastReminderSentAt": 1,
"locale": "fr",
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"lastDownloadAt": 1,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"parent": {
"id": "text",
"number": "text",
"type": "estimate"
},
"createdFromInvoice": "text",
"hasFinalInvoice": true,
"isFinalInvoiceCanceled": true,
"finalInvoiceNumber": "text",
"hasAdvances": true,
"isDeletable": true,
"finalizable": true,
"isEditable": true,
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"tiersPrestationIsActivatedForThisBilling": true,
"currencyCode": "EUR",
"convertedAmounts": {
"totalAmountWithoutTaxAfterDiscount": 1,
"totalAmountWithTaxAfterDiscount": 1,
"remainingAmountWithoutTax": 1,
"remainingAmountWithTax": 1
},
"remainingReconciliateAmount": 1,
"hasAssociatedTransaction": true,
"compatibilityVersion": "V1",
"createdAt": 1,
"updatedAt": 1,
"canceledAt": 1,
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
]
}
]
}Paramètres de requête
Champs requis :
page: numéro de page (à partir de1)limit: nombre d'éléments par pagetest:truepour lister les documents du mode test
Champs optionnels :
type: types de documents (tableau, voir valeurs ci-dessous)state: états des documents (tableau, voir valeurs ci-dessous)search: terme de recherche (numéro, client, etc.)customerId: filtre sur un contactorganizationId: filtre sur une organisationopportunityId: filtre sur une opportunitéarchived:truepour ne lister que les documents archivéslate:truepour ne lister que les documents en retardrange: bornes de dates[from, to], à utiliser avecrangeTyperangeType: date sur laquelle s'appliquerange(voir valeurs ci-dessous)onlyReminderActive: documents avec relance activeonlyOnlineSignature: documents avec signature en ligneonlyOnlinePayment: documents avec paiement en ligne
type (BillingType)
invoiceestimatepurchase_orderadvanceasset
state (BillingState)
draftfinalizedsignedrefusedpaid
rangeType (BillingRangeType)
emittedAtpaidAtsignedAtexpiredAtdueAtrefusedAt
Exemple
Mettre à jour les lignes de l'avoir
Les lignes d'un avoir sont mises à jour via l'endpoint partagé de billing.
API key authentication. Pass your API key as a Bearer token.
ID of the billing to update
Billing lines updated successfully
Unauthorized
Billing not found
PATCH /v2/billing/{billingId}/lines HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 503
{
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"productId": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 1500,
"quantity": 2,
"quantityUnit": "unit",
"designation": "Premium Widget",
"reference": "WID-123",
"description": "High-quality widget with advanced features",
"type": "sale_of_goods",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"isDeliveryOfGoods": true,
"isTaxIncluded": false
}
],
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": "[Circular Reference]",
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
}Mettre à jour les informations générales
API key authentication. Pass your API key as a Bearer token.
ID of the asset to update
Custom note to be displayed in the header of the billing
Thank you for your business!Custom note to be displayed in the footer of the billing
Please pay within 30 days.General terms and conditions of sale to be included in the billing
All goods remain our property until paid in full.Mention mediateur to be included in the billing
Mention mediateurOther payment method
LydiaAsset general informations updated successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueUnauthorized
Asset not found
PATCH /v2/billing/asset/{assetId}/general-informations HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 586
{
"headerNote": "Thank you for your business!",
"footerNote": "Please pay within 30 days.",
"generalTermsAndConditionsOfSale": "All goods remain our property until paid in full.",
"mentionMediator": "Mention mediateur",
"paymentMethods": [
"transfer",
"direct_debit"
],
"otherPaymentMethod": "Lydia",
"vatMention": "vat_not_applicable",
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
}
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Mettre à jour la timeline (date d'émission, échéance, etc.)
API key authentication. Pass your API key as a Bearer token.
ID of the asset to update
The timestamp when the invoice was emitted, in seconds
1617187200Custom due date for the invoice when payment delay is OTHER, in seconds
1619865600The timestamp for delivery date, in seconds
1617187200Asset timeline updated successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueUnauthorized
Asset not found
PATCH /v2/billing/asset/{assetId}/timeline HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"emittedAt": 1617187200,
"paymentDelay": "thirty_days",
"customDueDate": 1619865600,
"deliveryDate": 1617187200
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Mettre à jour la langue de l'avoir
API key authentication. Pass your API key as a Bearer token.
ID of the asset to update
Asset locale updated successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueUnauthorized
Asset not found
PUT /v2/billing/asset/{assetId}/locale HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"locale": "fr"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Mettre à jour la devise de l'avoir
API key authentication. Pass your API key as a Bearer token.
ID of the asset to update
Preferred currency of the customer
The conversion rate from the billing currency to the new currency
1.2Asset currency updated successfully
123e4567-e89b-12d3-a456-426614174000INV-2023-001Title of the billing document
Invoice Title16171872001617360000falsetruetruePreferred currency of the customer
1617619200161761920016176192001619865600falsetrue16176192001617619200ID of the theme applied to this document when set
123e4567-e89b-12d3-a456-42661417400016171872001619865600trueUnauthorized
Asset not found
PUT /v2/billing/asset/{assetId}/currency HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"currency": "EUR",
"currencyRate": 1.2
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617619200,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": "[Circular Reference]",
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": "[Circular Reference]",
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"refundAt": 1617187200,
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"dueAt": 1619865600,
"paymentDelay": "at_reception",
"includeDiscountDisbursement": true
}Finaliser un avoir
Une fois l'avoir en brouillon prêt, finalisez-le pour lui attribuer un numéro officiel. Un document finalisé ne peut plus être modifié.
API key authentication. Pass your API key as a Bearer token.
ID of the billing to finalize
Billing finalized successfully
Unauthorized
Invoice not found
PATCH /v2/billing/{billingId}/finalize HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"isOnlinePaymentActivated": true,
"isFinalInvoice": true,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"discountAmount": 100,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"reminder": {
"inCopy": true,
"frequency": "every_week",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"text"
]
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true,
"displayGoodForApproval": true,
"displayEstimateNumber": true
},
"paymentRequest": {
"idDemandePaiement": "123e4567-e89b-12d3-a456-426614174000",
"dateDebutEmploi": 1736408178,
"dateFinEmploi": 1736408178,
"dateVirement": 1736408178,
"advanceAlreadyPayed": "400",
"advancePaymentDate": 1736408178,
"mntVirement": "1200",
"statut": "112"
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1619865600,
"compatibilityVersion": "V2",
"isDeletable": false,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"dueAt": 1619865600,
"paidAt": 1617273600,
"lastReminderSentAt": 1617532800,
"isReminderActivated": true,
"designation": "Advance 10% of 1000€",
"isOnlinePaymentActivated": true,
"description": "Advance description",
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingReconciliateAmount": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
}
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"number": "INV-2023-001",
"title": "Invoice Title",
"type": "invoice",
"state": "paid",
"customer": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"legacyId": "123e4567",
"currency": "EUR",
"firstname": "John",
"lastname": "Doe",
"phoneNumber": "+33 6 12 34 56 78",
"emails": [
"john.doe@example.com"
],
"billingAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddress": {
"line1": "10 Rue Lecourbe",
"line2": "Apartment 4B",
"city": "Paris",
"zipCode": "75015",
"country": "FR"
},
"deliveryAddressIsSame": true,
"language": "fr",
"name": "John Doe",
"commercialName": "Doe Enterprises",
"siren": "123 456 789",
"siret": "123 456 789 00012",
"nafCode": "62.02A",
"vatNumber": "FR12345678900",
"token": "863aadf3-3cbe-4ba6-ad01-5c3edb05a669",
"parent": "[Circular Reference]",
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"contactId": "123e4567-e89b-12d3-a456-426614174001",
"organizationId": "123e4567-e89b-12d3-a456-426614174002",
"isDefault": true,
"test": false
},
"locale": "fr",
"emittedAt": 1617187200,
"archivedAt": 1617360000,
"opportunity": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Big Sale Opportunity"
},
"locked": false,
"finalizable": true,
"test": true,
"isEditable": true,
"currencyCode": "EUR",
"currency": {
"currencyCode": "EUR",
"currencyDate": 1617187200,
"currencyRate": 1.2,
"origin": "ECB"
},
"lastDownloadAt": 1617619200,
"attachments": [
{
"id": "text",
"name": "text",
"extension": "text",
"mimeType": "text",
"url": "text",
"relativeUrl": "text",
"isCertified": true,
"isCertifiable": true
}
],
"finalizeRequirements": [
{
"name": "hasValidAmount",
"message": "Le montant de la somme des avoirs ne peut pas être supérieur au montant total de la facture.",
"metadata": {
"lines": [
{
"lineId": "66e7fb6afcc1f7272c627fcd",
"driftHtCents": 3,
"driftTtcCents": 7,
"suggestedUnitAmountCents": 209479,
"suggestedIsTaxIncluded": false
}
],
"totalDriftHtCents": 3,
"totalDriftTtcCents": 7
}
}
],
"warnings": [
{
"title": "Titre du warning.",
"message": "Message de warning en français."
}
],
"emitter": {
"name": "John Doe Enterprise",
"fullName": "John Doe",
"email": "john.doe@example.com",
"phone": "+33 6 12 34 56 78",
"commercialName": "Le magasin de John Doe",
"siret": "12345678901234567890",
"vatNumber": "FR12345678901234",
"rcsNumber": "RCS Paris 552 100 554",
"rsacNumber": "RSAC Paris 552 100 554",
"legalStatus": "ei",
"sapAgreementNumber": "SAP123456789",
"hasVat": true
},
"bankInformation": {
"bic": "12345678901234567890",
"iban": "12345678901234567890",
"holder": "John Doe"
},
"billingLegals": {
"headerNote": "Header note",
"footerNote": "Footer note",
"generalTermsAndConditionsOfSale": "General terms and conditions",
"mentionMediator": "Mention mediateur",
"vatMention": "not_subject",
"paymentMethods": [
"credit_card",
"direct_debit"
],
"otherPaymentMethod": "Lydia"
},
"createdAt": 1617619200,
"updatedAt": 1617619200,
"deliveryDate": 1617619200,
"compatibilityVersion": "V2",
"isDeletable": true,
"displayDeliveryAddress": true,
"finalizedAt": 1617619200,
"lastSendByEmailAt": 1617446400,
"themeId": "123e4567-e89b-12d3-a456-426614174000",
"paymentDelay": "at_reception",
"expiredAt": 1619865600,
"refusedAt": 1619865600,
"signedAt": 1619865600,
"lines": [
{
"generatedId": "123e4567-e89b-12d3-a456-426614174000",
"id": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": 50,
"unitPriceHT": 50,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"quantityUnit": "hour",
"designation": "Consulting Services",
"reference": "CONS-001",
"description": "Detailed description of the service",
"isDeliveryOfGoods": true,
"type": "commercial_or_craft_services",
"vatCode": "FR_2000",
"personalServiceActivity": "BRICOLAGE",
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 1000,
"discount": {
"amount": 1000,
"mode": "PERCENTAGE"
},
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108,
"convertedAmounts": {
"priceWithoutTaxBeforeDiscount": 100,
"discountAmount": 10,
"priceWithoutTaxAfterDiscount": 90,
"vatAmount": 18,
"priceTotalTax": 108
},
"isTaxIncluded": false
}
],
"total": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"convertedAmounts": {
"amountWithoutTaxBeforeDiscount": 1100,
"amountWithoutTaxAfterDiscount": 1000,
"amountWithTaxAfterDiscount": 1200,
"remainingAmountWithoutTax": 500,
"remainingAmountWithTax": 600,
"remainingAmountToBill": 600,
"vatDetails": [
{
"vatCode": "FR_2000",
"amount": 200,
"vatRate": 20
}
],
"discountAmount": 100,
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100
},
"billedAmountWithoutTax": 100,
"billedAmountWithTax": 100,
"amountWithoutTaxBeforeDiscountWithoutDisbursement": 100,
"remainingAmountWithoutTaxWithoutDisbursement": 100
},
"discount": {
"mode": "PERCENTAGE",
"amount": 1000
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"displaySettings": {
"displayFullName": true,
"displayEmail": true,
"displayPhoneNumber": true,
"displaySAPAgreement": true,
"displayLegalStatus": true,
"displayRequiredMentionsProduct": true,
"displayGoodForApproval": true,
"displayMemberOfAnApprovedAssociation": true,
"displayAbbyLogo": true,
"displayTitle": true
},
"advances": "[Circular Reference]",
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceMode": "AMOUNT",
"advancePercentage": 10,
"advanceAmount": 1000,
"reminder": {
"inCopy": true,
"frequency": "on_due_date",
"numberOfRemindersToSend": 3,
"active": true,
"recipients": [
"john.doe@example.com"
]
},
"latePenalty": {
"value": "three_time_legal_rate",
"otherValue": "Trois fois le taux actuel en vigueur soit 6,2 %"
},
"lumpSumCompensation": {
"value": "forty_euros",
"otherValue": "Indemnité forfaitaire de 40€"
},
"discountAdvancePayment": {
"value": "none",
"otherValue": "Autre"
},
"hasAssociatedTransaction": false,
"includeDisbursement": true,
"canceledAt": 1617619200
}
],
"advanceEstimateLines": {
"advances": [
{
"value": 100,
"mode": "AMOUNT",
"paymentCondition": "ORDER"
},
{
"value": 25,
"mode": "PERCENTAGE",
"paymentCondition": "SIGNATURE"
}
],
"totals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
},
"convertedTotals": {
"totalAmountWithoutTax": 350,
"totalAmountWithTax": 350,
"remainingTotalAmountWithoutTax": 350,
"remainingTotalAmountWithTax": 350
}
},
"withElectronicSignature": true,
"electronicSignature": {
"id": "12345678901234567890",
"canceledAt": 1617619200,
"procedureId": "12345678901234567890",
"magicLink": "https://magic-link.com",
"signedAt": 1617619200,
"refusedAt": 1617619200,
"status": "requested"
},
"dueAt": 1619865600,
"electronicSignatureRequirements": [
{
"name": "hasNonEmptyCustomerContact",
"message": "Vous devez sélectionner un contact à votre organisation cliente pour pouvoir activer la signature en ligne."
}
],
"hasFinalInvoice": true,
"includeDiscountDisbursement": true
},
"advanceNumbers": [
"text"
],
"frequency": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"from": "text",
"to": "text",
"nextBillingAt": "text",
"frequency": 1,
"interval": "month",
"finalizeInvoice": true,
"sendByMail": true,
"inCopy": true
},
"hasAssociatedTransaction": false,
"includeDiscountDisbursement": true,
"expiredAt": 1617619200,
"canceledAt": 1617619200
}Télécharger un avoir
Vous pouvez télécharger un avoir en PDF et spécifier la langue appliquée sur le document.
API key authentication. Pass your API key as a Bearer token.
Locale for the PDF generation
Unauthorized
Billing document not found
GET /v2/billing/{billingId}/download HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
binaryEnvoyer un avoir par email
API key authentication. Pass your API key as a Bearer token.
ID of the billing document to send
List of email addresses to send the billing document to
["client@example.com"]Email subject
Your invoice #INV-2024-001Email content (HTML supported)
<p>Please find attached your invoice.</p>Whether to send a copy to the sender
falseExample: trueEmail sent successfully
Aucun contenu
Too many emails sent for this billing
Unauthorized
Plan feature not available
Billing document not found
POST /v2/billing/{billingId}/send-by-email HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"emails": [
"client@example.com"
],
"subject": "Your invoice #INV-2024-001",
"content": "<p>Please find attached your invoice.</p>",
"inCopy": true
}Aucun contenu
Mis à jour
Ce contenu vous a-t-il été utile ?

