Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎2 - Consumer Related‎ > ‎

Generate QR Code

Method to create a QR code for display on the voucher page.  Requires a voucher code that should be rendered as an image.

Method: GET /api/v3/publisher/generateqrcode
Authentication: oauth
 
Parameters
Required QueryString Value
Explanation
Yes
Code
The voucher code to be rendered as a QR code.

Returns
base response fields
image - Will contain the QR code image.

Sample Request:

GET  http://api.groupcommerce.com/api/v3/publisher/generateqrcode?code=F-1ED-00-5D5

Authorization: OAuth oauth_signature="SQ6l9qBnw8lFyPz4KYuwsHSkwv4%3d", oauth_nonce="9426134", oauth_timestamp="1330553041", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"

Sample JSON Response:

{
    "errors": [],
    "lastPublished": "/Date(1330553060744)/",
    "success": true,
    "version": "3",
    "image": {
       
/* see image */
    }
}


Sample XML Response:

<generateQRCodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errors />
  <lastPublished>2012-02-29T22:06:25.9975834Z</lastPublished>
  <success>true</success>
  <version>3</version>
  <image>
  
<!-- see image -->
  </image>
</generateQRCodeResponse>
Comments