Billhighway Cloud API

<back to all web services

ClientMappingsByTypeAndTargetRq

The following routes are available for this service:
GET/api/client/mappings/type/{typeDesc}/target/{target}
namespace BH.Client.Configuration

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ClientMap() = 
        member val ClientMapID:Int64 = new Int64() with get,set
        member val TheirVal:String = null with get,set
        member val OurVal:String = null with get,set
        member val KeyTypeID:Int32 = new Int32() with get,set
        member val KeyTypeDesc:String = null with get,set
        member val TypeID:Int32 = new Int32() with get,set
        member val TypeDesc:String = null with get,set
        member val KeyValue:Int32 = new Int32() with get,set
        member val MapTarget:String = null with get,set

    [<AllowNullLiteral>]
    type ClientMappingsRs() = 
        member val ClientMappings:ResizeArray<ClientMap> = new ResizeArray<ClientMap>() with get,set

    [<AllowNullLiteral>]
    type ClientMappingsByTypeAndTargetRq() = 
        member val TypeDesc:String = null with get,set
        member val Target:String = null with get,set

F# ClientMappingsByTypeAndTargetRq 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 /api/client/mappings/type/{typeDesc}/target/{target} HTTP/1.1 
Host: devapi.billhighway.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ClientMappings: 
	[
		{
			ClientMapID: 0,
			TheirVal: String,
			OurVal: String,
			KeyTypeID: 0,
			KeyTypeDesc: String,
			TypeID: 0,
			TypeDesc: String,
			KeyValue: 0,
			MapTarget: String
		}
	]
}