Skip to Content
GEMM

Get QR-Code through LPA Code

POST/qr-codeMobility

Generate a QR code for an LPA code.

Auth Scope
urn:grt:gemm
Content-Type
application/json
Base URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1

Uses and Requirements

Send a single LPA code and the API synchronously returns a QR code as Base64-encoded binary data in a JSON response. No callback is sent. On failure, the API returns an error message instead.

Note

You can submit one LPA code per request.

Headers

HeaderValue
AuthorizationBearer access-token
Content-Typeapplication/json
macnumMacnum of the top level account for your organization.

Request Body Parameters

The request body contains the LPA code to generate a QR code for.

ParameterTypeDescription
inputstringThe LPA code to generate the QR code for.

Request Examples

Responses

Immediate Success Response (200 OK)

The fileContents value is shortened here for readability.

Response Fields

ParameterTypeDescription
fileContentsbytesBase64-encoded binary data of the generated QR code image.
contentTypestringMIME type of the file, for example application/octet-stream.
fileDownloadNamestringSuggested file name for the QR code. May be empty.
enableRangeProcessingbooleanIndicates whether range processing is enabled (usually false).

Failure Responses

All errors are returned in this format.

Immediate Error Message

Error Response Fields

ParameterTypeDescription
ResultobjectResult status object.
StatusstringSuccess or Failed.
ErrorsobjectList of errors.
ErrorCodestringError code.
ErrorMessagestringError message.
TimeStampstringDate and time at which the error occurred.
ApiVersionstringAPI version, for example 1.0.0.

Code Examples

Last updated on