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

Generate Barcode

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

Method: GET /api/v3/publisher/generatebarcode
Authentication: oauth

 Parameters
Required QueryString Value
Explanation
Yes
code
The code that should be turned into an image.

Returns
base response fields
image - Will contain the barcode image.

Sample Request:

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

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

Sample JSON Response:

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


Sample XML Response:

<generateBarcodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-11-08T09:18:16.9196464Z</lastPublished>
    <success>true</success>
    <version>3</version>
    <image>
        <!--
see image -->
    </image>
</generateBarcodeResponse>
Comments