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

# Fulfillment

> The address, the shipping, delivery or pickup method, and the delivery date on update_checkout.

Fulfillment is how the order reaches the shopper: an address and a method. Both are set with `update_checkout` on an open checkout, after `create_checkout`.

```json theme={null}
{
  "thread_id": "thr_…",
  "fulfillment": {
    "address": {
      "first_name": "Jane",
      "last_name": "Doe",
      "street_address": "123 Main St",
      "address_locality": "Austin",
      "address_region": "TX",
      "postal_code": "78701",
      "address_country": "US"
    },
    "method": { "id": "shipping_standard", "kind": "shipping", "label": "Standard shipping" }
  }
}
```

Send the address, the method, or both. The call can also carry `payment.use_vaulted_card`. It returns the checkout with new `totals`, a new `review_hash`, and `fulfillment.methods`.

## Address

| Field | Required | Notes |
| - | - | - |
| `street_address` | Yes | |
| `address_locality` | Yes | City |
| `address_region` | Yes | State, for example `TX` |
| `postal_code` | Yes | |
| `address_country` | Yes | `US`, `USA` or `United States` |
| `first_name` | One name | At least one of `first_name` or `last_name` |
| `last_name` | One name | |
| `extended_address` | No | Apartment, suite, unit |
| `phone_number` | No | |

AgentMall does not store addresses. Send the address on each thread that needs one.

| Code | What to do |
| - | - |
| `invalid_input` | A required field is missing, or neither name is set. The message names it. |
| `invalid_address` | The country is not the US. Only US addresses are supported. |

## Method

A method is `{ id, kind, label }`. `kind` is `shipping`, `delivery` or `pickup`. Copy the whole object from `fulfillment.methods` in the latest checkout response. Do not build an `id` yourself.

```json theme={null}
{
  "fulfillment": {
    "methods": [
      { "id": "shipping_standard", "kind": "shipping", "label": "Standard shipping" },
      { "id": "pickup_store_3795", "kind": "pickup", "label": "Pickup at Supercenter #3795" }
    ]
  }
}
```

The list can change after the address changes, so read it again from the `update_checkout` response. A method id that is not on the page returns `delivery_method_not_found`: pick one from the latest `fulfillment.methods`.

Delivery time slots are not listed and cannot be chosen.

## Delivery date

`fulfillment.delivery_date` is the date the checkout shows for the chosen method:

```json theme={null}
{ "earliest": "2026-11-25", "latest": "2026-11-27", "text": "Arrives Nov 25 – Nov 27" }
```

`latest` is `null` for a single day. The whole field is `null` when the page shows no readable date. It is for showing the shopper. It is not part of `review_hash`.

## Estimates before the card

To show shipping and tax before asking for a card, call `update_checkout` with only `fulfillment.address`, and optionally `fulfillment.method`. The returned `totals` have subtotal, tax and total. `status` stays `incomplete` until a card is set.

## Fulfillment and the review

The address summary and the method's `id` and `label` are part of `review_hash`. Changing either after the shopper approved the total gives a new hash. Read the checkout again and show it before `complete_checkout`. See [Review and Safety](https://agentmall.mintlify.site/concepts/review-safety.md).


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