| POST | /subscription |
|---|
namespace BH.CloudAPI.Common4.DTO
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type MemberSubscription() =
member val UniqueId:String = null with get,set
member val ClientId:Int32 = new Int32() with get,set
member val GroupId:String = null with get,set
member val UserID:String = null with get,set
member val ClientCompanyID:String = null with get,set
member val ClientOrderID:Int64 = new Int64() with get,set
member val ClientMemberSubscriberID:Int64 = new Int64() with get,set
member val ClientSubscriptionTemplate:String = null with get,set
member val SubscriptionID:Int64 = new Int64() with get,set
member val StartDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val EndDate:Nullable<DateTime> = new Nullable<DateTime>() with get,set
[<AllowNullLiteral>]
type MemberSubscriptionCollection() =
member val MemberSubscriptions:ResizeArray<MemberSubscription> = new ResizeArray<MemberSubscription>() with get,set
[<AllowNullLiteral>]
type MemberSubscriptionReply() =
member val UniqueId:String = null with get,set
member val ClientId:Int32 = new Int32() with get,set
member val MemberSubscriptionInvoiceId:Int32 = new Int32() with get,set
member val ErrorCode:Int32 = new Int32() with get,set
member val ErrorMessage:String = null with get,set
[<AllowNullLiteral>]
type MemberSubscriptionReplyCollection() =
member val MemberSubscriptionReply:ResizeArray<MemberSubscriptionReply> = new ResizeArray<MemberSubscriptionReply>() with get,set
member val IsError:Boolean = new Boolean() with get,set
F# 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>