Trendsic Platform Service

<back to all web services

UpdateQuoteRequest

Requires Authentication
The following routes are available for this service:
PUT,OPTIONS/v1/quote

export class QuoteItem
{
    public QuoteItemID: number;
    public QuoteID: number;
    public ItemType: string;
    public SourceRefId?: number;
    public JobID?: number;
    public Name: string;
    public Description: string;
    public Quantity?: number;
    public UnitPrice?: number;
    public IsTaxable?: boolean;
    public DisplayOrder?: number;
    public IsDeleted?: boolean;

    public constructor(init?: Partial<QuoteItem>) { (Object as any).assign(this, init); }
}

export class Quote
{
    public QuoteID: number;
    public QuoteUID: string;
    public TenantId?: string;
    public BranchId?: string;
    public ProjectID: number;
    public ProjectUID?: string;
    public ProjectName: string;
    public Name: string;
    public Status: string;
    public Total?: number;
    public Notes: string;
    public Currency: string;
    public FromName: string;
    public FromPhone: string;
    public FromEmail: string;
    public FromAddress: string;
    public ToName: string;
    public ToPhone: string;
    public ToEmail: string;
    public ToAddress: string;
    public ExpiresAt?: string;
    public IsLocked?: boolean;
    public FinalPriceAfterCompletion?: boolean;
    public ApprovedByName: string;
    public ApprovedAt?: string;
    public DeclinedByName: string;
    public DeclinedAt?: string;
    public DeclineReason: string;
    public CreatedBy: string;
    public CreatedAt?: string;
    public UpdatedBy: string;
    public UpdatedAt?: string;
    public Items: QuoteItem[] = [];

    public constructor(init?: Partial<Quote>) { (Object as any).assign(this, init); }
}

export class QuoteResponse
{
    public ResponseStatus: ResponseStatus;
    public Quote: Quote;

    public constructor(init?: Partial<QuoteResponse>) { (Object as any).assign(this, init); }
}

export class UpdateQuoteRequest
{
    public Quote: Quote;

    public constructor(init?: Partial<UpdateQuoteRequest>) { (Object as any).assign(this, init); }
}

TypeScript UpdateQuoteRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
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: application/json
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}]}}