You can submit one LPA code per request.
Get QR-Code through LPA Code
POST
/qr-codeMobilityGenerate a QR code for an LPA code.
Auth Scope
urn:grt:gemmContent-Type
application/jsonBase URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1Uses 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
Headers
| Header | Value |
|---|---|
Authorization | Bearer access-token |
Content-Type | application/json |
macnum | Macnum of the top level account for your organization. |
Request Body Parameters
The request body contains the LPA code to generate a QR code for.
| Parameter | Type | Description |
|---|---|---|
input | string | The 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
| Parameter | Type | Description |
|---|---|---|
fileContents | bytes | Base64-encoded binary data of the generated QR code image. |
contentType | string | MIME type of the file, for example application/octet-stream. |
fileDownloadName | string | Suggested file name for the QR code. May be empty. |
enableRangeProcessing | boolean | Indicates whether range processing is enabled (usually false). |
Failure Responses
All errors are returned in this format.
Immediate Error Message
Error Response Fields
| Parameter | Type | Description |
|---|---|---|
Result | object | Result status object. |
Status | string | Success or Failed. |
Errors | object | List of errors. |
ErrorCode | string | Error code. |
ErrorMessage | string | Error message. |
TimeStamp | string | Date and time at which the error occurred. |
ApiVersion | string | API version, for example 1.0.0. |
Code Examples
Related Links
Last updated on