Barcodes

V3

This representation is not yet finalized and is subject to change.

The barcodes endpoints provide read-only access to a barcode of the order reference Id and Loyalty account card number. The resulting barcode is encoded in the .png format.


Endpoints

Verb Endpoint Description
GET v3/qr-codes/{encryptedReferenceId} Returns the referenceId as a Qr Code for a given AMC encrypted product and reference Id combination.
GET v3/code128/{encryptedReferenceId} Returns the referenceId as a Code 128 barcode for a given AMC encrypted product and reference Id combination.
GET v3/amc-accounts/{accountId:long}/loyalty/qr-code Returns the Loyalty card number as a Qr Code for a given account id.

Barcodes Query Parameters

  • You may optionally supply a height query string parameter to specify the height of the resulting barcode; the height must match the width for QR codes.
    • Options Include:
      • default: 100
      • min: 50
      • max: 150
  • You may optionally supply a width query string parameter to specify the width of the resulting barcode; the width must match the height for QR codes.
    • Options Include:
      • default: 100 (QR), 300 (code128)
      • min: 50 (QR), 150 (code128)
      • max: 150 (QR), 450 (code128)

Examples

Returns the referenceId as a Qr Code for a given AMC encrypted product and reference Id combination.
GET  v3/qr-codes/123456789

Response

Returns the referenceId as a Code 128 barcode for a given AMC encrypted product and reference Id combination.
GET  v3/code128/123456789

Response

Returns the Loyalty card number as a Qr Code for a given account id.
GET  v3/amc-accounts/1234/loyalty/qr-code

Response