---
title: "Save selected shipping method for checkout"
method: POST
path: "/checkout-shipping-methods"
tags: ["Checkout"]
---

# Save selected shipping method for checkout

`POST /checkout-shipping-methods`

## Request

- Base URL: `http://localhost:8000/api/shop`
- URL: `http://localhost:8000/api/shop/checkout-shipping-methods`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-shop-api/docs/checkout-shipping-methods/post.ts> (a function with typed inputs; its response is checked against the schema)

Save selected shipping method for checkout

## Headers

- `X-STOREFRONT-KEY` string, required
- `X-Locale` string
- `X-Channel` string
- `X-Currency` string

## Request body

- object
  - `shippingMethod` string, required

## Response `201`

Shipping method saved.

## Other responses

- `400`: Invalid input
- `422`: Validation Error
- `500`: No cart/addresses saved, or invalid shipping method.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-shop-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-shop-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-shop-api/revisions/f619df36bf29?raw)
