InvoicingFinalize issued e-invoice (assign invoice number + store Peppol BIS XML)

Finalize issued e-invoice (assign invoice number + store Peppol BIS XML)

Finalizes an e-invoice draft (created by /v2/documents/invoice-issue with EINVOICE_DRAFT): assigns the invoice number, sets the issue date, generates and stores the final Peppol BIS 3.0 XML and makes the invoice exportable. The number priority is the explicit invoiceNumber of this call, then the number requested on the draft at invoice-issue (used exactly as sent), then the number assigned by a previous finalize attempt, then the next number from the organization number range.

curl -X POST "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v2/documents/invoice-finalize" \
  -H "Content-Type: application/json" \
  -H "api_key: YOUR_API_KEY" \
  -d '{
  "data": {
    "organizationId": "example_string",
    "documentId": "example_string",
    "invoiceNumber": "example_string",
    "variableSymbol": "example_string",
    "includeAllAttachments": true
  }
}'
{
  "data": {
    "documentId": "example_string",
    "invoiceNumber": "example_string",
    "peppolStatus": "example_string"
  },
  "success": true,
  "message": "example_string",
  "code": "APP_UNAUTHENTICATED"
}
POST
/v2/documents/invoice-finalize
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: api_key)
api_keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Authentication

header
api_keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
dataobject

Responses

dataobject
successboolean
messagestring

optional message to help user understand error code

codestring
Allowed values:APP_UNAUTHENTICATEDAPP_INCORRECT_INPUT_DATASAVE_DATA_ERROR_CODE