Trendsic Platform Service

<back to all web services

ResourceRatesRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/rates
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 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

        Public Partial Class ResourceRatesRequest
            Public Overridable Property Type As String
            Public Overridable Property AsOf As String
        End Class

        Public Partial Class ResourceRatesResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Type As String
            Public Overridable Property AsOf As String
            Public Overridable Property Resources As List(Of ResourceRateResource) = New List(Of ResourceRateResource)
        End Class
    End Namespace
End Namespace

VB.NET ResourceRatesRequest 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.

GET /v1/rates HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
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
		}
	},
	Type: String,
	AsOf: String,
	Resources: 
	[
		{
			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
				}
			]
		}
	]
}