Transfer signups from one variant to another

Transfer signups from one variant to another

post

Transfer intents (signups) from a source variant to a target variant. This is useful when consolidating variants or when products are restructured. By default transfers pending intents, but can transfer sent or all intents based on intent_type parameter.

Authorizations
Body
from_shopify_variant_idintegerRequired

Shopify variant ID to transfer signups from

from_shopify_product_idintegerRequired

Shopify product ID of the source variant

to_shopify_variant_idintegerRequired

Shopify variant ID to transfer signups to

to_shopify_product_idintegerRequired

Shopify product ID of the target variant

intent_typestring · enumOptional

Type of intents to transfer (default is unsent/pending)

Possible values:
Responses
200

Transfer completed successfully

No content

post
POST /api/v1/external/intents/transfer_signups HTTP/1.1
Host: app.stoqapp.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 141

{
  "from_shopify_variant_id": 123456789,
  "from_shopify_product_id": 555666777,
  "to_shopify_variant_id": 987654321,
  "to_shopify_product_id": 111222333
}

No content

Last updated