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}
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal

Namespace Global

    Namespace CRM.AgencyPlatform.API.Internal

        Public Partial Class InvoiceWorkChange
            Public Overridable Property SourceType As String
            Public Overridable Property SourceID As Integer
            Public Overridable Property JobID As Integer?
            Public Overridable Property WorkDate As Date?
            Public Overridable Property WorkDay As String
            Public Overridable Property DisplayDay As String
            Public Overridable Property Label As String
            Public Overridable Property JobName As String
            Public Overridable Property DisplayDate As Date?
            Public Overridable Property Unit As String
            Public Overridable Property Billed As Decimal
            Public Overridable Property NowQuantity As Decimal
            Public Overridable Property OverBilled As Decimal
            Public Overridable Property UnitFactor As Decimal
            Public Overridable Property Price As Decimal
            Public Overridable Property Amount As Decimal
            Public Overridable Property LineType As String
            Public Overridable Property IsTaxable As Boolean
            Public Overridable Property InvoiceID As Integer
            Public Overridable Property InvoiceUID As Guid
            Public Overridable Property InvoiceNumber As String
            Public Overridable Property InvoiceTotal As Decimal
            Public Overridable Property InvoiceIsLocked As Boolean
            Public Overridable Property InvoiceIsPaid As Boolean
            Public Overridable Property State As String
            Public Overridable Property Remembered As String
            Public Overridable Property DecidedByName As String
            Public Overridable Property DecidedAt As Date?
        End Class

        Public Partial Class InvoiceWorkChangesRequest
            Public Overridable Property ProjectUID As Guid
            Public Overridable Property InvoiceID As Integer?
        End Class

        Public Partial Class InvoiceWorkChangesResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Success As Boolean
            Public Overridable Property Changes As List(Of InvoiceWorkChange) = New List(Of InvoiceWorkChange)
        End Class
    End Namespace
End Namespace

VB.NET InvoiceWorkChangesRequest DTOs

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

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}]}