| POST | /subscription |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class MemberSubscriptionCollection
{
var MemberSubscriptions:ArrayList<MemberSubscription> = ArrayList<MemberSubscription>()
}
open class MemberSubscription
{
var UniqueId:String? = null
var ClientId:Int? = null
var GroupId:String? = null
var UserID:String? = null
var ClientCompanyID:String? = null
var ClientOrderID:Long? = null
var ClientMemberSubscriberID:Long? = null
var ClientSubscriptionTemplate:String? = null
var SubscriptionID:Long? = null
var StartDate:Date? = null
var EndDate:Date? = null
}
open class MemberSubscriptionReplyCollection : IHaveErrorField
{
var MemberSubscriptionReply:ArrayList<MemberSubscriptionReply> = ArrayList<MemberSubscriptionReply>()
var IsError:Boolean? = null
}
open class MemberSubscriptionReply
{
var UniqueId:String? = null
var ClientId:Int? = null
var MemberSubscriptionInvoiceId:Int? = null
var ErrorCode:Int? = null
var ErrorMessage:String? = null
}
Kotlin MemberSubscriptionCollection DTOs
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.
POST /subscription HTTP/1.1
Host: devapi.billhighway.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<MemberSubscriptionCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.billhighway.com/api">
<MemberSubscriptions>
<MemberSubscription>
<ClientCompanyID>String</ClientCompanyID>
<ClientId>0</ClientId>
<ClientMemberSubscriberID>0</ClientMemberSubscriberID>
<ClientOrderID>0</ClientOrderID>
<ClientSubscriptionTemplate>String</ClientSubscriptionTemplate>
<EndDate>0001-01-01T00:00:00</EndDate>
<GroupId>String</GroupId>
<StartDate>0001-01-01T00:00:00</StartDate>
<SubscriptionID>0</SubscriptionID>
<UniqueId>String</UniqueId>
<UserID>String</UserID>
</MemberSubscription>
</MemberSubscriptions>
</MemberSubscriptionCollection>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<MemberSubscriptionReplyCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.billhighway.com/api">
<MemberSubscriptionReply>
<MemberSubscriptionReply>
<ClientId>0</ClientId>
<ErrorCode>0</ErrorCode>
<ErrorMessage>String</ErrorMessage>
<MemberSubscriptionInvoiceId>0</MemberSubscriptionInvoiceId>
<UniqueId>String</UniqueId>
</MemberSubscriptionReply>
</MemberSubscriptionReply>
</MemberSubscriptionReplyCollection>