This article will show you how to encode a dynamic value into your barcode. This means each barcode can be unique to each pass issued. This is useful if you have your own value (like a membership number, SKU, or POS code).
There are 3 options.
Encoding a preset value
We have added some preset values that you can choose from, which are the most common values used.
When on the barcode settings page, simply click in the 'Encoded Barcode Value' box to see the options.
Membership/Loyalty
Coupons - different options like 'SKU' are available
Encode a value from a field already on the pass
You may have a dynamic field on the pass which value you want to use, but isn't in the preset options.
In this case, look for the field key of the field value you wish to use, this makes up the placeholder.
Example - ${fieldkey}
The field key is found at the bottom of the field settings box.
Using the example above, the placeholder will be ${meta.myOwnData}
This can then be added to the Encoded Barcode Content field.
Encode a value to be added when the pass is created (When using Zapier or the API)
With this option the data must be provided when the pass is issued. This can be done via the API or Zapier.
In this case, you can provide any meta field key, making sure to populate this field when issuing the pass.
Example,
If I set the placeholder in the Encoded Barcode Content field to be ${meta.barcode}, then I must use the following parameters when creating the pass using the API.
"metaData": {
"barcode": "My Barcode Value"
}
This data isn't displayed anywhere else on the pass, but is stored in the pass record and is used to populate any field with the corresponding placeholder.