Balance and fees

The service is prepaid. Registrations, renewals, transfers and restores are deducted from your account, and an operation your balance will not cover is refused with 2104 — nothing registered, nothing charged.

Two extensions matter here: ours, which tells you what you have, and the standard fee extension, which tells you what something costs.

What you have — balance:info

An <info> command carrying an empty element in the balance namespace. It deducts nothing, so check before a batch.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <command>
    <info>
      <balance:info xmlns:balance="http://namespace.com.ua/epp/balance-1.0"/>
    </info>
    <clTRID>EXAMPLE-1-bal-0001</clTRID>
  </command>
</epp>
<resData>
  <balance:infData xmlns:balance="http://namespace.com.ua/epp/balance-1.0">
    <balance:creditLimit>0.00</balance:creditLimit>
    <balance:balance>12480.00</balance:balance>
    <balance:availableCredit>12480.00</balance:availableCredit>
  </balance:infData>
</resData>
FieldMeaning
creditLimityour agreed credit line — usually 0.00
balanceyour total, including anything currently held
availableCreditwhat you can actually spend: creditLimit + balance − funds held by operations in flight

Amounts are in your account currency.

The number that decides, and it is not balance

Every chargeable operation holds its price from the moment it is accepted until it settles. So while a batch is running, availableCredit is lower than creditLimit + balance, and it is availableCredit that the next command is checked against.

Size a batch against availableCredit. A client that reads balance, divides by the price and fires that many registrations will meet 2104 partway through — not because the money was spent, but because it was committed.

What something costs — the fee extension

Declare urn:ietf:params:xml:ns:epp:fee-1.0 at login. Then:

  • a check quotes what the operation would cost, before you commit;
  • a create, renew, transfer or restore reports what it actually cost.

The amount in the answer is the amount taken. It is not an estimate and it is not a list price: it is yours, for that name, for that term, on your plan.

Ask rather than assume. A price depends on the zone, the operation, the term, and whether the name is premium — and premium names are the usual reason a client that hard-codes a per-zone price eventually charges a customer the wrong amount. Asking costs one round trip and nothing else.

The command pages carry the complete exchanges: a price query with <fee:check> and its <fee:chkData> answer are on domain check, and agreeing an amount with <fee:create> and its <fee:creData> answer are on domain create.

For a domain you sponsor, domain info also carries your renewal and restore prices in <nspc:priceData>.

When you run out

2104 is a clean refusal: the command did nothing, your balance is untouched, and sending the same command again after a top-up is correct.

It is also the code to branch on in your own billing. A customer's order that fails with 2104 is not a failed order — it is an order waiting on your account, and it will succeed unchanged.

Low balance

A notice arrives in the message queue before you run out. It is the only warning the protocol gives you, and the reason to drain the queue on a schedule rather than when something breaks — a registration refused at nine on a Monday because nobody read Friday's notice is an avoidable outage.


On this page