The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /v1/quote HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
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-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
}
]
}
}
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
}
]
}
}