Trendsic Platform Service

<back to all web services

PortalQuoteRequest

The following routes are available for this service:
GET,OPTIONS/portal/{Token}/quote
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class PortalQuoteRequest
            Public Overridable Property Token As String
        End Class

        Public Partial Class PortalQuoteResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Name As String
            Public Overridable Property Status As String
            Public Overridable Property Currency As String
            Public Overridable Property Total As Decimal
            Public Overridable Property Notes As String
            Public Overridable Property FromName As String
            Public Overridable Property FromAddress As String
            Public Overridable Property ToName As String
            Public Overridable Property ToAddress As String
            Public Overridable Property ExpiresAt As Date?
            Public Overridable Property IsLocked As Boolean
            Public Overridable Property FinalPriceAfterCompletion As Boolean
            Public Overridable Property ApprovedByName As String
            Public Overridable Property ApprovedAt As Date?
            Public Overridable Property DeclinedByName As String
            Public Overridable Property DeclinedAt As Date?
            Public Overridable Property DeclineReason As String
            Public Overridable Property LineItems As List(Of QuoteItem) = New List(Of QuoteItem)
        End Class

        Public Partial Class QuoteItem
            Public Overridable Property QuoteItemID As Integer
            Public Overridable Property QuoteID As Integer
            Public Overridable Property ItemType As String
            Public Overridable Property SourceRefId As Integer?
            Public Overridable Property JobID As Integer?
            Public Overridable Property Name As String
            Public Overridable Property Description As String
            Public Overridable Property Quantity As Decimal?
            Public Overridable Property UnitPrice As Decimal?
            Public Overridable Property IsTaxable As Boolean?
            Public Overridable Property DisplayOrder As Integer?
            Public Overridable Property IsDeleted As Boolean?
        End Class
    End Namespace
End Namespace

VB.NET PortalQuoteRequest 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.

GET /portal/{Token}/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Name: String,
	Status: String,
	Currency: String,
	Total: 0,
	Notes: String,
	FromName: String,
	FromAddress: String,
	ToName: String,
	ToAddress: String,
	ExpiresAt: 0001-01-01,
	IsLocked: False,
	FinalPriceAfterCompletion: False,
	ApprovedByName: String,
	ApprovedAt: 0001-01-01,
	DeclinedByName: String,
	DeclinedAt: 0001-01-01,
	DeclineReason: String,
	LineItems: 
	[
		{
			QuoteItemID: 0,
			QuoteID: 0,
			ItemType: String,
			SourceRefId: 0,
			JobID: 0,
			Name: String,
			Description: String,
			Quantity: 0,
			UnitPrice: 0,
			IsTaxable: False,
			DisplayOrder: 0,
			IsDeleted: False
		}
	]
}