• Resolved faisal95bd

    (@faisal95bd)


    Hi, for my woocommerce store some months ago a freelancer has created a cross-platform mobile app. It was working fine.

    But some weeks ago the rest API from my woocommerce advanced settings is accidentally deleted. I don’t have the previous backup of my site.
    But I’ve the backup of those Consumer key & Consumer secret of the old rest API. How can I add those same keys again in wocommerce?

    (I need to add the same keys because those are integrated into the app. I don’t have the access to edit the app neither the freelancer is available now.)

    • This topic was modified 3 years, 6 months ago by faisal95bd.
    • This topic was modified 3 years, 6 months ago by faisal95bd.
    • This topic was modified 3 years, 6 months ago by faisal95bd.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @faisal95bd,

    With regards to the REST API keys generated by WooCommerce if existing keys have been deleted you would need to generate a new set of keys and then have those keys added to the APP which the freelancer created for you. Regrettably, there is no way to add deleted API Keys back into WooCommerce as those are uniquely generated by WooCommerce.

    Really the only way to restore those keys would be from a site backup. If you don’t personally have a backup of your site I’d suggest contacting your hosting company. Most hosting companies should have a server backup that they could possibly use to restore a site.

    For reference, any generated API keys would be stored within the database table called wp_woocommerce_api_keys which the WooCommerce plugin creates.

    Thread Starter faisal95bd

    (@faisal95bd)

    Yeah,

    thats what i have been trying since yesterday.
    In the wp_woocommerce_api_keys table the consumer_key values are encrypeted. which encryption is used there?
    Cann’t I just put my old consumer_key value there?

    • This reply was modified 3 years, 6 months ago by faisal95bd.
    • This reply was modified 3 years, 6 months ago by faisal95bd.
    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @faisal95bd,

    It wouldn’t be possible to simply place API Keys into the database with this way those are generated.

    The two approaches I would suggest are…

    • Contact your hosting company to see if they could restore the site from a server backup they may have from before the keys were deleted
    • Create and API Keys and add those newly generated keys to your app which uses those

    Either of these two approaches should get you back up and running again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add custom Consumer key & Consumer secret in the rest api’ is closed to new replies.