GetVoucherCodes

 

GetVoucherCodes

Advertisers upload their voucher codes or information on special deals to the affilinet platform. This method lets you find vouchers, which match your specified criteria.

To access live data, please use this WSDL file:
https://api.affili.net/V2.0/PublisherInbox.svc?wsdl
To access demo data, please use this WSDL file:
https://developer-api.affili.net/V2.0/PublisherInbox.svc?wsdl


Operation test

With this form, you can try out this web service. We already filled it out with a sample request which will return data. Feel free to fill in different parameter values - our test data reference gives you an overview of our sample data.

FieldTypeValues
PublisherId *int 
ProgramId *int 
VoucherCodestring
Querystring
StartDate *datetime
EndDate *datetime

XML response

Short paramter definitions
PublisherId (int):
Id of the publisher whose account is being used.
ProgramId (int):
Only voucher from this program are returned.
VoucherCode (string):
Only vouchers are returned, which contain this string in the voucher code itself.
Query (string):
Only vouchers are returned, which contain this string in the voucher code itself, the description, the deeplink or the advertiser name.
StartDate (datetime):
Only vouchers with this start date (or earlier) are returned. Cannot be a date in the past.
EndDate (datetime):
vouchers with this end date (or later) are returned. Cannot be earlier than StartDate.

Complete code examples

JAVA

 (request)

PHP

 (request)

.NET

 (request)

Copyright © 2008, affilinet GmbH