| GET,POST,PUT,DELETE,OPTIONS | /v1/Project/Invoice/{ProjectID}/{InvoiceStartDate}/{InvoiceEndDate} |
|---|
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 ProjectInvoice
Public Overridable Property CostType As String
Public Overridable Property CostName As String
Public Overridable Property CostToDate As Decimal
Public Overridable Property JobID As Integer
Public Overridable Property Rate As Decimal
Public Overridable Property Hours As Integer
End Class
Public Partial Class ProjectInvoiceRequest
Public Overridable Property ProjectID As Integer
Public Overridable Property InvoiceStartDate As Date
Public Overridable Property InvoiceEndDate As Date
End Class
Public Partial Class ProjectInvoiceResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property ProjectInvoice As List(Of ProjectInvoice) = New List(Of ProjectInvoice)
End Class
End Namespace
End Namespace
VB.NET ProjectInvoiceRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Project/Invoice/{ProjectID}/{InvoiceStartDate}/{InvoiceEndDate} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ProjectID":0,"InvoiceStartDate":"0001-01-01T00:00:00.0000000","InvoiceEndDate":"0001-01-01T00:00:00.0000000"}
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"}},"ProjectInvoice":[{"CostType":"String","CostName":"String","CostToDate":0,"JobID":0,"Rate":0,"Hours":0}]}