| POST,OPTIONS | /v1/book/{Slug}/quote |
|---|
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 CourierBookQuoteLine
{
public virtual string Kind { get; set; }
public virtual decimal Amount { get; set; }
public virtual decimal? Qty { get; set; }
public virtual decimal? Rate { get; set; }
}
public partial class CourierBookQuoteRequest
{
public virtual string Slug { get; set; }
public virtual string Profile { get; set; }
public virtual string Level { get; set; }
public virtual int Units { get; set; }
public virtual string Zip { get; set; }
public virtual decimal? Lat { get; set; }
public virtual decimal? Lng { get; set; }
public virtual decimal? DropLat { get; set; }
public virtual decimal? DropLng { get; set; }
}
public partial class CourierBookQuoteResponse
{
public virtual string Zone { get; set; }
public virtual decimal? Miles { get; set; }
public virtual List<CourierBookQuoteLine> Lines { get; set; } = [];
public virtual decimal Total { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
C# CourierBookQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/book/{Slug}/quote HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Slug":"String","Profile":"String","Level":"String","Units":0,"Zip":"String","Lat":0,"Lng":0,"DropLat":0,"DropLng":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Zone":"String","Miles":0,"Lines":[{"Kind":"String","Amount":0,"Qty":0,"Rate":0}],"Total":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}