Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2023
    Location
    Lahore
    Posts
    3
    Plugin Contributions
    0

    help question How to create REST API in Zencart Plugin?

    I am developing Zen Cart Plugin and need to create the REST API that will be used in another third-party system. Please guide me.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,302
    Plugin Contributions
    87

    Default Re: How to create REST API in Zencart Plugin?

    You could use the USP OAuth/RESTful (https://www.zen-cart.com/downloads.php?do=file&id=2374) shipping module as a guide.

  3. #3
    Join Date
    Aug 2023
    Location
    Lahore
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to create REST API in Zencart Plugin?

    I don't think, it is helpful for me as a guide. The "UPS OAuth/RESTful " plugin implements the REST APIs. But I want to create my own API in zencart plugin under zc_plugins directory that will be implemented in another third-party website to export the orders from zencart to another system (third-party). I have developed a zencart plugin in zc_plugins directory. But I am unable to create an API endpoint (Such as: https.example.com/api/orders) that can be called through CURL. Please help in this regard.

  4. #4
    Join Date
    Aug 2023
    Location
    Lahore
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to create API Endpoint in Zencart Plugin in zc_plugins directory?

    I have developed a zencart plugin in zc_plugins directory. But I am unable to create an API endpoint (Such as: https.example.com/api/orders) that can be called through CURL. This endpoint will retrieve all the orders from the zencart database and return them to the third-party website.

    Please help in this regard.

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,567
    Plugin Contributions
    122

    Default Re: How to create API Endpoint in Zencart Plugin in zc_plugins directory?

    You might want to do a web search on "building a RESTful PHP API" - when I did that, this article came back, as well as others:

    https://developer.okta.com/blog/2019...e-rest-api-php
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. v158 FedEx Shipping using REST API
    By swguy in forum Addon Shipping Modules
    Replies: 49
    Last Post: 9 Feb 2024, 04:53 PM
  2. v156 How do I create a custom payment plugin?
    By mattgriffin1995 in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2019, 06:52 PM
  3. v155 Looking for info on how to create a plugin
    By adb34 in forum General Questions
    Replies: 3
    Last Post: 17 May 2016, 03:13 PM
  4. Rest api?
    By skywalker826 in forum General Questions
    Replies: 4
    Last Post: 31 Aug 2013, 04:30 PM
  5. Just installed Zencart, how do I make it look like the rest of my website?
    By fkacct in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Aug 2007, 07:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR