Get an invoice or credit-note example
get_invoice_exampleReturn a complete invoice or credit-note example to edit and pass to generate_invoice.
Use this first, instead of inventing fields. No API key is required, and the call does not count
as a document. The seller and buyer are sample data: replace them, the number, the dates and the
lines before you generate. For credit_note, also replace preceding_invoices with the original invoice reference.
To credit a real invoice already in hand, use draft_credit_note instead of this synthetic example.
Amounts are positive decimal strings. Nothing is stored, and no file
is created. Returns the invoice plus the profile and check to pass to generate_invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | en16931 (default) or extended-ctc-fr. The body is the same. extended-ctc-fr sets party_check so generate_invoice asks EU Verify before emitting a file. | en16931 |
| document_type | No | invoice (default): type 380; credit_note: type 381 with a sample original-invoice reference. | invoice |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||