Trendsic Platform Service

<back to all web services

PortalQuoteRequest

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

namespace CRM.AgencyPlatform.API.Internal
{
    public partial class PortalQuoteRequest
    {
        public virtual string Token { get; set; }
    }

    public partial class PortalQuoteResponse
    {
        public virtual ResponseStatus ResponseStatus { get; set; }
        public virtual string Name { get; set; }
        public virtual string Status { get; set; }
        public virtual string Currency { get; set; }
        public virtual decimal Total { get; set; }
        public virtual string Notes { get; set; }
        public virtual string FromName { get; set; }
        public virtual string FromAddress { get; set; }
        public virtual string ToName { get; set; }
        public virtual string ToAddress { get; set; }
        public virtual DateTime? ExpiresAt { get; set; }
        public virtual bool IsLocked { get; set; }
        public virtual bool FinalPriceAfterCompletion { get; set; }
        public virtual string ApprovedByName { get; set; }
        public virtual DateTime? ApprovedAt { get; set; }
        public virtual string DeclinedByName { get; set; }
        public virtual DateTime? DeclinedAt { get; set; }
        public virtual string DeclineReason { get; set; }
        public virtual List<QuoteItem> LineItems { get; set; } = [];
    }

    public partial class QuoteItem
    {
        public virtual int QuoteItemID { get; set; }
        public virtual int QuoteID { get; set; }
        public virtual string ItemType { get; set; }
        public virtual int? SourceRefId { get; set; }
        public virtual int? JobID { get; set; }
        public virtual string Name { get; set; }
        public virtual string Description { get; set; }
        public virtual decimal? Quantity { get; set; }
        public virtual decimal? UnitPrice { get; set; }
        public virtual bool? IsTaxable { get; set; }
        public virtual int? DisplayOrder { get; set; }
        public virtual bool? IsDeleted { get; set; }
    }

}

C# PortalQuoteRequest 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.

GET /portal/{Token}/quote HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
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"}},"Name":"String","Status":"String","Currency":"String","Total":0,"Notes":"String","FromName":"String","FromAddress":"String","ToName":"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","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}]}