API Understanding. We have some queries regarding Shoppin...

15/01/2023 02:13 PM

API Understanding. We have some queries regarding Shopping Cart and other related API. We would appreciate it if you could provide an explanation.

1) Get Categories 
API # : 8011 | API Name : lookup
URL :/apic/lookup
Parameters
lookupid Lookup ID. Please refer to the list on the left side.
branchid Branch ID.
A. Please provide us details about what data we need to pass for Branch ID?
 
2) Product List 
API # : 8003 | API Name : pricelist
This API gets filtered, sort and ordered records under a specific Price list.
URL :/apic/pricelist
Request Body : JSON Payload
{
    "search": "server",
    "ep2": 50
}
A.  Can you please confirm that are we going to get all the products from the category or response will be with pagination ?
B. If response will be with pagination then how we need to pass data for pagination?
 
 
3) Product Details 
API # : 8003 | API Name : pricelist
This API gets filtered, sort and ordered records under a specific Price list.
URL :/apic/pricelist
Request Body : JSON Payload
{
    "search": "server",
    "ep1": 50
}
A. Please provide list of data that we are going to get from this API. 
B. Do we have Attributes for the products like Size or Different vendors?
C. If Product will have data from Different attributes then are we going to get that data with same API ? Or we have separate API or Separate Parameters to pass?
 
 
4) Create Cart 
API # : 8013 | API Name : createcart
Create order entry from e-Commerce Shopping Cart into Tuhund. You can integrate your shopping cart with Tuhund backend will all business logic and database running in Tuhund.
URL :/apic/createcart
A. Do we need to manage cart on our side first and on the time of making order we need to call this API or every time when customer do add to cart for product we need to call this API ?
 
5) Add Product to Shopping Cart
API # : 8014 | API Name : addcartitem
Add product to an existing order in e-Commerce Shopping Cart in Tuhund.
URL :/apic/addcartitem
Payload 
{
  "orderid": "1625248014369",
  "productid": "P1322665666",
  "price": 300.0,
  "quantity": 5,
  "discount": 10
}
A. As per the API we need to pass the Orderid to the payload, But As per order id API do we need to create order everytime or once for one customer ?
B. User Login is mandatory to add product to cart?
 
6) Get Shopping Cart
API # : 8015 | API Name : cartorder
Get details of an existing order in e-Commerce Shopping Cart in Tuhund.
URL :/apic/cartorder
A. Everytime when customer open Cart list do we need to get data from this API ?
B. How we can get order id for the customer to get cart list for the next time when customer come after few days ?
 
 
7) Customer Login 
API # : 8017 | API Name : customerlogin
Verify customer login credentials and get account data.
URL :/apic/customerlogin
A. Customer login is Mandatory for Creating Cart or Order?
 
Riya Sood
17/01/2023 10:14 AM

1.A : Please provide us details what data we need to pass for Branch ID ?
Branch ID will come from the Customer, depending upon which branch they decide. For the development environment please use ENTERPRISE. Once the system is ready for integration, you can check with the customer and change it to the correct value, for production, accordingly.

2.A : Can you please confirm that are we going to get all the products from the category or response will be with pagination ?
It is up to you. You can get all the data at once or you can get the data paginated. If pp and page are not present in the request, all the data will be returned at once.

2.B : If response will be with pagination then how we need to pass data for pagination.
For pagination you need four parameters :
1. pp – Number of items per page (Mandatory)
2. page – Number of page. (Mandatory)
3. srt – Sort By (Optional)
4. order – ASC or DESC (Optional)
Sample Request
{
  "pp": "25",
  "itemid": "Wi7VEB",
  "branchid": "ENTERPRISE",
  "sort": "PRODUCTNUMBER",
  "page": "2",
  "order": "DESC"
}
The above payload will fetch 25 items per page from page number 2. That means, after sorting, the server will return item numbers 26 to 50.

3.A : Please provide list of data that we are going to get from this API. 
You will get all the data pertaining to the product and price, along with the images. Product ID, Product Name, Product Number, Model, Part Number, Machine, Description, Unit, Category, Brand, Unit Price, Currency, Discount, tax Rate, Origin, HS Code, and so on. Whatever data has been added by the customer on the product level and price list level will come.

3.B : Do we have Attributes for the products like Size or Different vendors?
Yes, size, weight, package dimensions, gross weight and color, etc. Whatever data is available for the given product, will come.
No this API is not for that. This is just like Amazon. When you search/browse for products on Amazon, it shows you a price. (Actual, Discount and Discounted). When you click and go inside a particular product, then it shows you other offers. The criteria for selecting the product/vendor for the main list might not always be the lowest price.

