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

# attachLandedCostGuarantee

> Attach a landed cost quote from getShippingLabelQuotes to an order, so the order carries a Landed Cost Guarantee. Once attached, quotes for the order are landed cost quotes, as when the shopper bought the guarantee at checkout. Attaching the same quote to the same order again returns the attachment. Fails with `LANDED_COST_QUOTE_NOT_FOUND` when no quote has the id or it is older than 60 days, `ORDER_NOT_FOUND` when no order has the id, `LANDED_COST_QUOTE_ALREADY_ATTACHED` when the quote is attached to another order, `ORDER_HAS_LANDED_COST` when the order already has a Landed Cost Guarantee, and `LANDED_COST_QUOTE_ORDER_MISMATCH` when the quote ships to another country than the order or declares more items than the order has.

**Required scopes:** [`shipping_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-shipping_write)

## Arguments

**input** `[AttachLandedCostGuaranteeInput!](/docs/api-reference/v3/reference/shipping/attach-landed-cost-guarantee-input)` *required*

The quote and the order to attach it to.

**fields**

**externalOrderId** `String!` *required*

The id of the order, as it appears in the store's commerce platform.

**landedCostQuoteId** `ID!` *required*

The `id` of a `landedCost` returned by getShippingLabelQuotes in the last 60 days.

## Returns

**attachLandedCostGuarantee** `[LandedCostGuaranteeAttachment!](/docs/api-reference/v3/reference/shipping/landed-cost-guarantee-attachment)` *required*

A landed cost quote attached to an order.

**fields**

**externalOrderId** `String!` *required*

The id of the order, as it appears in the store's commerce platform.

**landedCostQuoteId** `ID!` *required*

The attached landed cost quote.

## Example

```graphql theme={null}
mutation {
  attachLandedCostGuarantee(input: { ... }) {
    externalOrderId
    landedCostQuoteId
  }
}
```


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