Enterprise Retailer API
Enterprise Retailer API - Answers
- What does API stand for?
API stands for Application Programming Interface. It is a set of functions, methods, and protocols for building an application that communicates with Doba’s database. The name seems fancy, but it is simply another way to interface with Doba. It can be very valuable to retailers that know how to set up automation.
For more information, see Wikipedia’s entry on Application programming interface.
- What does the Enterprise Retailer API do or allow?
The Doba API allows you to utilize the Doba supply chain platform programmatically within your own application. The API includes functions to search or browse the Doba product catalog, obtain detailed product information, lookup shipping and handling charges, submit orders, fund orders, obtain shipment information for orders when they ship.
The following suggested flow diagrams are a wonderful resource if you are having trouble visualizing how this can be useful for your business:
Import Process - Flow Diagram
Store Checkout Process - Flow Diagram
Order Process - Flow Diagram
- What are the limits of the Enterprise Retailer API?
The Retailer API has a limit of 100 product-related API calls per minute or 144,000 calls per day. To ensure that the limit is never reached on the product-related calls, we recommend batching your API calls whenever possible. Requesting details or inventory on a single product should be an exception rather than the rule.
The Retailer API has no limit on order-related API calls.
The product_detail_total parameter refers to the limit on the number of products the retailer can receive detailed information for, obtained by using the getProductDetail API method. The product_detail_count parameter refers to the current progress approaching the limit. As soon as this number matches the limit total the retailer will receive errors upon subsequent product detail calls.
The product_inventory_total parameter refers to the limit on the number of products the retailer can receive inventory information for, obtained by using the getProductInventory API method. The product_inventory_countparameter refers to to the current progress approaching the limit. As soon as this number matches the limit total the retailer will receive errors upon subsequent product inventory calls.
The Callbacks that are listed in the Documentation as well as the “API Settings” page within Doba are no longer being sent out. We no longer support the callbacks. However, you can still get the same information via getProductDetail, getProductInventory, and getOrder methods.
- Is the ‘ship_cost’ field an estimate or a fixed amount?
The ship_cost field is often a fixed cost. However, occasionally the cost is variable. For the best supplier data, download the spreadsheet on the following link. This is a spreadsheet of supplier-related data, including insight as to how the shipping works.
- What is the difference between ‘fixed_ship_cost’ and ‘ship_cost’?
The 'fixed_ship_cost' is actually supplier-related data. It is not item data. That is being utilized to indicate if the supplier always uses a fixed ship cost or not. An example of a fixed shipping cost would be "Free Shipping" because the cost would always be $0.00, no matter if your order has 1 item or 1 million items.
The 'ship_cost' is actually the shipping cost for the product. Usually it will be fixed, but there is a
possibility that it might only be an estimate. If you consider the following request we can see the differences in the data returned:
If you change the 'ship_postal' field from 55655 to 21015 and/or 90210 you can get a feel for the
changes in shipping. It is also useful to go through the spreadsheet provided with supplier data so that you can see which specific suppliers are going to use a calculator and charge you a variable cost.
- Why is the data that I get from an export different from what I get from the API?
The exports and the API were not created at the same time and they weren’t created with the same approach. The exports are 2-dimensional text files. The API gives you, if necessary, all the possible dimensions of each product in an XML file.
The exports are, generally speaking, rows and columns of data. Not only is it generally easier to work with a flat file, it’s also a standard for most applications. Doba Exports normally give you items on each row and the related data in the different columns. The API gives you the dimensions of each product with related supplier data and the item options available. It is more efficient and allows you to do a few things at once, where the exports would require a little more work and more steps.
- Where can I find ISBNs for the books, magazines, encyclopedias, etc.?
ISBNs are set as SKUs in our system. Any items that are in fact books, magazines, encyclopedias, etc. with a SKU are actually displaying an ISBN in the SKU fields. Occasionally the supplier may also choose to use the attributes or details fields to display “ISBN” with the associated ISBN number.
- Why is the XML data from the export different from the XML data returned from the API?
The XML data in the export is actually built off of the csv file. The headers of the “Product Comma Delimited” format are being converted into tags (<supplier_id>, <dropship_fee>, etc.) and the data is being populated into each tag as items in their own nodes.
The XML data returned from the API is being populated directly from our database. The nodes are created properly based on the dimensions of the data (product-related data, item-related data, supplier-related data).
As the approaches to the builds are distinct, the data displays in a different way. However, you will notice that the XML data provided in the export is all included in the XML data returned from the API. You simply get more data from the API.
The XML export version used in this comparison is “Product XML”. You can find it in the Data Export Tool:
The API method to get the comparable XML data is called ‘getProductDetail’.
- Is there a way to inquire about a shipping fee of an order without using the ‘createOrder’ method in the API?
The ‘orderLookup’ method is actually for this exact purpose. You can get the fully priced out amount it will be for the order before actually creating an order. The ‘orderLookup’ method retrieves the fully-loaded, checkout totals for the specified item_id's and respective quantities. This method should be used to determine the total cost of all items so that it can be shown to the end-customer before the order is submitted, ideally within the checkout process.
- How does the API handle RMAs?
The RMA process is not currently available via an API method. If you need to submit an RMA request for an order, you are required to log into your account on enterprise.doba.com, click on the orders page, select the order in question, and request the RMA with all applicable details.
Did you find this article helpful?