Coding in bookkeeping: customer, supplier and product codes
Updated 13 November 2026
Short answer: Codes are short references given to customers, suppliers, products and general ledger accounts so that every transaction is recorded in exactly the right place. They can be numerical, alphabetical or alphanumerical (the terms AAT uses), and must be unique.
Why codes are used
- Two customers can share a name; a code is unique.
- Codes are quicker to enter and harder to misspell.
- Digital systems use codes to post entries automatically to the right account.
- Codes make it easy to analyse sales or costs, for example by product.
Types of code
| Code | Used for | Example |
|---|---|---|
| Customer code | Each credit customer's account in the receivables ledger | HOL04 for Holt & Daughters |
| Supplier code | Each credit supplier's account in the payables ledger | S118 for Tilbury Timber |
| Product code | Each item or product group sold | GF-220 for a garden bench |
| General ledger code | Each account in the general ledger | 4000 Sales, 5000 Purchases |
| VAT code | The VAT rate that applies in a digital system | Standard, zero-rated, exempt |
Numerical, alphabetical and alphanumerical
- Numerical: digits only, such as 4100. Easy to sort and to group in ranges.
- Alphabetical: letters only, such as HOLT. Easy to recognise, harder to keep unique.
- Alphanumerical (also called alphanumeric): both, such as HOL04. Recognisable and unique, so very common for customers and suppliers.
The mistakes that cost marks
- Using a supplier code for a customer, or a product code for a general ledger account.
- Breaking the pattern a task shows you.
- Coding an invoice to a customer with a similar name instead of matching the code exactly.
Coding is tested in Task 1 of Introduction to Bookkeeping, and codes appear throughout. Sit a free mock to practise.
Free practice
Practise this now: free questions
A few questions on this topic (about 10 minutes), set out exactly like the exam, checked on this page. Free. Enter your email to see your marks.
Questions students ask
›What is an alphanumeric code?
A code made of letters and numbers, such as HOL04. AAT calls it an alphanumerical code.
›Why do businesses use customer codes?
To make sure each transaction is recorded in the right customer's account, even if two customers have similar names.
›What is a general ledger code?
A number or reference for each account in the general ledger, used to post transactions, especially in digital systems.
Test yourself under exam conditions
A full, timed Introduction to Bookkeeping mock that looks and works like the real assessment, marked instantly with your weakest skills. The first one is free.