Syntax

getUpgrades( $upgrade_id, $order_ids=“ 

Returns an upgrade. If desired, also checks if an upgrade is possible.

Access rights

Read access required.

Parameter

uprade_id – the numeric ID of the upgrade order_ids (optional) – List of a user’s order IDs separated by commas. If specified, Digistore will check if the user can upgrade.

Return data

[data] => Array
(
    [item] => Array
    (
        [upgrade_url] => https://www.digistore24.com/upgrade/7922-cvozqomKi2Ng/3ASFBC,3DWPMZHM
        [to_product_name] => Even More Instant Happiness
        [id] => 7922
        [name] => Some upgrade
        [to_product_id] => 7209
        [is_active] => Y
        [authkey] => cVozQomKJ2Ng
        [fallback_product_id] => 7213
        [buyer_readonly_keys] => none
        [upgrade_types] => Array
            (
                [20] => upgrade
                [373] => upgrade
            )

    )

    [check] => Array
        (
            [is_upgrade_possible] => Y
            [is_one_click_payment_possible] => N
            [possible_upgrade_type] => upgrade
        )

    )
 )