Trendsic Platform Service

<back to all web services

ChangeOrderDetailRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/projects/{ProjectID}/change-orders/{ChangeOrderID}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class ChangeOrderDetailRequest
{
    open var ProjectID:Int? = null
    open var ChangeOrderID:Int? = null
}

open class ChangeOrderResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Order:ChangeOrder? = null
    open var Summary:ChangeOrderContractSummary? = null
}

open class ChangeOrder
{
    open var ChangeOrderID:Int? = null
    open var ChangeOrderUID:UUID? = null
    open var ProjectID:Int? = null
    open var CONumber:String? = null
    open var Title:String? = null
    open var Scope:String? = null
    open var Status:String? = null
    open var CostUSD:BigDecimal? = null
    open var PriceUSD:BigDecimal? = null
    open var ScheduleDays:Int? = null
    open var OverheadProfitPct:BigDecimal? = null
    open var PricingMethod:String? = null
    open var OriginType:String? = null
    open var OriginRef:String? = null
    open var CostCode:String? = null
    open var OpenedAt:Date? = null
    open var SubmittedAt:Date? = null
    open var DecidedAt:Date? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
    open var DaysOpen:Int? = null
    open var Lines:ArrayList<ChangeOrderLine> = ArrayList<ChangeOrderLine>()
}

open class ChangeOrderLine
{
    open var ChangeOrderLineID:Int? = null
    open var ChangeOrderID:Int? = null
    open var Category:String? = null
    open var Description:String? = null
    open var CostUSD:BigDecimal? = null
    open var MarkupPct:BigDecimal? = null
    open var CostCode:String? = null
    open var SortOrder:Int? = null
}

open class ChangeOrderContractSummary
{
    open var ProjectID:Int? = null
    open var OriginalContract:BigDecimal? = null
    open var ApprovedCOValue:BigDecimal? = null
    open var ApprovedCOCount:Int? = null
    open var PendingCOValue:BigDecimal? = null
    open var PendingCOCount:Int? = null
    open var RevisedContract:BigDecimal? = null
    open var PotentialContract:BigDecimal? = null
    open var ApprovedScheduleDays:Int? = null
}

Kotlin ChangeOrderDetailRequest DTOs

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

HTTP + XML

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

GET /v1/projects/{ProjectID}/change-orders/{ChangeOrderID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ChangeOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Order>
    <CONumber>String</CONumber>
    <ChangeOrderID>0</ChangeOrderID>
    <ChangeOrderUID>00000000-0000-0000-0000-000000000000</ChangeOrderUID>
    <CostCode>String</CostCode>
    <CostUSD>0</CostUSD>
    <CreatedAt>0001-01-01T00:00:00</CreatedAt>
    <CreatedBy>String</CreatedBy>
    <DaysOpen>0</DaysOpen>
    <DecidedAt>0001-01-01T00:00:00</DecidedAt>
    <Lines>
      <ChangeOrderLine>
        <Category>String</Category>
        <ChangeOrderID>0</ChangeOrderID>
        <ChangeOrderLineID>0</ChangeOrderLineID>
        <CostCode>String</CostCode>
        <CostUSD>0</CostUSD>
        <Description>String</Description>
        <MarkupPct>0</MarkupPct>
        <SortOrder>0</SortOrder>
      </ChangeOrderLine>
    </Lines>
    <OpenedAt>0001-01-01T00:00:00</OpenedAt>
    <OriginRef>String</OriginRef>
    <OriginType>String</OriginType>
    <OverheadProfitPct>0</OverheadProfitPct>
    <PriceUSD>0</PriceUSD>
    <PricingMethod>String</PricingMethod>
    <ProjectID>0</ProjectID>
    <ScheduleDays>0</ScheduleDays>
    <Scope>String</Scope>
    <Status>String</Status>
    <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
    <Title>String</Title>
    <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
  </Order>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Summary>
    <ApprovedCOCount>0</ApprovedCOCount>
    <ApprovedCOValue>0</ApprovedCOValue>
    <ApprovedScheduleDays>0</ApprovedScheduleDays>
    <OriginalContract>0</OriginalContract>
    <PendingCOCount>0</PendingCOCount>
    <PendingCOValue>0</PendingCOValue>
    <PotentialContract>0</PotentialContract>
    <ProjectID>0</ProjectID>
    <RevisedContract>0</RevisedContract>
  </Summary>
</ChangeOrderResponse>