Trendsic Platform Service

<back to all web services

PoolsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/records/logistics/pools
namespace CRM.AgencyPlatform.API.Internal

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

    [<AllowNullLiteral>]
    type RecordsPoolDto() = 
        member val PoolId:Int32 = new Int32() with get,set
        member val PoolKey:String = null with get,set
        member val Site:String = null with get,set
        member val Method:String = null with get,set
        member val Icon:String = null with get,set
        member val Note:String = null with get,set
        member val ItemsJson:String = null with get,set
        member val Boxes:Int32 = new Int32() with get,set
        member val Pages:Int32 = new Int32() with get,set
        member val WeightLbs:Int32 = new Int32() with get,set
        member val ThBoxes:Int32 = new Int32() with get,set
        member val ThWeight:Int32 = new Int32() with get,set
        member val Status:String = null with get,set

    [<AllowNullLiteral>]
    type PoolsResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Pools:ResizeArray<RecordsPoolDto> = new ResizeArray<RecordsPoolDto>() with get,set

    [<AllowNullLiteral>]
    type PoolsRequest() = 
        class end

F# PoolsRequest DTOs

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

HTTP + CSV

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

GET /v1/records/logistics/pools HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Pools":[{"PoolId":0,"PoolKey":"String","Site":"String","Method":"String","Icon":"String","Note":"String","ItemsJson":"String","Boxes":0,"Pages":0,"WeightLbs":0,"ThBoxes":0,"ThWeight":0,"Status":"String"}]}