For AI agents: visit https://docs.digitalgenius.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
| 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 |
| Name | Type | Description |
|---|
| Success | Boolean | Whether successfully replaced the item |
| Order data | Object | Updated order data |