telco

Refusals

Every stable refusal code: when it happens and what to do.

On this page

Every error is a Refusal with a stable code, a message, and where available at (file:line:column, a key path, or a usage id) and fix. Codes never change meaning; match on them, not on messages.

Compiling a book

CodeWhenFix
book.parseA file is not UTF-8 or not valid TOMLThe message names line and column
book.unknown-keyA key the format does not defineThe fix names the nearest valid key
book.missingbook.toml, the [book] header or a required key is missingAdd it
book.invalid-valueAn amount, date, quantity, Takt or currency has the wrong formAmounts are strings with a decimal point: "49.99"
book.duplicateAn id is defined twice, a kind is priced twice or draws on two allowancesKeep one
book.referenceA plan, kind, tax schedule or recurring item that is not definedDefine it or fix the name
book.measure-mismatchKinds of different measures in one charge or allowanceSplit the charge
book.negative-priceA negative amount outside a discountUse a discount
book.limitToo many files, plans or tiers, a file over 1 MiB, an amount over 10¹²Split the book
book.eu-capAn intra-EU call or SMS price above Regulation (EU) 2015/2120 Art. 5a (rule EU-2015-2120-5a-cap)Price at most 0,19 €/min or 0,06 €/SMS excluding VAT

Rating

CodeWhen
rate.unknown-planThe subscription's plan is not in the book
rate.unknown-kindA usage kind the book does not define
rate.unpriced-kindA usage kind the plan neither prices nor includes
rate.outside-periodA usage record dated outside the month or the contract
rate.duplicate-usageTwo usage records with the same id in one call
rate.empty-idA usage record without an id
rate.out-of-orderA batch earlier than the previous batch of the period
rate.no-tax-rateNo VAT rate is valid on a date
rate.overflowAn amount or quantity exceeds the representable range
rate.invalid-subscriptionThe contract ends before it starts

Contracts

CodeWhenRule
contract.term-too-longA consumer contract binds for more than 24 monthsDE-TKG-56-1-term
contract.notice-too-longA consumer's notice before the end of the initial term exceeds one monthDE-BGB-309-9-c-notice
contract.invalid-termsA term over 120 months or a notice over 24 months—
contract.addon-extends-termAn add-on would extend the term without the customer's express consentDE-TKG-66-3-addon
subscription.transitionA lifecycle step that is not allowed (e.g. restricting an ordered subscription)—

A refusal that a law decided carries the rule id in rule.

Bills

CodeWhen
bill.unknown-bookA plan assignment pins a price-book version that is not loaded; the account's bill is held
bill.mixed-pricesOne account's subscriptions use gross and net books

Documents and letters

CodeWhen
document.issuer-invalidThe operator's data lacks a field a bill must carry (§ 62 Abs. 1 TKG, § 14 Abs. 4 UStG) or has an invalid IBAN, BIC or creditor id; at names the field
document.payment-invalidA direct debit without mandate reference, with an invalid IBAN, or without the operator's creditor id
letter.not-applicableThe renewal notice is asked for a business contract, a contract that does not renew, a terminated one, or after the last day to cancel

Totals and inputs

CodeWhen
totals.mixed-booksCharges from another book were totalled with this one
input.invalidA period string or a date has the wrong form

Download Markdown