Format as a QR Code

To represent the signed payload, from the sign operation, as a QR code, the MATTR VII extension offers an API endpoint that will take the signed and base45 encoded DCC payload, verify it to ensure it is valid before outputting a QR code representation of the certificate in a PNG image format.

Prerequisites

You need the following in order to proceed with this tutorial

- Access to MATTR VII APIs

- A signed and encoded DCC represented as a string

Generate a QR code for a DCC by invoking the API as follows.

Request

http
Copy to clipboard.
1POST https://YOUR_TENANT_SUBDOMAIN.vii.mattr.global/ext/dcc/v1/qrcode
json
Copy to clipboard.
1{
2  "payload": "HC1:6BFOXN%TSMAHN-HQO8%TEN*FQ8RESL/R83MJ2FCXK9.JAEJP .I0NUULINJPIRPQHIZC4TPIFRMLNKNM8POCEUG*%NH$RSC98IF3MOAGJGB3D0C5HF80P1FDEZ48MOQ:J* 3I0CU0GQJO9NT.HFCA3 X8 KLYF1FD5-FHWC59NT8X4Q2QC:HQ-77JO+0M7NS A8HJP7NVDEBR0JE+45$0H78HABVCNAHLW 70SO:GOLIROGO3T59YLLYP-HQLTQ9R0+L67PPDFPVX1R270:6NEQ.P6KLU%TE6UG+ZEAT1HQ1BT1VW5IMIBRUFTIPPAIMI.J9WVHDYHT-84LTYD3SZ4I25FMV3ZCU3B5IVV5TN%2UP20J5/5LEBFD-48YIM557AL XK$%2XE557TT25-037:2SP4*2DN43U*0CEBQ/GXQFY73OMBMNVVINARNQA77UJ4O79J3*UJLOJ/G7DG3VIN 73PLN09B6LBUC7AK5J5S8BHJHQA$LPQVGD6QHK*$P8RFR76MK6%ARZWCBCBTBTZSU*FLR3JMX4ICV+7OD+AN-2P8EMJIVDF17F7LT6SF*8UA7OB2JR748CLI 9V+VV10EHSA1"
3}

Response

https://www.datocms-assets.com/38428/1632284107-qrcode-1632274911761.png?auto=format

The returned QR Code/PNG can then be used in a paper-based or digital setting to allow someone to hold the DCC and later present it for scanning by verification capability.