---
updatedAt: 2025-11-12T02:44:46.000Z
agentTools:
  projectIndex: https://docs.digitalgenius.com/llms.txt
---

# Shopify Replace Item

Get line item inventory

## Inputs

| Name                   | Type            | Description                                                                                                                                       |
| :--------------------- | :-------------- | :------------------------------------------------------------------------------------------------------------------------------------------------ |
| Shopify Token          | SensitiveString | Shopify API token                                                                                                                                 |
| Shopify Domain         | String          | Shopify domain                                                                                                                                    |
| Order ID               | String          | Order ID                                                                                                                                          |
| Line Item              | Object          | Order Line Item                                                                                                                                   |
| Variant ID             | Optional Number | Product variant to replace with                                                                                                                   |
| Final Sale Tag         | Optional String | Final Sale tag to check against the product tags, if this tag is present on the product in the order line item then order considered not editable |
| Substitute Location ID | Optional Number | Location ID different from the one from where the initial item should have been shipped                                                           |

## Outputs

| Name       | Type    | Description                            |
| :--------- | :------ | :------------------------------------- |
| Success    | Boolean | Whether successfully replaced the item |
| Order data | Object  | Updated order data                     |