| GET,OPTIONS | /v1/worker/dispatch/od/pay |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class CourierDriverPayRequest
{
}
public partial class CourierDriverPayResponse
{
public virtual List<CourierDriverPayRow> Rows { get; set; } = [];
public virtual decimal Total { get; set; }
public virtual bool Available { get; set; }
public virtual DateTime ServerUtc { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
public partial class CourierDriverPayRow
{
public virtual int DispatchLoadID { get; set; }
public virtual string Code { get; set; }
public virtual string Kind { get; set; }
public virtual string OrderCode { get; set; }
public virtual string RunCode { get; set; }
public virtual string QtyText { get; set; }
public virtual string SourceLabel { get; set; }
public virtual string DestinationLabel { get; set; }
public virtual string Status { get; set; }
public virtual decimal? Pay { get; set; }
public virtual DateTime? OpenedUtc { get; set; }
public virtual DateTime? ClosedUtc { get; set; }
public virtual List<CourierPayLineView> Lines { get; set; } = [];
}
public partial class CourierPayLineView
{
public virtual int DispatchLoadID { get; set; }
public virtual string Kind { get; set; }
public virtual string Label { get; set; }
public virtual decimal? Qty { get; set; }
public virtual decimal? Rate { get; set; }
public virtual decimal Amount { get; set; }
}
}
C# CourierDriverPayRequest 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.
GET /v1/worker/dispatch/od/pay HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Rows":[{"DispatchLoadID":0,"Code":"String","Kind":"String","OrderCode":"String","RunCode":"String","QtyText":"String","SourceLabel":"String","DestinationLabel":"String","Status":"String","Pay":0,"OpenedUtc":"0001-01-01T00:00:00.0000000","ClosedUtc":"0001-01-01T00:00:00.0000000","Lines":[{"DispatchLoadID":0,"Kind":"String","Label":"String","Qty":0,"Rate":0,"Amount":0}]}],"Total":0,"Available":false,"ServerUtc":"0001-01-01T00:00:00.0000000","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}