Printfil Registration - Code

PRF-<tenant‑id>-<expiry>-<signature> | Segment | Example | What It Encodes | |---------|---------|-----------------| | PRF | PRF | Fixed prefix identifying the product (PrintFil). | | <tenant‑id> | A7B9 | A short, unique identifier for the customer. | | <expiry> | 2026-12-31 | Date (or Unix timestamp) after which the code is invalid. | | <signature> | 5F9C2E1A | HMAC/SHA‑256 hash computed over the previous fields using a secret key held only by the service provider. |

: Some providers embed all information inside a JWT , e.g.: printfil registration code

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString()); | | &lt;signature&gt; | 5F9C2E1A | HMAC/SHA‑256 hash

public static void main(String[] args) throws Exception HttpClient client = HttpClient.newHttpClient(); ObjectMapper mapper = new ObjectMapper(); | | &lt

if (response.statusCode() == 200) JsonNode node = mapper.readTree(response.body()); System.out.println("Access token: " + node.get("access_token").asText()); else System.err.println("Failed: " + response.body());

REG_CODE = os.getenv('PRTFIL_REG_CODE') # keep it out of code! API_URL = "https://api.printfil.io/v1/auth/register"

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.