Billhighway Cloud API

<back to all web services

SalesForceInvoiceCollection

The following routes are available for this service:
POST/api/SalesForce/InvoiceCollection
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO.SalesForce

Namespace Global

    Namespace BH.CloudAPI.Common4.DTO.SalesForce

        Public Partial Class SalesForceInvoice
            Public Sub New()
                InvoiceItems = New List(Of SalesForceInvoiceItem)
            End Sub

            Public Overridable Property ClassName As String
            Public Overridable Property UniqueId As String
            Public Overridable Property CreatedDateTime As Date
            Public Overridable Property ClientId As Integer
            Public Overridable Property GroupId As String
            Public Overridable Property UserId As String
            Public Overridable Property OpportunityId As String
            Public Overridable Property InvoiceDueDate As Date
            Public Overridable Property Installments As Integer
            Public Overridable Property Frequency As Integer
            Public Overridable Property BhUserId As Integer
            Public Overridable Property Description As String
            Public Overridable Property Deliver As Boolean
            Public Overridable Property CurrencyType As String
            Public Overridable Property InvoiceItems As List(Of SalesForceInvoiceItem)
            Public Overridable Property InvoiceNo As Integer
            Public Overridable Property InvoiceAmt As Decimal
            Public Overridable Property ExternalInvBatchNo As String
            Public Overridable Property ExemptFromLateFee As Boolean
        End Class

        Public Partial Class SalesForceInvoiceCollection
            Public Sub New()
                InvoiceCollection = New List(Of SalesForceInvoice)
            End Sub

            Public Overridable Property InvoiceCollection As List(Of SalesForceInvoice)
        End Class

        Public Partial Class SalesForceInvoiceCollectionReply
            Implements IHaveErrorField
            Public Sub New()
                InvoiceReply = New List(Of SalesForceInvoiceReply)
            End Sub

            Public Overridable Property InvoiceReply As List(Of SalesForceInvoiceReply)
            Public Overridable Property IsError As Boolean
        End Class

        Public Partial Class SalesForceInvoiceItem
            Public Overridable Property ClassName As String
            Public Overridable Property UniqueId As String
            Public Overridable Property CreatedDateTime As Date
            Public Overridable Property ClientId As Integer
            Public Overridable Property ProductName As String
            Public Overridable Property AmountDue As String
            Public Overridable Property ProductType As String
            Public Overridable Property ActPatternTypeId As Integer
            Public Overridable Property TermStartDate As Date
            Public Overridable Property TermEndDate As Date
            Public Overridable Property RecognitionPeriod As Integer
            Public Overridable Property RevenueAccount As String
            Public Overridable Property AccountsReceivableAccount As String
            Public Overridable Property LiabilityAccount As String
            Public Overridable Property CreditExpenseAccount As String
            Public Overridable Property InvoiceClearingAccount As String
            Public Overridable Property CostCenter As String
            Public Overridable Property Region As String
        End Class

        Public Partial Class SalesForceInvoiceReply
            Public Overridable Property ClassName As String
            Public Overridable Property UniqueId As String
            Public Overridable Property CreatedDateTime As Date
            Public Overridable Property ClientId As Integer
            Public Overridable Property ErrorCode As Integer
            Public Overridable Property ErrorMessage As String
            Public Overridable Property InvBatchNo As Integer
            Public Overridable Property InvAmount As Decimal
        End Class
    End Namespace
End Namespace

VB.NET SalesForceInvoiceCollection DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/SalesForce/InvoiceCollection HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	InvoiceCollection: 
	[
		{
			ClassName: String,
			UniqueId: String,
			CreatedDateTime: 0001-01-01,
			ClientId: 0,
			GroupId: String,
			UserId: String,
			OpportunityId: String,
			InvoiceDueDate: 0001-01-01,
			Installments: 0,
			Frequency: 0,
			BhUserId: 0,
			Description: String,
			Deliver: False,
			CurrencyType: String,
			InvoiceItems: 
			[
				{
					ClassName: String,
					UniqueId: String,
					CreatedDateTime: 0001-01-01,
					ClientId: 0,
					ProductName: String,
					AmountDue: String,
					ProductType: String,
					ActPatternTypeId: 0,
					TermStartDate: 0001-01-01,
					TermEndDate: 0001-01-01,
					RecognitionPeriod: 0,
					RevenueAccount: String,
					AccountsReceivableAccount: String,
					LiabilityAccount: String,
					CreditExpenseAccount: String,
					InvoiceClearingAccount: String,
					CostCenter: String,
					Region: String
				}
			],
			InvoiceNo: 0,
			InvoiceAmt: 0,
			ExternalInvBatchNo: String,
			ExemptFromLateFee: False
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	InvoiceReply: 
	[
		{
			ClassName: String,
			UniqueId: String,
			CreatedDateTime: 0001-01-01,
			ClientId: 0,
			ErrorCode: 0,
			ErrorMessage: String,
			InvBatchNo: 0,
			InvAmount: 0
		}
	],
	IsError: False
}