Stay.ai Swap Product In Subscription
This action is used to swap a product in a subscription with another product.
Official documentation for this endpoint that be found here: https://docs.stay.ai/reference/swap-line-product
Inputs
Name | Type | Description |
---|---|---|
Subscription Id | String | The id of the subscription |
Access Token | String | Stay.ai access token |
Line Item Id | String | Shopify subscription line ID of the existing line item to be swapped out ex: gid://shopify/SubscriptionLine/7a250aed-2c48-4ab1-8518-b7440d6cxxx |
New Product Varian Id | String | Shopify product variant ID of the new product ex: gid://shopify/ProductVariant/39964047110000 |
New Product Price | String | Price of the new product. |
New Product Quantity | String | Quantity of the new product. |
Initiator | Optional String | Initiating actor. Can be MERCHANT or CUSTOMER. Default: MERCHANT |
Is Discounted | Optional Boolean | Determines if the swap price requires the automated selling plan discount. |
Outputs
Name | Type | Description |
---|---|---|
Success | Boolean | Whether the call was successful or not |
Error | String | An error message if it fails |
Updated 7 months ago