# API Documentation

## Pickup Address

**Type:** string  
**Required:** Yes  
**Defaults to:** 1 Wall St, New York, NY 10005, USA  
**Description:** Pickup address of the order.

## Delivery Address

**Type:** string  
**Required:** Yes  
**Defaults to:** 1000 5th Ave, New York, NY 10028, USA  
**Description:** Delivery address of the order.

## Delivery Time

**Type:** string  
**Defaults to:** 2025-06-25T17:20:26Z  
**Description:** Expected time for delivery in UTC following ISO_8061 format.

## Pickup Time

**Type:** string  
**Defaults to:** 2025-06-25T17:00:26Z  
**Description:** Expected time for pickup in UTC following ISO_8061 format.

# Example Response

```json
{
   "status": 200
}
```

# Example Error Response

```json
{
   "status": 401,
   "error": "Unauthorized"
}
```

* * *

### CURL Example

```shell
curl --location 'https://api.shipday.com/on-demand/availability' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic 5DssQuvPtl.El4Px8lVjl8X5K2ERCfX' \
--data '{
    "pickupAddress": "1 Wall St, New York, NY 10005, USA",
    "deliveryAddress": "1000 5th Ave, New York, NY 10028, USA",
    "deliveryTime": "2025-06-25T17:20:26Z"
}'
```

# Delivery Services

```json
[
  {
    "id": "1",
    "name": "DoorDash",
    "fee": 11.5,
    "pickupTime": "2025-06-25T17:23:52Z",
    "deliveryTime": "2025-06-25T18:16:41Z",
    "pickupDuration": 11,
    "deliveryDuration": 63,
    "error": false,
    "errorCode": null,
    "errorMessage": null,
    "errorDescription": null,
    "isProd": false,
    "isInternal": false,
    "probableAssignment": false,
    "minBillableFee": null,
    "regulatoryFee": 0
  },
  {
    "id": null,
    "name": "MotoClick",
    "fee": null,
    "pickupTime": null,
    "deliveryTime": null,
    "pickupDuration": null,
    "deliveryDuration": null,
    "error": true,
    "errorCode": null,
    "errorMessage": "No service available",
    "errorDescription": "Outside Delivery Zone",
    "isProd": false,
    "isInternal": false,
    "probableAssignment": false,
    "minBillableFee": null,
    "regulatoryFee": 0
  },
  {
    "id": "dqt_iEU4aT01QJGGHYYZubMqQA",
    "name": "Uber",
    "fee": 11.99,
    "pickupTime": "2025-06-25T17:29:51Z",
    "deliveryTime": "2025-06-25T18:40:29Z",
    "pickupDuration": 17,
    "deliveryDuration": 87,
    "error": false,
    "errorCode": null,
    "errorMessage": null,
    "errorDescription": null,
    "isProd": false,
    "isInternal": false,
    "probableAssignment": false,
    "minBillableFee": null,
    "regulatoryFee": 0
  }
]
```
