> ## Documentation Index
> Fetch the complete documentation index at: https://firmly.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Configure shipment fulfillment and delivery options

The Shipment Configuration API provides endpoints to manage how shipments are fulfilled and delivered.

## Overview

This API allows you to:

* **Set Fulfillment Type**: Configure how a shipment will be fulfilled (standard shipping, scheduled delivery, or in-store pickup)
* **Set Shipping Method**: Select shipping options for standard delivery
* **Get Availability**: Query available dates and time slots for scheduled delivery

## Available Endpoints

> [card] [Set Fulfillment Type](https://firmly.mintlify.site/api-reference/shipment-configuration/set-fulfillment-type.md)
>
> Configure how each shipment will be fulfilled

> [card] [Set Shipping Method](https://firmly.mintlify.site/api-reference/shipment-configuration/set-shipping-method.md)
>
> Select shipping method for standard delivery

> [card] [Get Availability](https://firmly.mintlify.site/api-reference/shipment-configuration/get-availability.md)
>
> Check available dates for scheduled delivery

## Fulfillment Types

Each shipment can be configured with one of these fulfillment types:

### SHIP\_TO\_ADDRESS

Standard shipping to customer's address. Requires shipping method selection.

### SCHEDULED\_DELIVERY

Delivery with appointment scheduling. Supports date and time slot selection via the availability endpoint.

### IN\_STORE\_PICKUP

Customer pickup at store location (availability depends on merchant support).

## Workflow

**1. Get Cart**

Retrieve the cart to see current shipments and their fulfillment options

**2. Set Fulfillment Type**

Configure each shipment's fulfillment type based on available options

**3. Configure Delivery**

* For `SHIP_TO_ADDRESS`: Set shipping method
* For `SCHEDULED_DELIVERY`: Get availability, then set delivery date/time
* For `IN_STORE_PICKUP`: Select pickup location (if applicable)

## Default Selection Behavior

> [!NOTE]
>
> **Automatic Defaults**: When a cart is created or shipping information is set, Firmly automatically:
>
> * Selects a default fulfillment type for each shipment
> * Chooses the cheapest available shipping method for standard shipping
>
> This ensures the cart always has valid shipping configuration without requiring explicit selection.

## Important Notes

> [!WARNING]
>
> The **Get Availability** endpoint only works for shipments configured with `SCHEDULED_DELIVERY` fulfillment type. It's not a general availability check endpoint.

> [!NOTE]
>
> Shipments are created and grouped by the merchant's system based on their fulfillment rules. Firmly provides a standardized interface to configure these merchant-defined shipments.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.