| GET,OPTIONS | /v1/book/{Slug}/availability |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Slug | path | string | No | |
| Profile | query | string | No | |
| Zip | query | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InArea | form | bool | No | |
| Days | form | List<CourierBookDay> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| DayIx | form | int | No | |
| Date | form | string | No | |
| Weekday | form | int | No | |
| Closed | form | bool | No | |
| Windows | form | List<Window> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | string | No | |
| DayIx | form | int | No | |
| StartMin | form | int | No | |
| EndMin | form | int | No | |
| Label | form | string | No | |
| Asap | form | bool | No | |
| Levels | form | List<LevelOffer> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Code | form | string | No | |
| Name | form | string | No | |
| Ok | form | bool | No | |
| Why | form | string | No | |
| Promise | form | string | No | |
| Surcharge | form | decimal | No |
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.
GET /v1/book/{Slug}/availability HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
InArea: False,
Days:
[
{
DayIx: 0,
Date: String,
Weekday: 0,
Closed: False,
Windows:
[
{
Id: String,
DayIx: 0,
StartMin: 0,
EndMin: 0,
Label: String,
Asap: False,
Levels:
[
{
Code: String,
Name: String,
Ok: False,
Why: String,
Promise: String,
Surcharge: 0
}
]
}
]
}
],
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}