---
title: Validate Or Generate Barcode Check Digits API
slug: validate-barcode-check-digits
url: https://apyhub.com/creightonnick0/service/validate-barcode-check-digits
provider: nick creighton
categories: [Data Validation, Developer Tools, E-commerce Quick Tools]
tags: [barcode-validation, check-digit, ean, upc, isbn, product-codes]
auth: api_key
---

# Validate Or Generate Barcode Check Digits API

Validate or generate barcode check digits for EAN, UPC, and ISBN values. Returns validity and check-digit fields for product data checks.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `` | What it does Validates a barcode’s check digit or generates/returns the check digit information for… | 10 |

## About

## What it does
Barcode Check Digit Validator checks or generates barcode check digits for EAN, UPC, and ISBN values. Send a `barcode` string, and use `mode` to validate a full code, generate a check digit for the body, or calculate the check digit directly.

The response tells you whether the barcode is `valid` and may include the detected `format`, `length`, the normalized `barcode`, and check-digit fields such as `check_digit` and `expected_check_digit`. That makes it useful when you need to catch mistyped product codes, verify imported catalog data, or finish building a barcode before storing or printing it.

Use it in inventory systems, product feeds, checkout flows, or admin tools where barcode accuracy matters. It gives you a small, focused validation step without having to implement barcode math in your own service.

If you already have a full code, validate it. If you only have the body, generate the check digit and compare the result before moving the record downstream.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/creightonnick0/service/validate-barcode-check-digits
