Skip to content

Barcode in use

HTTP 409barcode_taken

When the API answers 409 barcode_taken, and how to fix it.

Version v1.1, updated

The type field of every barcode_taken response links to this page.

On this page

Another product of the company already has this barcode. A barcode is unique across all the products of a company.

At a glance

  • Status: 409 Conflict

  • Code: barcode_taken

  • Retry: No. Fix the cause first: the same request gets the same answer.

Causes and fixes

Likely cause

How to fix it

The product exists already, under another SKU or external id.

Find it with GET /v1/products?barcode=..., then update that product instead.

Two products of your system share a barcode.

Give each product its own barcode, or leave the barcode out on one of them.

Example

409 barcode_takenJSON
{
  "code": "barcode_taken",
  "detail": "Another product of the company already has this barcode.",
  "errors": [
    {
      "field": "barcode",
      "message": "is used by another product of the company"
    }
  ],
  "instance": "/v1/products",
  "request_id": "a1b2c3d4-0000-4000-8000-0000000000ee",
  "status": 409,
  "title": "Barcode in use",
  "type": "https://birp.io/developers/errors/barcode_taken"
}
  • sync-products
  • products
  • sku-taken