set_domain_affiliate_id

Assigns an affiliate id to a domain.

Request parameters for set_domain_affiliate_id

Standard parameters

  • action = set_domain_affiliate_id
  • object = domain

Attributes

Parameters within the attributes associative array are described below.

Parameter nameObligationDefinition / Value
affiliate_idRequiredThe affiliate id associated with the domain (max 256 char).
domainRequiredThe domain to which you want to assign an affiliate_id.

Response parameters for set_domain_affiliate_id

Standard parameters

  • action = reply
  • object = domain
  • is_success = a Boolean is returned, indicating success or failure of the request
  • response_code = response code indicating outcome of the request
  • response_text = message describing the outcome of the request

Examples for set_domain_affiliate_id

Request

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE OPS_envelope SYSTEM 'ops.dtd'>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">set_domain_affiliate_id</item>
                <item key="object">domain</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="affiliate_id">UpdatedAffiliate</item>
                        <item key="domain">example.com</item>
                    </dt_assoc>
                </item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>

Response

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!DOCTYPE OPS_envelope SYSTEM 'ops.dtd'>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">REPLY</item>
                <item key="object">DOMAIN</item>
                <item key="response_text">Command Successful</item>
                <item key="response_code">200</item>
                <item key="is_success">1</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>