Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎4 - Publisher Related‎ > ‎

Get Imported Voucher

Will retrieve an imported voucher by id.

Method: GET /api/v3/publisher/importedvoucher/{ImportedVoucherId}
Authentication: oauth
 
Parameters
ImportedVoucherId - The id of the imported voucher to return.

Returns
base response fields
importedVoucher - the imported voucher with the provided id.

Sample Request:

GET http://api.groupcommerce.com/api/v3/publisher/importedvoucher/64

Authorization: OAuth oauth_signature="utsh4af%2bahZZavZZ5%2felmmqwY1k%3d", oauth_nonce="2386958", oauth_timestamp="1330555518", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"

Sample JSON Response:

{
    "errors": [],
    "lastPublished": "/Date(1330555517791)/",
    "success": true,
    "version": "3",
    "importedVoucher": {
        /* see
imported voucher */
    }
}


Sample XML Response:

<getImportedVoucherResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errors />
  <lastPublished>2012-02-29T22:46:25.1286569Z</lastPublished>
  <success>true</success>
  <version>3</version>
  <importedVoucher>
    <!-- see
imported voucher -->
  </importedVoucher>
</getImportedVoucherResponse>
Comments