Barcode Intelligence - Component - EPC GS1 Encoding/Decoding

Overview

GS1 is a standard that is used for supply chain across multiple industries from retail to healthcare. GS1 can be used in barcodes and increasingly in RFID tagging to make identification and tracking of products or assets easier across industries. This API provides multiple methods to decode different parts of a GS1 Compliant RFID tag as well as Barcodes.

The APIs output standard application identifiers (AI codes) to aid in identifying the item. There are also several APIs that enable the conversion of converting data from GS1 compliant RFID tags to barcodes or reverse. Utilizing this in combination with a Read-to-Cloud or Scan-to-Cloud API allows you to get the most out of it. This API does not validate the data with any GS1 databases.

Sample Use Cases

This API can be used in a distribution center to read and sort shipments allowing relabeling and distribution. Using one of the decoding APIs to track a pallet, it can be then converted into cases for reshipment and relabeled with the proper GS1 tag for the items.

This API could also be used in a hospital to enable easy tracking of the distribution of pharmaceuticals throughout the facility, making it easy to find the relevant product information.

Requirements

While this API does not require devices directly to utilize it, it should be used with a barcode scanner or RFID reader. It can be used with a scanner app on a phone, a mobile computer, or a hand scanner. Fixed readers or peripheral readers are supported. Zebra scanners, mobile computers, and RFID readers are recommended for speed and accuracy.

Service Level Agreements (SLAs)

  • Throughput: Based on pricing plan selected. Basic = 1 call every 2 seconds
  • Response Time: Average is < 200ms.
  • Uptime: 99%
  • Support: Visit the Forums or Help.

Authentication

A Zebra Savanna application key is required for using and testing this API. See the Getting Started Guide for instructions on obtaining a key.

Tags: Search, RFID, Scanner

Rfid

Method
Description

GET

Encode GDTI

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/gdti/{gdti}

This encodes a GDTI into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode GS1 Barcode

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/barcode/{barcode}

This encodes all data elements in a GS1 element string, as found in a GS1-compliant bar code such as GS1 DataMatrix, GS1 DataBar, GS1-128, or GS1 QR Code, into the RFID EPC memory bank and the user memory bank. If the element string contains an identifier that can be encoded as an EPC (SGTIN, SSCC, etc.) then the output will include epc and tag sections containing that identifier encoded as an EPC. Any other data elements in the element string will be encoded into user memory as displayed in the user section of the output.

GET

Encode GLN + Extension

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/gln/{gln}/{glnExt}

This encodes a GLN+extension into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode/Decode EPC URI

https://sandbox-api.zebra.com/v2/rfidcoder/epc/uri/{epcuri}

This decodes a pure identity EPC URI a GS1 Element String, and also encodes it into the binary content of the EPC memory bank.

GET

Encode/Decode EPC Tag URI

https://sandbox-api.zebra.com/v2/rfidcoder/tag/uri/{taguri}

This decodes an EPC Tag URI or EPC Raw URI into an EPC URI and GS1 Element String, and also encodes the EPC Tag URI into the binary content of the EPC memory bank (expressed in hexadecimal).

GET

Encode GCN

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/gcn/{gcn}

This encodes a GCN into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode GTIN + Serial No.

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/sgtin/{sgtin}/{serial}

This encodes a GTIN plus a serial number into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode/Decode User

https://sandbox-api.zebra.com/v2/rfidcoder/user/{user}

This decodes the binary contents of user memory. If there are GS1 data elements present, it will also encode them into a GS1 element string, as found in a GS1-compliant bar code such as GS1 DataMatrix, GS1 DataBar, GS1-128, or GS1 QR Code

GET

Encode GSRN-P

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/gsrnp/{gsrnp}

This encodes a GSRN-P into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Decode EPC Data

https://sandbox-api.zebra.com/v2/rfidcoder/tag/epc/{epchex}

This decodes the EPC memory bank (represented in hexadecimal) to an EPC Tag URI, EPC URI, and GS1 Element String.

GET

Encode GIAI

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/giai/{giai}

This encodes a GIAI into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Decode TID

https://sandbox-api.zebra.com/v2/rfidcoder/tid/{tid}

This decodes the binary contents of TID memory.

GET

Encode GRAI

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/grai/{grai}

This encodes a GRAI into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode SSCC

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/sscc/{sccc}

This encodes an SSCC into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode CPID

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/cpi/{cpid}/{cpidSerial}

This encodes a CPID and serial number into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode GSRN

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/gsrn/{gsrn}

This encodes a GSRN into an EPC URI, EPC Tag URI, and EPC binary encoding.

GET

Encode GLN

https://sandbox-api.zebra.com/v2/rfidcoder/gs1/gln/{gln}

This encodes a GLN into an EPC URI, EPC Tag URI, and EPC binary encoding.