WSDL Page:  http://your-admin-domain-here.com/api/1/export.asmx?op=BuyerContracts

 

Parameter Summary:

api_key / STRING = Admin API Key {Found in Setup maintab > Permissions subtab > API Keys}

status_id / INT (unsignedByte) = Buyer Contract Status ["0" = ALL Buyer Contract Statuses] {See GET AccountStatuses}

vertical_id / INT (short) = Vertical ID ["0" = ALL Verticals] {See GET Verticals}

buyer_contract_id / INT = Buyer Contract ID ["0" = ALL Buyer Contracts] 

 

Parameter Types:

api_key - ID

status_id - ID

vertical_id - ID

buyer_contract_id - ID

 

Sample GET Call:

http://demo.cakemarketing.com/api/1/export.asmx/BuyerContracts?api_key=dNJFmId9rI&status_id=0&vertical_id=1&buyer_contract_id=315

 

Sample XML Response:

<ArrayOfBuyerContract>
  <BuyerContract>
    <buyer_contract_id>315</buyer_contract_id>
    <buyer_contract_name>Buyer Contract 315</buyer_contract_name>
    <buyer_id>485</buyer_id>
    <buyer_name>Buyer 485</buyer_name>
    <vertical_name>Fast Food</vertical_name>
    <offer_id xsi:nil="true"/>
    <status_name>Active</status_name>
    <credit_remaining xsi:nil="true"/>
    <buy_upsells>true</buy_upsells>
    <rank>0</rank>
    <posting_wait_seconds>360</posting_wait_seconds>
    <min_lead_age_minutes>0</min_lead_age_minutes>
    <max_lead_age_minutes>7500</max_lead_age_minutes>
    <max_post_errors>2</max_post_errors>
    <max_return_days>7</max_return_days>
    <returns_owed>0</returns_owed>
    <replace_returns>true</replace_returns>
    <filters>
      <Filter>
        <filter_type>Min Debt Amount</filter_type>
        <parameter xsi:type="xsd:decimal">15000.0000</parameter>
      </Filter>
      <Filter>
        <filter_type>Max Debt Amount</filter_type>
        <parameter xsi:type="xsd:decimal">999999.0000</parameter>
      </Filter>
      <Filter>
        <filter_type>Contains State</filter_type>
        <parameter xsi:type="xsd:string">AL|AK|AZ|AR|CA|DC|FL|IN|IA|MD|MA|MN|MO|MT|NE|NV|NM|NY|OK|OR|PA|TX|VA|</parameter>
      </Filter>
    </filters>
    <zip_code_filter_distance xsi:nil="true"/>
    <date_created>2011-12-07T11:21:32.497</date_created>
  </BuyerContract>
</ArrayOfBuyerContract>