| POST | /signup/api/nat/{natID}/group/{groupID}/{userType}/user/{userID}/form/access/link |
|---|
namespace BH.CloudAPI.Common.DTO
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type SubscriptionFormAccessRq() =
member val NatID:Int32 = new Int32() with get,set
member val GroupID:Int32 = new Int32() with get,set
member val UserID:Int32 = new Int32() with get,set
member val UserType:String = null with get,set
member val AdminID:Int32 = new Int32() with get,set
member val SubscriptionInvoiceID:Int64 = new Int64() with get,set
member val SubscriptionLineageID:Int64 = new Int64() with get,set
member val ClientSubscriberId:String = null with get,set
member val MemberSubscriptionInvId:Int32 = new Int32() with get,set
member val IsPrintView:Boolean = new Boolean() with get,set
member val IsBillMeLaterSubscription:Boolean = new Boolean() with get,set
member val RenewedMemberSubscriptionInvID:Int64 = new Int64() with get,set
member val IsRenewal:Boolean = new Boolean() with get,set
member val ClientSubscriptionTypeID:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type LinkResponse() =
member val Rel:String = null with get,set
member val Uri:String = null with get,set
F# SubscriptionFormAccessRq 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 /signup/api/nat/{natID}/group/{groupID}/{userType}/user/{userID}/form/access/link HTTP/1.1
Host: devapi.billhighway.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SubscriptionFormAccessRq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common.DTO.Subscriptions">
<AdminID>0</AdminID>
<ClientSubscriberId>String</ClientSubscriberId>
<ClientSubscriptionTypeID>0</ClientSubscriptionTypeID>
<GroupID>0</GroupID>
<IsBillMeLaterSubscription>false</IsBillMeLaterSubscription>
<IsPrintView>false</IsPrintView>
<IsRenewal>false</IsRenewal>
<MemberSubscriptionInvId>0</MemberSubscriptionInvId>
<NatID>0</NatID>
<RenewedMemberSubscriptionInvID>0</RenewedMemberSubscriptionInvID>
<SubscriptionInvoiceID>0</SubscriptionInvoiceID>
<SubscriptionLineageID>0</SubscriptionLineageID>
<UserID>0</UserID>
<UserType>String</UserType>
</SubscriptionFormAccessRq>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <LinkResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common.DTO"> <Rel>String</Rel> <Uri>String</Uri> </LinkResponse>