---
title: "checkoutShippingLineUpdate"
description: "Updates the shipping lines on an existing checkout."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/checkouts/mutations/checkout-shipping-line-update'
  md: 'https://developer.shopline.com/docs/storefront-api/checkouts/mutations/checkout-shipping-line-update.md'
---
# checkoutShippingLineUpdate

Updates the shipping lines on an existing checkout.

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`CheckoutShippingLineUpdatePayload`

## Arguments

* `shippingRateHandle`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  A unique identifier to a Checkout’s shipping provider, price, and title combination, enabling the customer to select the availableShippingRates.

* `checkoutId`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  Checkout id

## Returns

* `checkoutUserErrors`

  [[CheckoutUserError!]!](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout-user-error.md)

  The list of errors that occurred from executing the mutation.

* `checkout`

  [Checkout](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout.md)

  The updated checkout object.

## Code Example

```graphql
mutation checkoutShippingLineUpdate($shippingRateHandle: String! $checkoutId: String! ) {
	checkoutShippingLineUpdate(shippingRateHandle: $shippingRateHandle, checkoutId: $checkoutId ) 
		 {
			# CheckoutShippingLineUpdatePayload fields
		}
		
	}

```

## Variables

```json
{
  "checkoutId": {},
  "shippingRateHandle": {}
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

