Skip to main content
PUT
/
api
/
external
/
v2
/
product-swaps
Update an existing product swap automation
curl --request PUT \
  --url https://subscription-admin.appstle.com/api/external/v2/product-swaps \
  --header 'Content-Type: application/json' \
  --data '
{
  "shop": "example-shop"
}
'
{
  "id": 10782,
  "shop": "example-shop",
  "sourceVariants": "[{\"id\":12345,\"displayName\":\"test-product\",\"imageSrc\":\"https://test.com/image.png\",\"quantity\":2}]",
  "destinationVariants": "[{\"id\":67890,\"displayName\":\"test-product\",\"imageSrc\":\"https://test.com/image.png\",\"quantity\":2}]",
  "updatedFirstOrder": false,
  "checkForEveryRecurringOrder": false,
  "name": "swap test",
  "changeNextOrderDateBy": null,
  "forBillingCycle": 2,
  "carryDiscountForward": false,
  "ruleSequence": 0,
  "stopSwapEmails": false,
  "discountCarryForward": "NONE"
}

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

X-API-Key
string

Body

application/json

ProductSwapDTO payload

shop
string
required
id
integer<int64>
sourceVariants
string
destinationVariants
string
updatedFirstOrder
boolean
checkForEveryRecurringOrder
boolean
name
string
changeNextOrderDateBy
integer<int32>
forBillingCycle
integer<int32>
carryDiscountForward
boolean
ruleSequence
integer<int32>
stopSwapEmails
boolean
discountCarryForward
enum<string>
Available options:
NONE,
EXISTING_PLAN,
PRODUCT_PLAN,
PRODUCT_THEN_EXISTING

Response

Product swap updated successfully

shop
string
required
id
integer<int64>
sourceVariants
string
destinationVariants
string
updatedFirstOrder
boolean
checkForEveryRecurringOrder
boolean
name
string
changeNextOrderDateBy
integer<int32>
forBillingCycle
integer<int32>
carryDiscountForward
boolean
ruleSequence
integer<int32>
stopSwapEmails
boolean
discountCarryForward
enum<string>
Available options:
NONE,
EXISTING_PLAN,
PRODUCT_PLAN,
PRODUCT_THEN_EXISTING