Product Catalog
Update an existing product swap automation
Updates an existing product swap automation rule for the authenticated shop. Use this endpoint to modify swap configurations, change source/destination products, adjust timing, or update discount handling.
Full behavior, validation rules, and side effects
Required Fields:
- id: The product swap ID to update
- shop: Your Shopify shop domain (must match authenticated shop)
Updatable Fields:
- sourceVariants: JSON string of variants to swap FROM
- destinationVariants: JSON string of variants to swap TO
- name: Descriptive name for this swap rule
- forBillingCycle: Specific cycle number when swap occurs (null for recurring)
- checkForEveryRecurringOrder: If true, applies swap to every order
- updatedFirstOrder: If true, can affect the first subscription order
- changeNextOrderDateBy: Days to adjust next order date after swap
- discountCarryForward: How to handle discounts (NONE, PERCENTAGE, FIXED_AMOUNT, PRICE)
- carryDiscountForward: Legacy boolean field (use discountCarryForward instead)
- stopSwapEmails: If true, suppresses customer notification emails
- ruleSequence: Priority order (lower number = higher priority)
Impact of Updates:
- Changes apply to future orders immediately
- Past orders and already-swapped products are not affected
- If changing forBillingCycle, recalculates which subscriptions are affected
- Variant data is automatically enriched from Shopify on update
Authentication: Requires valid X-API-Key header
PUT
Update an existing product swap automation
Documentation Index
Fetch the complete documentation index at: https://appstleinc-aeca3e0a.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Body
application/json
ProductSwapDTO payload
Available options:
NONE, EXISTING_PLAN, PRODUCT_PLAN, PRODUCT_THEN_EXISTING Response
Product swap updated successfully
Available options:
NONE, EXISTING_PLAN, PRODUCT_PLAN, PRODUCT_THEN_EXISTING