WSDL Page: http://<your_domain_here>/api/1/addedit.asmx?op=Caps
Parameter Summary:
api_key / STRING = Admin API Key
offer_id / INT = Offer ID {See export.asmx > Offers}
offer_contract_id / INT = Offer Contract ID {See export.asmx > Offers}
campaign_id / INT = Campaign ID ["0" = ALL Campaigns] {See export.asmx > Campaigns}
cap_type_id / INT (unsignedByte) = Cap Type ID ["0" = ALL Cap Type IDs] {See get.asmx > CapTypes}
cap_interval_id / INT (unsignedByte) = Cap Interval ID ["0" = NONE] {See get.asmx > CapIntervals}
cap_amount / INT = Cap Amount ["-1" = Remove Cap Amount]
cap_start / DATETIME = Cap Start Date [MM/DD/YYYY]
send_alert_only / BOOL = Send Alert Only? ["TRUE", "FALSE"]
Parameter Types:
api_key - ID
offer_id - ID
offer_contract_id - ID
campaign_id - ID
cap_type_id - ASSIGNABLE
cap_interval_id - ASSIGNABLE
cap_amount - ASSIGNABLE
cap_start - ASSIGNABLE
send_alert_only - ASSIGNABLE
Sample GET Call:
http://demo.cakemarketing.com/api/1/addedit.asmx/Caps?api_key=dNJFmId9rI&offer_id=100&offer_contract_id=0&campaign_id=0&cap_type_id=1&cap_interval_id=2&cap_amount=100&cap_start=8/8/1979&send_alert_only=FALSE
Sample XML Response:
<caps_addedit_response>
<success>true</success>
<message>Cap Updated</message>
</caps_addedit_response>