PayNow

UpsertProductUpsellConfigurationDto

enabledbooleanOptional
recommendationsUpsertProductUpsellRecommendationDto[]Optional
discount_amountintegerRequired
discount_typeenumRequired
Possible enum values
  • unknown
  • none
  • fixed
  • percentage
prefer_as_subscriptionbooleanRequired
recommended_product_idFlakeIdRequired
typeenumRequired
Possible enum values
  • unknown

    Unknown upsell type.

  • additional

    An additional product offered alongside the current item.

  • alternative

    An alternative product offered in place of the current item.

  • increase_quantity

    An offer to increase the quantity of the current item.

minimum_base_product_quantityintegerOptional
minimum_recommended_product_quantityintegerOptional
quantity_to_addintegerOptional
Example
{
  "enabled": true,
  "recommendations": [
    {
      "discount_amount": 0,
      "discount_type": "unknown",
      "prefer_as_subscription": true,
      "recommended_product_id": "411486491630370816",
      "type": "unknown",
      "minimum_base_product_quantity": 0,
      "minimum_recommended_product_quantity": 0,
      "quantity_to_add": 0
    }
  ]
}