| POST | /subscription |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MemberSubscriptions | body | List<MemberSubscription> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UniqueId | form | string | No | |
| ClientId | form | int | No | |
| GroupId | form | string | No | |
| UserID | form | string | No | |
| ClientCompanyID | form | string | No | |
| ClientOrderID | form | long | No | |
| ClientMemberSubscriberID | form | long | No | |
| ClientSubscriptionTemplate | form | string | No | |
| SubscriptionID | form | long | No | |
| StartDate | form | DateTime? | No | |
| EndDate | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| MemberSubscriptionReply | form | List<MemberSubscriptionReply> | No | |
| IsError | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UniqueId | form | string | No | |
| ClientId | form | int | No | |
| MemberSubscriptionInvoiceId | form | int | No | |
| ErrorCode | form | int | No | |
| ErrorMessage | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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: text/jsv
Content-Type: text/jsv
Content-Length: length
{
MemberSubscriptions:
[
{
UniqueId: String,
ClientId: 0,
GroupId: String,
UserID: String,
ClientCompanyID: String,
ClientOrderID: 0,
ClientMemberSubscriberID: 0,
ClientSubscriptionTemplate: String,
SubscriptionID: 0,
StartDate: 0001-01-01,
EndDate: 0001-01-01
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
MemberSubscriptionReply:
[
{
UniqueId: String,
ClientId: 0,
MemberSubscriptionInvoiceId: 0,
ErrorCode: 0,
ErrorMessage: String
}
],
IsError: False
}