| POST | /signup/api/standardSignup |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO.StandardSignupForm.Request
Imports BH.CloudAPI.Common4.DTO.StandardSignupForm
Imports BH.CloudAPI.Common4.DTO.Subscriptions
Imports BH.CloudAPI.Common4.DTO.RecurringObligation
Imports BH.CloudAPI.Common4.DTO.StandardSignupForm.Response
Namespace Global
Namespace BH.CloudAPI.Common4.DTO.RecurringObligation
Public Partial Class ContributionItem
Public Overridable Property ChartOfAccountId As Integer
Public Overridable Property ChartOfAccountRefId As String
Public Overridable Property Amount As Decimal
End Class
End Namespace
Namespace BH.CloudAPI.Common4.DTO.StandardSignupForm
Public Partial Class StandardSignupFormMemberInfo
Public Overridable Property BhUserID As Integer
Public Overridable Property BhGroupID As Integer
Public Overridable Property ClientUserID As String
Public Overridable Property ClientGroupID As String
Public Overridable Property NationalID As Integer
Public Overridable Property FirstName As String
Public Overridable Property MiddleName As String
Public Overridable Property LastName As String
Public Overridable Property Address1 As String
Public Overridable Property Address2 As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property PostalCode As String
Public Overridable Property Country As String
Public Overridable Property Email As String
Public Overridable Property Phone As String
Public Overridable Property PacContributionAmount As String
Public Overridable Property DateOfBirth As Nullable(Of Date)
Public Overridable Property MemberTypeClientID As String
Public Overridable Property BillingTypeID As String
Public Overridable Property FiscalYear As Integer
Public Overridable Property OptedToPayCTADues As Boolean
End Class
End Namespace
Namespace BH.CloudAPI.Common4.DTO.StandardSignupForm.Request
Public Partial Class StandardSignupFormPostRq
Public Sub New()
Contributions = New List(Of ContributionItem)
End Sub
Public Overridable Property IsCreditCard As Boolean
Public Overridable Property MemberInfo As StandardSignupFormMemberInfo
Public Overridable Property VerificationInfo As ClientVerification
Public Overridable Property CcPaymentInfo As CcPaymentInformation
Public Overridable Property AchPaymentInfo As AchPaymentInformation
Public Overridable Property Contributions As List(Of ContributionItem)
End Class
End Namespace
Namespace BH.CloudAPI.Common4.DTO.StandardSignupForm.Response
Public Partial Class StandardSignupFormPostRs
Public Overridable Property Message As String
End Class
End Namespace
Namespace BH.CloudAPI.Common4.DTO.Subscriptions
Public Partial Class AchPaymentInformation
Public Overridable Property AccountHolderName As String
Public Overridable Property CheckNumber As String
Public Overridable Property RoutingNumber As String
Public Overridable Property AccountNumber As String
Public Overridable Property AccountType As String
End Class
Public Partial Class CcPaymentInformation
Public Overridable Property CardNumber As String
Public Overridable Property Cvv As String
Public Overridable Property ExpMonth As Integer
Public Overridable Property ExpYear As Integer
Public Overridable Property CardholderName As String
Public Overridable Property Country As String
Public Overridable Property BillingAddress As String
Public Overridable Property Address1 As String
Public Overridable Property Address2 As String
Public Overridable Property City As String
Public Overridable Property StateProvince As String
Public Overridable Property PostalCode As String
End Class
Public Partial Class ClientVerification
Public Overridable Property Provider As String
Public Overridable Property VerificationCode As String
End Class
End Namespace
End Namespace
VB.NET StandardSignupFormPostRq DTOs
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 /signup/api/standardSignup HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
IsCreditCard: False,
MemberInfo:
{
BhUserID: 0,
BhGroupID: 0,
ClientUserID: String,
ClientGroupID: String,
NationalID: 0,
FirstName: String,
MiddleName: String,
LastName: String,
Address1: String,
Address2: String,
City: String,
State: String,
PostalCode: String,
Country: String,
Email: String,
Phone: String,
PacContributionAmount: String,
DateOfBirth: 0001-01-01,
MemberTypeClientID: String,
BillingTypeID: String,
FiscalYear: 0,
OptedToPayCTADues: False
},
VerificationInfo:
{
Provider: String,
VerificationCode: String
},
CcPaymentInfo:
{
CardNumber: String,
Cvv: String,
ExpMonth: 0,
ExpYear: 0,
CardholderName: String,
Country: String,
BillingAddress: String,
Address1: String,
Address2: String,
City: String,
StateProvince: String,
PostalCode: String
},
AchPaymentInfo:
{
AccountHolderName: String,
CheckNumber: String,
RoutingNumber: String,
AccountNumber: String,
AccountType: String
},
Contributions:
[
{
ChartOfAccountId: 0,
ChartOfAccountRefId: String,
Amount: 0
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Message: String
}