Germany

Germany

Credit note

Changes to generic fields

  • invoiceRefs is required. Each value must be the ref of an invoice that already exists on the same organisation (the API key decides the organisation).
  • customInfo.deu is required.
  • lines[].vat.code must be a value from VAT code classification (UNTDID 5305), e.g. S for the standard rate.
  • lines[].vat.exemptReason is required on every line that is exempt or zero-rated.
  • When the payment means code is 58 (SEPA credit transfer), paymentMeans[].account.iban is required. Without it the API returns 400 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.line1 is required for XRechnung.
  • recipient.address.line2 is required for XRechnung.
  • recipient.address.city is required for XRechnung.
  • recipient.address.state is required for XRechnung.
  • recipient.address.country is required for XRechnung.
  • recipient.address.postalCode is required for XRechnung.
  • XRechnung: recipient.peppolId.endpointId is required.
  • ZUGFeRD: recipient.contact.email is 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

NameTypeRequiredDescription
invoiceRefsstring arrayYesThe ref values of existing invoices on the same organisation that this credit note corrects.
customInfo.deuobjectYesGermany-specific fields. Must be present.
customInfo.deu.paymentCodestringConditionalPayment 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.deliveryDatestring (ISO 8601 date)OptionalDelivery date of the credited goods or services, in YYYY-MM-DD format. Recommended: send the delivery date of the credited invoice.
recipient.contact.emailstringConditionalRecipient email address. Required for ZUGFeRD.
recipient.peppolId.endpointIdstringConditionalPeppol ID of the recipient (eg. iso6523-actorid-upis::9930:uat-eezi-12345) Required for XRechnung.
lines[].vat.typestringYespercent or fixed. Use percent.
lines[].vat.amountnumberYesWith percent, the VAT rate (for example 19), not the VAT value.
lines[].vat.codestringYesA 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.exemptReasonstringConditionalA 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[].codestringConditionalPayment means type code. Required when customInfo.deu.paymentCode is 58; use the same code.
paymentMeans[].refstringOptionalRemittance information linking the payment to the credit note.
paymentMeans[].account.ibanstringConditionalIBAN of the payment account, without spaces. Required when the payment code is 58.
paymentMeans[].account.accountNumberstringOptionalPayment account identifier. Only used when no IBAN is specified.
paymentMeans[].account.accountNamestringOptionalName of the payment account.
paymentMeans[].account.bicstringOptionalBIC (SWIFT code) of the bank.
paymentMeans[].account.bankNamestringOptionalName of the bank.
paymentMeans[].account.branchstringOptionalBranch identifier of the bank.
notesstringOptionalFree text notes for additional data.

Supported Formats

ScenarioStatusFormat sentChannelLegal documentWhat the recipient gets
Buyer has a Peppol IDSupportedXRechnung 3.0 (UBL)PeppolThe XMLThe XML, plus any PDFs you attached. eezi generates no PDF for XRechnung
No Peppol ID, email givenSupportedZUGFeRD (EN 16931)EmailCII XML inside the PDF/A-3One 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

Credit note - Germany.csv


Did this page help you?