Getting started
From zero to a printed symbol in about four minutes.
1. Get a key
Keys are issued by hand over Telegram so we can size your quota correctly. Message @VALIDPDF417 with your use case and expected monthly volume.
2. Store the key
Keys are bearer tokens. Put them in an environment variable, never in source control.
export PDF417_KEY="vpdf_live_..."
3. Encode
POST your fields to /api/v1/aamva. The response body is the image itself.
curl -s https://validpdf417.com/api/v1/aamva \
-H "Authorization: Bearer $PDF417_KEY" \
-H "Content-Type: application/json" \
-d '{"state":"CA","eclevel":5,"format":"png","dpi":600,
"fields":{"DAQ":"A1234567","DCS":"SAMPLE","DAC":"JORDAN",
"DBB":"19900314","DBA":"20300115","DBC":"1",
"DAG":"1234 SAMPLE ST","DAI":"BEVERLY HILLS","DAK":"90210",
"DCF":"DD123456789012","DCK":"123456789012","DCA":"C",
"DCB":"NONE","DCD":"NONE","DDA":"F","DDB":"20200101",
"DDD":"1","DDE":"N","DDF":"N","DDG":"N"}}' \
-o dl.png
4. Verify
Always decode a sample before you commit a print run. EC level 5 tolerates roughly 20% symbol damage; it does not tolerate a bad DPI setting.
| Parameter | Type | Default |
|---|---|---|
state | 2-letter code | required |
fields | object | required |
eclevel | 0–8 | 5 |
columns | 1–30 | derived for 3:1 |
format | png · svg | png |
dpi | 72–1200 | 600 |
What to check after the first call
Open the PNG, confirm it is a PDF417 symbol and not an error page saved with a .png
extension, then decode it. Byte 0 must be 0x40, bytes 1 to 3 must be
0A 1E 0D, and bytes 4 to 8 must be ANSI . If those are right, the
header is right and the remaining checks are field values and print settings.
Keep the request body next to the output. The payload is the audit trail: if a card is questioned later, the decoded string can be compared with the body that produced it. A PNG alone cannot prove which values were encoded without decoding it first.