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.

Drill this topicJump to free practice questions ↓Earn a medal and XP for every drill

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

CodeUsed forExample
Customer codeEach credit customer's account in the receivables ledgerHOL04 for Holt & Daughters
Supplier codeEach credit supplier's account in the payables ledgerS118 for Tilbury Timber
Product codeEach item or product group soldGF-220 for a garden bench
General ledger codeEach account in the general ledger4000 Sales, 5000 Purchases
VAT codeThe VAT rate that applies in a digital systemStandard, 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.
Worked exampleWorked example: following a code pattern
Existing codes: ASH01 Ashby Supplies, BRO01 Brookside Nursery, BRO02 Brown & Co
New customer: Broadway Garden Centre
Next code: BRO03 (first three letters, then the next number)

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.

Sit a free mock

Related