AttestwireRule referenceBR-61

BR-61 A credit transfer must state the account to pay into

noun · EN 16931 · fatal · BT-84

For a sample invoice, the library reports: The payment means type code (BT-81) is "58", which means a credit transfer, so the payment account identifier (BT-84) must be present. You have told the buyer to transfer money without saying where to.

Business term
BT-84
Severity
fatal

The fix

Set payment.iban to the receiving account (IBAN inside SEPA). Add payment.bic only if the account is outside SEPA or your bank requires it.

A passing value

the shape this field expects
"payment": { "meansCode": "58", "iban": "DE02120300000000202051" }

What the library returns

The full error returned by @attestwire/en16931. It includes the rule ID, affected field and suggested correction. Developers can use this object in their application:

TeachingError
{
  "rule": "BR-61",
  "field": "BT-84",
  "severity": "fatal",
  "message": "The payment means type code (BT-81) is \"58\", which means a credit transfer, so the payment account identifier (BT-84) must be present. You have told the buyer to transfer money without saying where to.",
  "fix": "Set payment.iban to the receiving account (IBAN inside SEPA). Add payment.bic only if the account is outside SEPA or your bank requires it.",
  "example": "\"payment\": { \"meansCode\": \"58\", \"iban\": \"DE02120300000000202051\" }",
  "xpath": "/ubl:Invoice/cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:ID",
  "docsUrl": "https://attestwire.com/rules/BR-61"
}

xpath is always a UBL path. On a CII invoice, look for the matching CII field instead.