Trendsic Platform Service

<back to all web services

ResourceRateAppendRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/rates/{Uid}
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 ResourceRateAppendRequest
            Public Overridable Property Uid As Guid
            Public Overridable Property CostRate As Decimal
            Public Overridable Property BillRate As Decimal
            Public Overridable Property EffectiveFrom As String
        End Class

        Public Partial Class ResourceRateAppendResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Resource As ResourceRateResource
        End Class

        Public Partial Class ResourceRateComponentDto
            Public Overridable Property Label As String
            Public Overridable Property Amount As Decimal
        End Class

        Public Partial Class ResourceRateHistoryRow
            Public Overridable Property From As String
            Public Overridable Property Cost As Decimal
            Public Overridable Property Bill As Decimal
        End Class

        Public Partial Class ResourceRateResource
            Public Overridable Property Id As Guid
            Public Overridable Property Name As String
            Public Overridable Property Meta As String
            Public Overridable Property Unit As String
            Public Overridable Property CostRate As Decimal
            Public Overridable Property BillRate As Decimal
            Public Overridable Property EffectiveFrom As String
            Public Overridable Property HasCard As Boolean
            Public Overridable Property Composition As List(Of ResourceRateComponentDto) = New List(Of ResourceRateComponentDto)
            Public Overridable Property PrevailingFloor As Decimal?
            Public Overridable Property History As List(Of ResourceRateHistoryRow) = New List(Of ResourceRateHistoryRow)
        End Class
    End Namespace
End Namespace

VB.NET ResourceRateAppendRequest DTOs

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

HTTP + JSV

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

POST /v1/rates/{Uid} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Uid: 00000000000000000000000000000000,
	CostRate: 0,
	BillRate: 0,
	EffectiveFrom: String
}
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
		}
	},
	Resource: 
	{
		Id: 00000000000000000000000000000000,
		Name: String,
		Meta: String,
		Unit: String,
		CostRate: 0,
		BillRate: 0,
		EffectiveFrom: String,
		HasCard: False,
		Composition: 
		[
			{
				Label: String,
				Amount: 0
			}
		],
		PrevailingFloor: 0,
		History: 
		[
			{
				From: String,
				Cost: 0,
				Bill: 0
			}
		]
	}
}