locked
Update Shopify Inventory From Asp.net RRS feed

  • Question

  • User-807418713 posted
    Hello

    Im a new to shopify we have upload one product in shopify with 10 quantity now in asp.net page user select product he will enter sale quantity how to update new quantity to online shopify

    Please guide me step by step complete details

    Thanks
    Thursday, January 24, 2019 4:59 AM

Answers

  • User-1174608757 posted

    Hi Gopi.MCA

    I suggest you to use ShopifySharp Library. You can use the Nuget package and install it in your project.

    For edit the account of shopify ,you should first get the StorefrontAccessToken  by signing up the account. Then you should send  the request  with token and  Shpfiyurl  in your application as:

    var service = new ProductService(myShopifyUrl, shopAccessToken);

    Then  you should use the Shopify API, The Shopify billing API lets you create a recurring charge on a shop owner's account. You could create acccount ,edit message and so on,such as below.

    var service = new RecurringChargeService(myShopifyUrl, shopAccessToken);
    var charge = new RecurringCharge()
    {
        Name = "Lorem Ipsum Plan",
        Price = 12.34,
        Test = true, //Marks this charge as a test, meaning it won't charge the shop owner.
        TrialDays = 21
    }
    
    charge = await service.CreateAsync(charge);

    Here is the link ,I hope it could help you.

    https://github.com/nozzlegear/ShopifySharp

    Best Regards

    Wei Zhang

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 25, 2019 7:21 AM

All replies

  • User-2054057000 posted

    To update your shopify account with ASP.NET you have to implement there API and OAUTH. 

    You can look into this document - Shopify OAuth

    Thursday, January 24, 2019 8:42 PM
  • User-807418713 posted
    Hello yogyogi

    Can you make one sample example fot easy understanding it would be very needful.

    Thank You
    Friday, January 25, 2019 1:11 AM
  • User-1174608757 posted

    Hi Gopi.MCA

    I suggest you to use ShopifySharp Library. You can use the Nuget package and install it in your project.

    For edit the account of shopify ,you should first get the StorefrontAccessToken  by signing up the account. Then you should send  the request  with token and  Shpfiyurl  in your application as:

    var service = new ProductService(myShopifyUrl, shopAccessToken);

    Then  you should use the Shopify API, The Shopify billing API lets you create a recurring charge on a shop owner's account. You could create acccount ,edit message and so on,such as below.

    var service = new RecurringChargeService(myShopifyUrl, shopAccessToken);
    var charge = new RecurringCharge()
    {
        Name = "Lorem Ipsum Plan",
        Price = 12.34,
        Test = true, //Marks this charge as a test, meaning it won't charge the shop owner.
        TrialDays = 21
    }
    
    charge = await service.CreateAsync(charge);

    Here is the link ,I hope it could help you.

    https://github.com/nozzlegear/ShopifySharp

    Best Regards

    Wei Zhang

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, January 25, 2019 7:21 AM
  • User-807418713 posted

    Hello

    I want to update quantity to shopify admin via asp.net 2.0 C# based on SKU 

    How to do so please give me code 

    Thanks

    Monday, January 28, 2019 9:05 AM
  • User-1174608757 posted

    Hi Gopo.MCA,

    I suggest you to  post a new thread for your new question, I will try my best to solve your problem.

    Best Regards

    Wei Zhang

    Wednesday, January 30, 2019 1:16 AM