Short answer: on every order, a B2B portal should calculate the dealer's "available limit": the credit limit, minus the open account balance, minus open orders not yet invoiced, minus the risk of customer cheques and notes not yet due; if you work with DBS (Türkiye's bank-backed direct debit system), the bank's DBS limit is a separate guarantee line and the two limits must not be mixed up
For a firm selling on credit to a dealer network, the most expensive uncertainty is this: goods were shipped, the invoice was issued, but nobody knows whether the money will arrive on the due date. With phone orders, accounting or the sales manager checks this by hand. In a B2B portal, orders arrive at midnight too; the system has to do the check, and the rules have to be written in advance.
This article explains how to design account balance, credit limit, due date and DBS (Doğrudan Borçlandırma Sistemi, direct debit system) checks in a B2B portal, which over-limit scenarios to plan for, and how this connects to account records in ERP. The formula, scenario table and recommendations are our suggestions; how DBS works is based on explanations by banks and sources covering the topic.
Separate four concepts: balance, limit, due date, risk
Before building the portal, pin down the four concepts that are most often confused:
| Concept | What it means | Where it lives |
|---|---|---|
| Account balance | What the dealer owes you today (invoices minus collections) | ERP |
| Credit (risk) limit | The maximum open credit you give the dealer; your internal decision | ERP |
| Due date | When an invoice must be paid; overdue debt is tracked separately | ERP |
| Risk | Obligations not yet in the balance: open orders, shipments with a waybill but no invoice, customer cheques and notes not yet due | ERP (partly the portal) |
The most common mistake is a portal that only looks at the account balance. Even if the balance looks below the limit, a large open order that has not been invoiced yet means a new order actually breaks the limit.
How is the available limit calculated?
The calculation we recommend:
Available limit = Credit limit − Open account balance − Open orders not invoiced − Shipments not invoiced − Risk of customer cheques/notes not yet due (depending on your policy)
Example (figures are illustrative, not from a real dealer):
| Item | Amount |
|---|---|
| Credit limit | 500,000 TL |
| Open account balance | 280,000 TL |
| Approved orders not yet invoiced | 120,000 TL |
| Shipped with a waybill, not invoiced | 40,000 TL |
| Available limit | 60,000 TL |
If this dealer places a 90,000 TL order in the portal, a system that only looks at the balance lets it through (280,000 + 90,000 < 500,000); a system that calculates correctly sees a 30,000 TL excess. Whether cheques and notes count as risk depends on how much you trust them until they are collected; that is a finance policy decision, not a software one.
Every item in this calculation comes from ERP. The portal should not keep its own figure; it should read current values from ERP at the moment of the order, and the rule for when it cannot (connection down) must also be defined. We described integration methods in our connecting a dealer portal to ERP article, and due date and account management for wholesalers in our wholesaler ERP article.
Over-limit scenarios: what should the system do?
"Block the order if the limit is exceeded" is not a sufficient rule on its own. Write down what happens in each case (scenarios and recommendations are our compilation):
| Scenario | Suggested behaviour |
|---|---|
| Order below the available limit, no overdue debt | Automatic approval |
| Order exceeds the limit | Order goes to "awaiting approval"; the dealer sees the excess amount; finance or the sales manager is notified |
| Within the limit but with overdue debt | By day threshold: a warning below it, approval required above it |
| Dealer pays the excess immediately by card or transfer | Once payment is confirmed, the order moves to approval automatically |
| Limit guaranteed by the bank's DBS limit | The available DBS limit is checked separately (below) |
| ERP cannot be reached | The order is accepted but not auto-approved; it is rechecked when the connection returns |
| Temporary limit increase during a promotion | An extra limit with start and end dates; it reverts automatically when it ends |
| Several users at one dealer | The limit is at dealer level; a per-user order amount cap can be added |
What to show the dealer is also a decision. Our recommendation: the dealer sees its own available limit, open balance, overdue amount and upcoming due dates, but not the internal risk rating or how the limit was set. A dealer who can see its own position does not call to ask "why wasn't it shipped?".
What is DBS and where does it fit in the portal?
DBS (direct debit system), as Akbank describes it, is a system where the main company sends invoice data to the bank, invoice amounts are guaranteed by blocking the dealer's DBS credit limit until they are paid at maturity, and the bank collects automatically on the due date; if the dealer's account lacks funds, the blocked limit is turned into a loan. Invoice data reaches the bank through corporate internet banking, sFTP or a web service.
Points that matter for portal design:
- There are two separate limits. The internal credit limit you give a dealer and the DBS limit the bank allocates to that dealer are different things. The DBS limit depends on the bank's credit assessment; according to Tahsildar's DBS guide, new dealers or those with a weak trading history may not get a limit, so in practice DBS covers only part of a dealer network.
- The limit has a cost. Akbank states that a commission is charged on the credit limit given to dealers and that it can be paid by the main company, the dealer, or shared. This affects whether DBS dealers get different due dates or prices in the portal.
- Several banks reduce visibility. Tahsildar notes that when working with DBS at several banks, each bank has its own portal and file format, and the same dealer's total risk is not visible on one screen. The portal or ERP should bring the dealer's available DBS limit across all banks into one line.
- Limit data must be current. How often you get DBS limit and block data from the bank (web service or daily file) determines how old the value shown in the portal is; showing it to the dealer with a "last updated" time prevents wrong expectations.
The check order we recommend: the order first looks at the available DBS limit; if the DBS amount is exceeded, the remainder falls to the internal credit limit; if neither is enough, it goes for approval. Which order is booked to DBS and which to open account must be tracked separately on the invoice and in ERP, or reconciliation on the due date becomes hard.
How does it connect to ERP?
For this check to work reliably, the following must be ready on the ERP side (the checklist is our suggestion):
- ☐ Every dealer account has a credit limit, payment terms and a risk group
- ☐ Open order and uninvoiced shipment amounts can be queried
- ☐ Overdue debt and the number of days overdue are calculated
- ☐ Cheque and note risk is tracked per account
- ☐ DBS dealers and their banks are flagged; DBS limit and blocked amount are received from the bank and recorded
- ☐ Who approves orders sent for approval, and how fast, is defined
- ☐ Limit changes are logged (who, when, why)
We covered price, promotion and credit limit rules together in our B2B site for wholesalers article, and the B2B system as a whole in our B2B system guide.
Frequently Asked Questions
Should orders from a dealer whose credit limit is full be blocked completely?
Usually not. Blocking completely leads to lost sales and orders by phone. A healthier approach is to put the order in "awaiting approval", show the dealer the excess amount, and let it pay the excess immediately to move the order to approval.
Is the DBS limit the same as the credit limit we give?
No. Your credit limit is an internal, unsecured decision. The DBS limit is a bank loan allocated to the dealer that guarantees invoice amounts by blocking them until the due date. Track them separately and show them separately in the portal.
Should dealers see their own limit in the portal?
In our view, yes: the available limit, open balance, overdue amount and upcoming due dates should be visible. The internal risk rating and how the limit was set should not. A dealer who sees its own position calls less and plans its payments.
Why should open orders count against the limit?
Because an approved order that has not been invoiced is debt that will be added to the balance within days. A system that only looks at the balance lets a few orders on the same day push the dealer over its limit in practice.
If you want to assess limit, due date and DBS rules together with a B2B portal and ERP integration for your dealer network, take a look at our custom software development service or contact us.
Sources: Direct Debit System (Akbank), What is DBS? Direct Debit System Guide (Tahsildar)
Cover photo: Blake Wisz / Unsplash