Want to embed a barcode into your email to create a printable and scannable barcode that your contacts can use at retailers? Acoustic Provisioning must enable this feature for your organization. Contact Acoustic Support with this request.
Note: This solution does not generate the barcode value. It only renders the image. If you require that Acoustic generates a valid barcode value for your wanted barcode spec, you must request custom development.
Here's how it works
The application accepts a barcode number as a URL parameter and outputs an image with the barcode. You can request to use a custom domain. Then use an image link to add the rendered barcode to the email. The renderer creates the image in real-time as the email is being displayed to a contact.
Example of a rendered barcode HTML tag
After your organization is provisioned, we'll provide the URL to the barcode renderer.
<image src="[barcode renderer url]/?code=%%barcode%%"/>
Using the rendered barcode in a Transact XML email
If you are including a barcode in a Transact XML email, include the barcode value in the Transact XML:
<TAG_NAME>barcode</TAG_NAME> <VALUE>1234567890</VALUE>
Parameters
Parameter | Description | Required | Value |
---|---|---|---|
code | String value of the barcode | Yes | Must be a valid value for the specified code spec |
spec | Specification / type of barcode to render | No | code128 (default)
code25 code25interleaved code39 ean13 ean2 ean5 ean8 identcode itf14 leitcode planet postnet royalmail upca upce |
format | Format to use for the resulting barcode image | No | png (default)
gif jpg |
You can specify the type code as a URL parameter. For example,
<image src="[barcode renderer url]/?code=%%barcode%%&spec=code39"/><