file-linesFactures

Une facture est un document associé à un client, qui peut être un contact, une organisation ou un contact d'organisation. Ils contiennent des lignes de factures ainsi que des informations générales.

Une facture créée est dans un état brouillon tant qu'elle n'a pas été finalisée.

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

post
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
customerIdstringRequis
Réponses
post
/v2/billing/invoice/{customerId}

Update billing lines

patch
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
billingIdstringRequis

ID of the billing to update

Corps
Réponses
chevron-right
200

Billing lines updated successfully

application/json
Réponseone of
ou
ou
patch
/v2/billing/{billingId}/lines

Update invoice general informations

patch
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
invoiceIdstringRequis

ID of the invoice to update

Corps
headerNotestringOptionnel

Custom note to be displayed in the header of the billing

Example: Thank you for your business!
footerNotestringOptionnel

Custom note to be displayed in the footer of the billing

Example: Please pay within 30 days.
generalTermsAndConditionsOfSalestringOptionnel

General terms and conditions of sale to be included in the billing

Example: All goods remain our property until paid in full.
mentionMediatorstringOptionnel

Mention mediateur to be included in the billing

Example: Mention mediateur
paymentMethodsstring[]Optionnel

Array of accepted payment methods for the billing

Example: ["transfer","direct_debit"]
otherPaymentMethodstringOptionnel

Other payment method

Example: Lydia
vatMentionall ofOptionnel

Vat mention applicable for a billing

Example: vat_not_applicable
string · enumOptionnelValeurs possibles:
isOnlinePaymentActivatedbooleanOptionnel

Indicates if online payment is activated for this invoice

Example: true
Réponses
chevron-right
200

Invoice general informations updated successfully

application/json
patch
/v2/billing/invoice/{invoiceId}/general-informations

Update invoice timeline

patch
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
invoiceIdstringRequis

ID of the invoice to update

Corps
emittedAtnumberRequis

The timestamp when the invoice was emitted

Example: 1617187200
paymentDelayall ofRequis

The payment delay for the invoice

Example: thirty_days
string · enumOptionnelValeurs possibles:
customDueDatenumberOptionnel

Custom due date for the invoice when payment delay is OTHER

Example: 1619865600
deliveryDatenumber | nullableOptionnel

The timestamp for delivery date

Example: 1617187200
Réponses
chevron-right
200

Invoice timeline updated successfully

application/json
patch
/v2/billing/invoice/{invoiceId}/timeline

Finaliser une facture

Une fois que la facture en brouillon est prête, vous pouvez finaliser le document. Une document finalisé ne peut-être modifié par la suite. Un numéro de facture lui sera attribué.

L'ancien endpoint /v2/billing/invoice/{invoiceId}finalize a été déprécié en faveur de celui-ci dessous

Finalize a billing document

patch
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
billingIdstringRequis

ID of the billing to finalize

Réponses
chevron-right
200

Billing finalized successfully

application/json
Réponseone of
ou
ou
ou
patch
/v2/billing/{billingId}/finalize

Télécharger un document

Vous pouvez télécharger un document en format PDF et spécifier la langue appliquée sur le document

Download a billing document

get
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
billingIdstringRequis
Paramètres de requête
localestring · enumOptionnel

Locale for the PDF generation

Valeurs possibles:
Réponses
chevron-right
200Succès
application/pdf
Réponsestring · binary
get
/v2/billing/{billingId}/download

Mis à jour

Ce contenu vous a-t-il été utile ?