Trendsic Platform Service

<back to all web services

UpdateQuoteRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/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 Quote
            Public Overridable Property QuoteID As Integer
            Public Overridable Property QuoteUID As Guid
            Public Overridable Property TenantId As Guid?
            Public Overridable Property BranchId As Guid?
            Public Overridable Property ProjectID As Integer
            Public Overridable Property ProjectUID As Guid?
            Public Overridable Property ProjectName As String
            Public Overridable Property Name As String
            Public Overridable Property Status As String
            Public Overridable Property Total As Decimal?
            Public Overridable Property Notes As String
            Public Overridable Property Currency As String
            Public Overridable Property FromName As String
            Public Overridable Property FromPhone As String
            Public Overridable Property FromEmail As String
            Public Overridable Property FromAddress As String
            Public Overridable Property ToName As String
            Public Overridable Property ToPhone As String
            Public Overridable Property ToEmail 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 CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedBy As String
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property Items 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

        Public Partial Class QuoteResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Quote As Quote
        End Class

        Public Partial Class UpdateQuoteRequest
            Public Overridable Property Quote As Quote
        End Class
    End Namespace
End Namespace

VB.NET UpdateQuoteRequest DTOs

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

HTTP + OTHER

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

PUT /v1/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Quote":{"QuoteID":0,"QuoteUID":"00000000000000000000000000000000","TenantId":"00000000000000000000000000000000","BranchId":"00000000000000000000000000000000","ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","Name":"String","Status":"String","Total":0,"Notes":"String","Currency":"String","FromName":"String","FromPhone":"String","FromEmail":"String","FromAddress":"String","ToName":"String","ToPhone":"String","ToEmail":"String","ToAddress":"String","ExpiresAt":"0001-01-01T00:00:00.0000000","IsLocked":false,"FinalPriceAfterCompletion":false,"ApprovedByName":"String","ApprovedAt":"0001-01-01T00:00:00.0000000","DeclinedByName":"String","DeclinedAt":"0001-01-01T00:00:00.0000000","DeclineReason":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Items":[{"QuoteItemID":0,"QuoteID":0,"ItemType":"String","SourceRefId":0,"JobID":0,"Name":"String","Description":"String","Quantity":0,"UnitPrice":0,"IsTaxable":false,"DisplayOrder":0,"IsDeleted":false}]}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Quote":{"QuoteID":0,"QuoteUID":"00000000000000000000000000000000","TenantId":"00000000000000000000000000000000","BranchId":"00000000000000000000000000000000","ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","Name":"String","Status":"String","Total":0,"Notes":"String","Currency":"String","FromName":"String","FromPhone":"String","FromEmail":"String","FromAddress":"String","ToName":"String","ToPhone":"String","ToEmail":"String","ToAddress":"String","ExpiresAt":"0001-01-01T00:00:00.0000000","IsLocked":false,"FinalPriceAfterCompletion":false,"ApprovedByName":"String","ApprovedAt":"0001-01-01T00:00:00.0000000","DeclinedByName":"String","DeclinedAt":"0001-01-01T00:00:00.0000000","DeclineReason":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Items":[{"QuoteItemID":0,"QuoteID":0,"ItemType":"String","SourceRefId":0,"JobID":0,"Name":"String","Description":"String","Quantity":0,"UnitPrice":0,"IsTaxable":false,"DisplayOrder":0,"IsDeleted":false}]}}