| POST,OPTIONS | /v1/book/{Slug}/orders | ||
|---|---|---|---|
| POST,OPTIONS | /v1/book/{Slug}/orders/confirm |
export class CourierBookOrderResponse
{
public Done: boolean;
public NeedsAction: boolean;
public ClientSecret: string;
public SetupIntentId: string;
public Code: string;
public TrackUrl: string;
public IcsUrl: string;
public WindowText: string;
public Promise: string;
public Total: number;
public PayTiming: string;
public CardLast4: string;
public Repeats: string;
public LinkSentBy: string;
public ReopenStep: string;
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<CourierBookOrderResponse>) { (Object as any).assign(this, init); }
}
export class CourierBookOrderRequest
{
public Slug: string;
public Profile: string;
public TurnstileToken: string;
public Level: string;
public WindowId: string;
public Recur: string;
public Address: string;
public Unit: string;
public City: string;
public Zip: string;
public Lat?: number;
public Lng?: number;
public PickupName: string;
public DropAddress: string;
public DropUnit: string;
public DropCity: string;
public DropZip: string;
public DropLat?: number;
public DropLng?: number;
public RecipientName: string;
public Units: number;
public Handoff: string;
public GateCode: string;
public Note: string;
public Name: string;
public Phone: string;
public Email: string;
public SmsConsent: boolean;
public Terms: boolean;
public PaymentMethodId: string;
public SetupIntentId: string;
public QuotedTotal?: number;
public Lang: string;
public constructor(init?: Partial<CourierBookOrderRequest>) { (Object as any).assign(this, init); }
}
TypeScript CourierBookOrderRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/book/{Slug}/orders HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Slug: String,
Profile: String,
TurnstileToken: String,
Level: String,
WindowId: String,
Recur: String,
Address: String,
Unit: String,
City: String,
Zip: String,
Lat: 0,
Lng: 0,
PickupName: String,
DropAddress: String,
DropUnit: String,
DropCity: String,
DropZip: String,
DropLat: 0,
DropLng: 0,
RecipientName: String,
Units: 0,
Handoff: String,
GateCode: String,
Note: String,
Name: String,
Phone: String,
Email: String,
SmsConsent: False,
Terms: False,
PaymentMethodId: String,
SetupIntentId: String,
QuotedTotal: 0,
Lang: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Done: False,
NeedsAction: False,
ClientSecret: String,
SetupIntentId: String,
Code: String,
TrackUrl: String,
IcsUrl: String,
WindowText: String,
Promise: String,
Total: 0,
PayTiming: String,
CardLast4: String,
Repeats: String,
LinkSentBy: String,
ReopenStep: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}