3.C : If Porduct will have data from Different attributes then are we going to get that data with same API ? Or we have separate API or Separate Parameters to pass.
You will get all data with the same API. Attributes differ on a product category level. You can use a different API to get the attributes for each category. Please start your sandbox integration, when you reach such a situation, we will assist you on case to case basis. We will need to show you only once or twice and you should be good to go from there on.

4.A : Do we need to manage cart on our side first and on the time of making order we need to call this API or everytime when customer do add to cart for product we need to call this API ?
Both options are available and you can even mix the two. That means, suppose you push order information with n items in the first go, you can keep on adding items as long as you need. n can be zero. Tuhund cart is persistent. You can keep your side volatile if you think that is good. In case you are using a third-party server to host your website and/or if you are using scripting technologies like PHP, we would recommend you keep minimal data on your side. Let Tuhund handle the data. 

5.A : As per the API we need to pass the Orderid to the payload, But As per order id API do we need to create order everytime or once for one customer?
An order is "an" order. Once you create an order, you can keep adding items to the same order till it has not been submitted. When you add an item to an order, you will obviously need to pass the ID of that order. A single customer can have multiple orders in carts. This logic is not very popular and you can ignore it for now. This logic is particularly helpful for indirect vendors (Shops and showrooms that keep limited or no stock and order "just in time" as and when required on order to order basis). Suppose you are a shopkeeper (Customer for the portal) and there are two customers at your shop who are selecting products in parallel. You can create two orders and keep shuffling between the two. When customer A selects a product, you can go to the order created for him and add the product. Similarly for customer B.
Therefore, it will entirely depend on your design. If you want to provide these features to your customer, please go ahead. The choice should depend upon the type of customers you are targeting.

5.B : User Login is mandatory to add product to cart?
Creating a user account is mandatory. You do not have to disclose to the user that his account has been created in Tuhund (in addition to your portal). Tuhund running at the back will be hidden from the end user of your shopping portal. For B2C customers, you can choose to give them direct access to Tuhund customer portal as it offers more functionality.

6.A : Everytime when customer open Cart list do we need to get data from this API?
If you do not store/save data on your side, then yes, you will have to. You will have to work on your own design. You can either save the data on your side or fetch the data based on the sessions or fetch all data in real-time. Tuhund does not bind you to any particular design. Basically, you are making a tradeoff between performance and security. 

6.B : How we can get order id for the customer to get cart list for the next time when customer come after few days ?
Please refer to the documentation of the following API
API # : 8018 | API Name : cartorderlist
Get a filtered and sorted list of orders placed through a shopping cart.
URL : /apic/cartorderlist
https://www.tuhund.com/apidocs/cartorderlist-list-of-orders-in-shopping-cart
{
  "itemid": "ID of the Customer"
}


7.A : Customer login is Mandatory for Creating Cart or Order?
Company ID is mandatory. Customer Login is not required at the time of pushing the order.
 "required": [
    "typeid",
    "branchid",
    "companyid",
    "billingaddress",
    "shipmentterms",
    "paymentstatus",
    "payment",
    "paymentmode",
    "items",
    "grosstotal",
    "nettotal"
  ]
Items can be an empty JSON Array. 

 

User Community Home

ERP Interest Groups

Topics : 22|Last Topic : 22/10/2023 10:54 AM
Questions and queries about Accounting a Finance module. Working with cost centers. General Ledger, Accounts receivable, Accounts payable, financial statements, expense claims management, commission payables and receivable claims, Forex, Currency, Assets, Depreciation, Taxes and TDS, etc.
Topics : 17|Last Topic : 17/12/2024 09:06 AM
Information about Tuhund. Tuhund has moved far beyond and is much larger for just being called an ERP.
Topics : 5|Last Topic : 15/01/2023 02:13 PM
Point of sales software, Andriod and IOS applications and other software linked with Tuhund. API for connecting with Tuhund and building applications on top of Tuhund backbone.
Topics : 1|Last Topic : 10/10/2019 09:36 AM
Discussions on ERP in general and comparison of various ERP, their features, working, issues and workarounds
Topics : 5|Last Topic : 25/05/2021 07:24 PM
Questions and queries about Human Resource Management Module
Topics : 18|Last Topic : 09/08/2024 07:06 PM
Questions and queries about Inventory and Procurement Modules. Products and product categorization. Vendors Price Lists, Quotations & Invoices, Requests For Purchase, Requests for Quotes, Purchase Orders, Purchase Invoices, Tenders, Store Management, Locations, Stock. Inventory reports, margin analysis, ageing analysis.
Topics : 2|Last Topic : 26/12/2018 01:46 PM
Questions related to GST, GSTR1, GSTR3B. Issues and problems faced in GST Portal.
Topics : 2|Last Topic : 29/12/2018 11:34 PM
Knowledge sharing, support and help with Project Management Module; Project Schedule Management, Project Scope Management, Project Resource Management, Material Management, Expense Management, Deliverable, Billing and Invoicing.
Topics : 22|Last Topic : 24/09/2024 06:49 PM
All about Sales and Customer Relationship Module. Tasks, reminders and events. Inquiries, opportunities and business leads. Different types of sales targets and key performance indicators.
Topics : 2|Last Topic : 04/09/2020 11:19 PM
We welcome suggestions from our customers, third party users as well as from general public. Our aim is continual improvement of Tuhund. We are not going to stop or slow down development of Tuhund. Please let us know what you are looking for in Tuhund and we will make sure it is added.
Topics : 1|Last Topic : 02/09/2020 11:19 PM
Forum for Tuhund Channel Sales and Implementation Partners to seek clarifications and to exchange knowledge and ideas among themselves and with others.
Topics : 3|Last Topic : 29/11/2024 03:17 PM
In today's competitive manufacturing landscape, efficiency and optimization are key to staying ahead. This thread is dedicated to exploring the strategies and workflows that drive seamless production processes using Tuhund. From automating workflows to improving resource planning, we’ll discuss how manufacturers can enhance productivity, reduce downtime, and ensure the highest levels of quality control.
Topics : 6|Last Topic : 20/03/2022 02:00 PM
Tuhund is a continual development system with a minor release every few days and a major release every couple of weeks. This section aims to keep Tuhund users informed about the developments.
Topics : 7|Last Topic : 25/07/2023 08:05 AM

