GET api/subscription/audit?limit={limit}&skip={skip}
Retrieves the campaign subscription information for a given number of accounts.
Request Information
Authentication Method
Partner Authentication
-Or-
Sub Partner Authentication
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
limit |
The number of accounts for which you want the subscriptions |
integer |
Required |
skip |
Number of accounts to skip |
integer |
Required |
Body Parameters
None.
Response Information
Successful Response:Resource Description
Collection of Account Subscription
Collection of Account SubscriptionName | Description | Type | Additional information |
---|---|---|---|
url |
Account Url |
string |
|
clientId |
Partner's account identifier |
string |
|
subscriptions |
List of subscriptions for the given account |
Collection of Account Subscription Detail |
|
Response Formats
application/json, text/json
Sample:
[ { "url": "www.sitex.com", "clientId": "xxxxxxxx-xxxx-Mxxx-xxxx-xxxxxxxxxxxx", "subscriptions": [ { "campaignId": 111, "fee": 50.0, "budget": 150.0, "currency": "EUR", "active": true, "type": "Display", "billingType": "Automatic", "nextCharge": "2017-04-14T09:57:14" }, { "campaignId": 111, "fee": 15.0, "budget": 50.0, "currency": "EUR", "active": true, "type": "Display", "billingType": "Automatic", "nextCharge": "2017-04-15T09:57:14" } ] }, { "url": "www.sitey.com", "clientId": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyy", "subscriptions": [ { "campaignId": 111, "fee": 50.0, "budget": 150.0, "currency": "USD", "active": true, "type": "Display", "billingType": "Automatic", "nextCharge": "2017-04-14T09:57:14" }, { "campaignId": 111, "fee": 15.0, "budget": 50.0, "currency": "USD", "active": true, "type": "Display", "billingType": "Automatic", "nextCharge": "2017-04-15T09:57:14" } ] } ]
application/xml, text/xml
Sample:
<ArrayOfAccountSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SiteWit.PartnerAPI.Models.ReturnModels"> <AccountSubscription> <clientId>xxxxxxxx-xxxx-Mxxx-xxxx-xxxxxxxxxxxx</clientId> <subscriptions> <AccountSubscriptionDetail> <active>true</active> <billingType>Automatic</billingType> <budget>150</budget> <currency>EUR</currency> <nextCharge>2017-04-14T09:57:14</nextCharge> <type>Display</type> <campaignId>111</campaignId> <fee>50</fee> </AccountSubscriptionDetail> <AccountSubscriptionDetail> <active>true</active> <billingType>Automatic</billingType> <budget>50</budget> <currency>EUR</currency> <nextCharge>2017-04-15T09:57:14</nextCharge> <type>Display</type> <campaignId>111</campaignId> <fee>15</fee> </AccountSubscriptionDetail> </subscriptions> <url>www.sitex.com</url> </AccountSubscription> <AccountSubscription> <clientId>yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyy</clientId> <subscriptions> <AccountSubscriptionDetail> <active>true</active> <billingType>Automatic</billingType> <budget>150</budget> <currency>USD</currency> <nextCharge>2017-04-14T09:57:14</nextCharge> <type>Display</type> <campaignId>111</campaignId> <fee>50</fee> </AccountSubscriptionDetail> <AccountSubscriptionDetail> <active>true</active> <billingType>Automatic</billingType> <budget>50</budget> <currency>USD</currency> <nextCharge>2017-04-15T09:57:14</nextCharge> <type>Display</type> <campaignId>111</campaignId> <fee>15</fee> </AccountSubscriptionDetail> </subscriptions> <url>www.sitey.com</url> </AccountSubscription> </ArrayOfAccountSubscription>