Germany
Germany
Credit note
Changes to generic fields
invoiceRefsis required. Each value must be therefof an invoice that already exists on the same organisation (the API key decides the organisation).customInfo.deuis required.lines[].vat.codemust be a value from VAT code classification (UNTDID 5305), e.g.Sfor the standard rate.lines[].vat.exemptReasonis required on every line that is exempt or zero-rated.- When the payment means code is
58(SEPA credit transfer),paymentMeans[].account.ibanis required. Without it the API returns400 Payment code 58 (credit transfer) requires a payment account IBAN. Provide paymentMeans[].account.iban (BG-17 / BT-84). - All amounts are positive. The document type already marks the document as a credit.
recipient.address.line1is required for XRechnung.recipient.address.line2is required for XRechnung.recipient.address.cityis required for XRechnung.recipient.address.stateis required for XRechnung.recipient.address.countryis required for XRechnung.recipient.address.postalCodeis required for XRechnung.- XRechnung:
recipient.peppolId.endpointIdis required. - ZUGFeRD:
recipient.contact.emailis required.
type CreditNote {
// ...all generic credit note fields
invoiceRefs: string[];
notes?: string;
customInfo: {
deu: {
paymentCode?: CodeListUncl4461; // optional when paymentMeans[].code is provided
deliveryDate?: string;
};
};
recipient: {
// ...all other generic recipient fields
contact?: {
email?: string; // required for ZUGFeRD
};
peppolId?: {
endpointId: string; // required for XRechnung
};
};
lines: [
{
// ...all other generic line item fields
vat: {
type: 'percent' | 'fixed';
code: VatCodeUNTDID;
amount: number; // the VAT rate when type is percent
exemptReason?: string; // required when the line is exempt or zero-rated
};
}
];
paymentMeans?: [ // required when the payment code is 58: code + account.iban
{
code?: string;
ref?: string;
account?: {
iban?: string;
accountName?: string;
accountNumber?: string;
bic?: string;
bankName?: string;
branch?: string;
};
}
];
}Field information
| Name | Type | Required | Description |
|---|---|---|---|
invoiceRefs | string array | Yes | The ref values of existing invoices on the same organisation that this credit note corrects. |
customInfo.deu | object | Yes | Germany-specific fields. Must be present. |
customInfo.deu.paymentCode | string | Conditional | Payment means type code from Payment Means (UNTDID 4461), for example 58 for SEPA credit transfer. Optional when paymentMeans[].code is provided. Use the same code as on the credited invoice. VAT category codes such as E or S are not valid here. |
customInfo.deu.deliveryDate | string (ISO 8601 date) | Optional | Delivery date of the credited goods or services, in YYYY-MM-DD format. Recommended: send the delivery date of the credited invoice. |
recipient.contact.email | string | Conditional | Recipient email address. Required for ZUGFeRD. |
recipient.peppolId.endpointId | string | Conditional | Peppol ID of the recipient (eg. iso6523-actorid-upis::9930:uat-eezi-12345) Required for XRechnung. |
lines[].vat.type | string | Yes | percent or fixed. Use percent. |
lines[].vat.amount | number | Yes | With percent, the VAT rate (for example 19), not the VAT value. |
lines[].vat.code | string | Yes | A value from VAT code classification (UNTDID 5305), for example S (standard rate), E (exempt), Z (zero rated), K (intra-community supply), G (export outside the EU) or AE (reverse charge). |
lines[].vat.exemptReason | string | Conditional | A textual statement of the reason why the amount is exempted from VAT or why no VAT is being charged. Required when the line is exempt or zero-rated. Leave empty on standard-rated (S) lines. |
paymentMeans[].code | string | Conditional | Payment means type code. Required when customInfo.deu.paymentCode is 58; use the same code. |
paymentMeans[].ref | string | Optional | Remittance information linking the payment to the credit note. |
paymentMeans[].account.iban | string | Conditional | IBAN of the payment account, without spaces. Required when the payment code is 58. |
paymentMeans[].account.accountNumber | string | Optional | Payment account identifier. Only used when no IBAN is specified. |
paymentMeans[].account.accountName | string | Optional | Name of the payment account. |
paymentMeans[].account.bic | string | Optional | BIC (SWIFT code) of the bank. |
paymentMeans[].account.bankName | string | Optional | Name of the bank. |
paymentMeans[].account.branch | string | Optional | Branch identifier of the bank. |
notes | string | Optional | Free text notes for additional data. |
Supported Formats
| Scenario | Status | Format sent | Channel | Legal document | What the recipient gets |
|---|---|---|---|---|---|
| Buyer has a Peppol ID | Supported | XRechnung 3.0 (UBL) | Peppol | The XML | The XML, plus any PDFs you attached. eezi generates no PDF for XRechnung |
| No Peppol ID, email given | Supported | ZUGFeRD (EN 16931) | CII XML inside the PDF/A-3 | One PDF/A-3 that is both readable and machine-readable, plus your attachments |
Example request (ZUGFeRD)
{
"ref": "CN-2026-0001",
"issued": "2026-11-12",
"invoiceRefs": ["INV-2026-0001"],
"recipient": {
"name": "Example Kunde GmbH",
"taxId": "DE123456788",
"address": {
"line1": "Wilhelmstrasse 97",
"line2": "Haus A",
"city": "Berlin",
"state": "Berlin",
"country": "DEU",
"postalCode": "10117"
},
"contact": {
"email": "[email protected]"
}
},
"total": {
"amount": 119,
"currency": "EUR"
},
"lines": [
{
"description": "Consulting services",
"quantity": 1,
"unit": "C62",
"price": {
"amount": 100
},
"vat": {
"type": "percent",
"code": "S",
"amount": 19
}
}
],
"paymentMeans": [
{
"code": "58",
"ref": "CN-2026-0001",
"account": {
"iban": "DE89370400440532013000"
}
}
],
"customInfo": {
"deu": {
"paymentCode": "58",
"deliveryDate": "2026-11-10"
}
}
}Example of an exempt line (replaces the line above; adjust total.amount to match):
{
"description": "Consulting services",
"quantity": 1,
"unit": "C62",
"price": {
"amount": 100
},
"vat": {
"type": "percent",
"code": "K",
"amount": 0,
"exemptReason": "Intra-community supply"
}
}Example CSV file
Updated 10 days ago
Did this page help you?