This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The getUsageOfSubscription operation retrieves the details of all campaigns.

getUsageOfSubscription
<killbill.getUsageOfSubscription>
    <subscriptionId>{$ctx:subscriptionId}</subscriptionId>
    <startDate>{$ctx:startDate}</startDate>
    <endDate>{$ctx:endDate}</endDate>
</killbill.getUsageOfSubscription>
Properties
  • subscriptionId: The id of the subscription.
  • startDate: The start date of the usage period.
  • endDate: The end date of the usage period.
Sample request

Following is a sample REST/JSON request that can be handled by the getUsageOfSubscription  operation.

Sample Request for getUsageOfSubscription
{
    "apiUrl":"http://127.0.0.1:8080",
    "apiVersion":"1.0",
    "username":"admin",
    "password":"password",
    "apiKey":"bob",
    "apiSecret":"lazar",
    "subscriptionId": "15832fd4-4565-40a4-9e55-6e01f28df98b",
    "startDate": "2016-11-11",
    "endDate": "2016-11-21"
}
Related Pardot documentation

http://killbill.io/api/#!/usages/getAllUsage

Sample configuration

Following is a sample proxy service that illustrates how to connect to Kill bill with the init operation and use the getUsageOfSubscription  operation. The sample request for this proxy can be found in the  getUsageOfSubscription  sample request.

Sample Proxy
<proxy xmlns="http://ws.apache.org/ns/synapse" name="getUsageOfSubscription" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
   <target>
      <inSequence>
         <property name="apiUrl" expression="//apiUrl" />
         <property name="email" expression="//email" />
         <property name="password" expression="//password" />
         <property name="userKey" expression="//userKey" />
         <property name="apiVersion" expression="//apiVersion" />
         <property name="createdAfter" expression="//createdAfter" />
         <property name="createdAfter" expression="//createdAfter" />
         <property name="createdBefore" expression="//createdBefore" />
         <property name="idGreaterThan" expression="//idGreaterThan" />
         <property name="idLessThan" expression="//idLessThan" />
         <property name="updatedAfter" expression="//updatedAfter" />
         <property name="updatedBefore" expression="//updatedBefore" />
         <property name="name" expression="//name" />
         <property name="limit" expression="//limit" />
         <property name="offset" expression="//offset" />
         <property name="sortBy" expression="//sortBy" />
         <property name="sortOrder" expression="//sortOrder" />
         <pardot.init>
            <apiUrl>{$ctx:apiUrl}</apiUrl>
            <email>{$ctx:email}</email>
            <password>{$ctx:password}</password>
            <userKey>{$ctx:userKey}</userKey>
            <apiVersion>{$ctx:apiVersion}</apiVersion>
         </pardot.init>
         <pardot.getUsageOfSubscription>
            <createdAfter>{$ctx:createdAfter}</createdAfter>
            <createdBefore>{$ctx:createdBefore}</createdBefore>
            <idGreaterThan>{$ctx:idGreaterThan}</idGreaterThan>
            <idLessThan>{$ctx:idLessThan}</idLessThan>
            <updatedAfter>{$ctx:updatedAfter}</updatedAfter>
            <updatedBefore>{$ctx:updatedBefore}</updatedBefore>
            <name>{$ctx:name}</name>
            <limit>{$ctx:limit}</limit>
            <offset>{$ctx:offset}</offset>
            <sortBy>{$ctx:sortBy}</sortBy>
            <sortOrder>{$ctx:sortOrder}</sortOrder>
         </pardot.getUsageOfSubscription>
         <respond />
      </inSequence>
      <outSequence>
         <send />
      </outSequence>
   </target>
   <description />
</proxy>                                                    
  • No labels