CreateAffiliate

Description

Creates an affiliate linking it to the member represented by the ticket passed in.

REST - HTTP GET

http://rest.docstoc.com/ads/CreateAffiliate?Key=string&Ticket=string&Name=string&SiteURL=string

SOAP 1.2

POST /service.asmx HTTP/1.1
Host: soap.docstoc.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CreateAffiliate xmlns="http://ws.docstoc.com/">
      <Key>string</Key>
      <Ticket>string</Ticket>
      <Name>string</Name>
      <SiteURL>string</SiteURL>
    </CreateAffiliate>
  </soap12:Body>
</soap12:Envelope>
Expand

Parameters

Name Data Type Description Optional
Key String Application Key
Ticket String The ticket provided after calling AuthenticateUser
Name String Affiliate's name
SiteURL String A URL to the affiliate's website.

Response

Condition Data Type Description
Success Int Affiliate id
REST Failure HTTP Response Code See error codes section
SOAP Failure Web Exception See error codes section

Error Codes

Type Value Description
Web Exception 400 The ticket is null
Web Exception 401 The key is invalid
Web Exception 401 The ticket is invalid