v1
latestOpenAPI 3.1.02026-07-241120379.1 KBRead variants by product Shopify ID
This endpoint allows you to retrieve all variants for a Shopify product using its product ID.
get/2023-10/subscription/{subscriptionId}/upsell/product/{productShopifyId}
Path parameters
subscriptionIdinteger required
The unique identifier for a subscription in Loop.
productShopifyIdinteger required
The unique identifier for a product in Shopify.
Response
200
Example response
{
"success": true,
"message": "Fetched upsell variants successfully",
"data": [
{
"id": 3632,
"variantShopifyId": 45306180829493,
"productShopifyId": 8353507115317,
"upsellType": "BOTH",
"onetime": {
"discountedPrice": 50
},
"subscription": {
"discountedPrice": 40
},
"price": "50.00"
}
],
"code": "SUCCESS"
}