| GET | /signup/api/campaign/{memberSubscriptionInvId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CampaignInfoGetRq implements IApiRequest
{
public Integer MemberSubscriptionInvId = null;
public Integer getMemberSubscriptionInvId() { return MemberSubscriptionInvId; }
public CampaignInfoGetRq setMemberSubscriptionInvId(Integer value) { this.MemberSubscriptionInvId = value; return this; }
}
public static class CampaignInfoGetRs implements IApiResponse
{
public ArrayList<CampaignInformation> Campaigns = null;
public ArrayList<CampaignInformation> getCampaigns() { return Campaigns; }
public CampaignInfoGetRs setCampaigns(ArrayList<CampaignInformation> value) { this.Campaigns = value; return this; }
}
public static class CampaignInformation
{
public Integer CampaignId = null;
public String CampaignName = null;
public BigDecimal Amount = null;
public String ChapPayID = null;
public Integer getCampaignId() { return CampaignId; }
public CampaignInformation setCampaignId(Integer value) { this.CampaignId = value; return this; }
public String getCampaignName() { return CampaignName; }
public CampaignInformation setCampaignName(String value) { this.CampaignName = value; return this; }
public BigDecimal getAmount() { return Amount; }
public CampaignInformation setAmount(BigDecimal value) { this.Amount = value; return this; }
public String getChapPayID() { return ChapPayID; }
public CampaignInformation setChapPayID(String value) { this.ChapPayID = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /signup/api/campaign/{memberSubscriptionInvId} HTTP/1.1
Host: devapi.billhighway.com
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CampaignInfoGetRs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.Subscriptions.Response"> <Campaigns xmlns:d2p1="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.Subscriptions" i:nil="true" /> </CampaignInfoGetRs>