Console guide: customers

Draft. Written from the repository's documents and code; not yet reviewed by the owner.

How to find, add, change and block a customer in the console. This page is a guide to the screens; the API is in the reference and the usage-based billing tutorial shows the calls.

It was written from the console's own texts (every name in bold is a string of the English console) and its pages' code. It has not been checked by following it on a screen with a person, and the console changes faster than this page: where they differ, the console is right.

Where it is

In the sidebar, under Customers and billing, the first item is Customers. Your app usually creates customers through the API (POST /v1/customers, with its own id as the customer's external_id); the console is for looking at them and for the odd one added or fixed by hand.

The list

Search by name, e-mail, customer id or tax id (Search name, e-mail, customer id, tax id). The filters are the country, the currency, the subscription (Has an active subscription or No active subscription) and the billing state (Open invoices or Delinquent). The columns are Customer, Subscriptions, Currency, Country, Total spend, Created and Last payment.

Spend, balances and last payments are worked out from the newest invoices and payments. On a customer with a long history they are a recent picture, not a ledger: the ledger is the invoices and payments themselves.

A row's menu has the same actions as the sheet and one more, Quotas: the customer's own limits, which override those of their package, shown with their usage in force.

Tick rows to act on several at once: Export selected as CSV, Block and Lift the block. A bulk action says how many rows it changed and how many it could not.

Adding a customer

New customer opens a sheet with: Customer id (the id your app uses for them; it cannot be taken by another customer), Name, E-mail, Billing currency (left alone, it is the Account's currency), then the profile and the address.

The profile decides how the customer is addressed:

The Billing address is a country, State / region, City, Address line 1, Address line 2 and Postal code. The country of the address is the customer's country, which sets the tax rate used on their invoices (see Pricing).

Save with Create customer.

The customer's sheet

Opening a row shows the customer's sheet. At the top, the customer's id with a copy button and the day the customer was created, then four figures: Total spend, Open balance, Credit balance and Active subscriptions. The sections are Overview, Payments, Invoices, Subscriptions, Credits, Details and Agreements.

Actions on the sheet:

Upcoming invoice shows what the open period would be invoiced if it were drafted now. An estimate as of {when}, worked out the way the real invoice is. It moves with every event until the period closes, and a plan change, coupon or tax rate set later can change it.

The payment page

Payment page is the customer's own page, which shows their invoices, payments and credits, opened from a link. Copy link and Open page give it to the customer; Regenerate link makes a new one and the old ones stop working; Revoke all stops every link. The link is valid for a number of days that the page states. The same link can be made with POST /v1/customers/{external_id}/portal-links.

Tax data

Tax data holds what e-invoices carry: Tax id (VKN/TCKN or VAT id), Tax office and Registered for e-fatura. Save with Save tax data.

The form only hints. A number that does not look like the kind of number the customer should have (a TCKN for an individual in Turkey, a VKN for a business there, the shape and check digits of a VAT id for a business in the EU) gets a warning and you can still save it; the sheet's Details section then says This number does not look right for this customer. Open the tax data to see why. The checks are local: they do not look the number up at any registry.

Blocking a customer

Block stops a customer from starting anything new. No new subscription, plan change or purchase can be started for them. What they have now runs on. The form asks:

A blocked customer wears a Blocked badge. Lift the block removes it, and Block history lists every block and lift with who made it and when.