latestOpenAPI 3.0.4Altoviz license2026-08-18118107150.6 KB

e65392ac5b5f

SaleCredits

Finalize a draft credit

post/v1/salecredits/finalize/{id}

Path parameters

idinteger required

Draft credit ID

Query parameters

finalizationDatestring date

Date the credit is finalized on. Defaults to the credit's own date.

dateAdjustment'None' | 'MinimumDate' | 'Today'

How the credit date is recalculated when it prevents finalization, i.e. when it is earlier than the last finalized credit or too far in the future. None (default): keep the date, finalization fails. MinimumDate: use the date of the last finalized credit. Today: use today's date. When finalizationDate is also supplied, it is used first and this only applies if that date cannot be finalized on. Due dates are recalculated from the resulting date.

Response

OK

balancenumber double

Balance

cancellationInvoiceIdinteger nullable

ID of the invoice that cancelled this credit

cancellationInvoiceNumberstring nullable

Number of the invoice that cancelled this credit

cancelledInvoicetIdinteger nullable

Invoice ID which this credit cancelled

cancelledInvoicetNumberstring nullable

Invoice number which this credit cancelled

customerElectronicAddressstring nullable

Customer electronic address

customerIdinteger nullable

Customer ID

customerNamestring nullable

Customer name

customerNumberstring nullable

Customer number

customerOrderReferencestring nullable

Customer order reference

customerSiretstring nullable

Customer SIRET

customerType'Business' | 'Consumer' | 'Government'
customerVatNumberstring nullable

Customer VAT number

datestring date nullable

Date

footerNotesstring nullable

Footer notes to be print

grossTaxExcludedAmountnumber double

Gross tax excluded amount

headerNotesstring nullable

Header notes to be print

idinteger

Invoice ID

internalIdstring nullable

ID used in your system

internalNotesstring nullable

Internal notes

isCancelledboolean

True when this credit has itself been cancelled by an invoice

isDraftboolean

Indicates whether invoice is draft. Otherwise invoice cannot be modified

isPaidboolean

Indicates whether invoice is paid

liableToVatboolean nullable

Indicates whether the document is liable to VAT

metadataobject nullable

Metadata

numberstring nullable

Number

overduenumber double

Overdue

pdfUrlstring nullable

Pdf url

publicLinkstring nullable

Public link

region'FR' | 'EU' | 'IE' | 'DOM' | 'Corse' | 'Monaco'
replacedByinteger nullable

ID of the corrected credit that replaces this one

sentAtstring date-time nullable

Sent at

shippingAmountnumber double

Shipping amount

subjectstring nullable

Subject

taxAmountnumber double

Total tax amount

taxExcludedAmountnumber double

Tax excluded amount (discount included)

taxIncludedAmountnumber double

Tax included amount

useTaxIncludedPricesboolean

Indicates whether invoice prices and amount are tax included

vatMode'Auto' | 'Debit' | 'Collection'
vatNotestring nullable

VAT note to print

vatReverseChargeboolean

VAT reverse charge

vendorReferencestring nullable

Vendor reference to be print