Trendsic Platform Service

<back to all web services

InvoiceWorkChangesRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/invoice/workchanges/{ProjectUID}
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class InvoiceWorkChangesRequest
{
    open var ProjectUID:UUID? = null
    open var InvoiceID:Int? = null
}

open class InvoiceWorkChangesResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Success:Boolean? = null
    open var Changes:ArrayList<InvoiceWorkChange> = ArrayList<InvoiceWorkChange>()
}

open class InvoiceWorkChange
{
    open var SourceType:String? = null
    open var SourceID:Int? = null
    open var JobID:Int? = null
    open var WorkDate:Date? = null
    open var WorkDay:String? = null
    open var DisplayDay:String? = null
    open var Label:String? = null
    open var JobName:String? = null
    open var DisplayDate:Date? = null
    open var Unit:String? = null
    open var Billed:BigDecimal? = null
    open var NowQuantity:BigDecimal? = null
    open var OverBilled:BigDecimal? = null
    open var UnitFactor:BigDecimal? = null
    open var Price:BigDecimal? = null
    open var Amount:BigDecimal? = null
    open var LineType:String? = null
    open var IsTaxable:Boolean? = null
    open var InvoiceID:Int? = null
    open var InvoiceUID:UUID? = null
    open var InvoiceNumber:String? = null
    open var InvoiceTotal:BigDecimal? = null
    open var InvoiceIsLocked:Boolean? = null
    open var InvoiceIsPaid:Boolean? = null
    open var State:String? = null
    open var Remembered:String? = null
    open var DecidedByName:String? = null
    open var DecidedAt:Date? = null
}

Kotlin InvoiceWorkChangesRequest 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.

GET /v1/invoice/workchanges/{ProjectUID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
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"}},"Success":false,"Changes":[{"SourceType":"String","SourceID":0,"JobID":0,"WorkDate":"0001-01-01T00:00:00.0000000","WorkDay":"String","DisplayDay":"String","Label":"String","JobName":"String","DisplayDate":"0001-01-01T00:00:00.0000000","Unit":"String","Billed":0,"NowQuantity":0,"OverBilled":0,"UnitFactor":0,"Price":0,"Amount":0,"LineType":"String","IsTaxable":false,"InvoiceID":0,"InvoiceUID":"00000000000000000000000000000000","InvoiceNumber":"String","InvoiceTotal":0,"InvoiceIsLocked":false,"InvoiceIsPaid":false,"State":"String","Remembered":"String","DecidedByName":"String","DecidedAt":"0001-01-01T00:00:00.0000000"}]}