Keywords

#access #accounting #accounts #activity #adapter #admin #advance #ageing #agent #aging #amount #analysis #android #api #app #application #approval #assets #attachment #attendance #automatic #backup #balance #balancesheet #bank account #bank #bar code #barcode #bi #billing address #boe #bonded #bounce #branch #browser #business development #business intelligence #calculation #campaign #cart #cash #categories #change #charts #chat #cheque #claims #clearing #comments #commission #companies #company #compliance #configure #consolidation #consumption pattern #contractor #control #conversation #conveyance #coordinates #cost #costcenter #courier #credit note #credit #crm #csv #currency #custom duty #customer #customers #customization #customized #dashboard #data import #data #database #date #default #delivery charges #delivery #deployment #depreciation #discount #discussion #disk #document #documentation #documents #download #drill down #drive #duplicate #e-commerce #e-invoicing #elevate #email address #email client #email message #email #employee #entries #epf #escalation #evidence #excel #exchange #expense #expiry #export #failure #filter #filters #finance #financial year #forwarding #function #group #gst rate #gst returns #gst #hsn #image #import #indent order #indent sale #information #inquiries #insert #install #instructions #integration #inventory #invoice #job order #job work #journal #kilometer #language #leads #ledger balance #ledger #license #life #limit #link #live #loading #location #locking #login #logout #logs #macbook #machine #management #manufacturer #maps #margin #marketing #mass mail #master #material #migration #mobile #module #newsletter #notification #number #odometer #online #opening balance #order #outbox #overtime #packing list #partner #payable #payment #payroll #pdf #performance #perishable #petty cash #picture #pnl #point of sales #policy #portal #pos #prefix #price list #price #printer #printing #process #procurement #product #production #products #profit #proforma invoice #project #promotional #purchase invoice #purchase order #purchase #qr code #quantity #quotation #rate #reading #receivable #recipient #reconciliation #register #report #repository #request #requirement #requisition #resource #retail #return #revenue #revision #rfq #rules #saas #sac #salary #sales return #sales #salesmen #sample #schedule #scope #search #section #selection #sensitive #sensors #server #service #services #setting #settings #share #shipping address #sku id #sku #sms #software #space #statement #sticker #stock #storage #stuck #subledger #support #synchronize #system #target #tasks #tax invoice #tax liability #tax #tcs #tds #template #thermal #topics #tracking #transaction #upload #url #user #value #vat #vendor #vouchers #warehouse #warranty #wbs #website #whatsapp #widget #worker #zones
Tuhund Logo
TUHUND®
Home About us Modules CRM HR SALES BI SERVICES MANAGEMENT INVENTORY MANAGEMENT ACCOUNTING AND FINANCE PROCUREMENT PROJECT MANAGEMENT ERP ADMINISTRATION DATA REPOSITORY API & SUB PORTALS Careers Community Blog
M Home Schedule Demo About us Community Blog
CRM HR SALES BI SERVICES MANAGEMENT INVENTORY MANAGEMENT ACCOUNTING AND FINANCE PROCUREMENT PROJECT MANAGEMENT ERP ADMINISTRATION DATA REPOSITORY API & SUB PORTALS Careers
API Documents
Request Demo