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

Get Imported Vouchers

Will retrieve a list of imported vouchers for a consumer.

Method: GET /api/v3/publisher/consumer/{userKey}/importedvouchers
Authentication: oauth
 
Parameters
UserKey - The user key of the consumer whose imported vouchers to retrieve.

Returns
base response fields
importedVouchers - Will return a list of imported vouchers.

Sample Request:

GET http://api.groupcommerce.com/api/v3/publisher/consumer/3c651ac9e6054d72b9b938f782790c8c/importedvouchers

Authorization: OAuth oauth_signature="9hDSb5sHpzrHk9hdZsz44aVJw%2bM%3d", oauth_nonce="3950485", oauth_timestamp="1328140461", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"

Sample JSON Response:

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


Sample XML Response:

<getImportedVouchersResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <errors />
  <lastPublished>2012-02-01T23:54:20.7195611Z</lastPublished>
  <success>true</success>
  <version>3</version>
  <importedVouchers>
    <importedVoucher>
      <!-- see imported voucher -->
    </importedVoucher>
    <importedVoucher>
      <!--
see imported voucher -->
    </importedVoucher>
  </importedVouchers>
</getImportedVouchersResponse>
Comments