Trendsic Platform Service

<back to all web services

DeleteQuoteRequest

Requires Authentication
The following routes are available for this service:
DELETE,OPTIONS/v1/quote/{QuoteID}

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 DeleteQuoteRequest
{
    public QuoteID: number;

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

TypeScript DeleteQuoteRequest 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.

DELETE /v1/quote/{QuoteID} 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
		}
	},
	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-01,
		IsLocked: False,
		FinalPriceAfterCompletion: False,
		ApprovedByName: String,
		ApprovedAt: 0001-01-01,
		DeclinedByName: String,
		DeclinedAt: 0001-01-01,
		DeclineReason: String,
		CreatedBy: String,
		CreatedAt: 0001-01-01,
		UpdatedBy: String,
		UpdatedAt: 0001-01-01,
		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
			}
		]
	}
}