Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this documentation, you will find instructions on how to add Second Hand to your website, as well as code examples to help you get started.

SearchEngine

To perform a search exclusively on our second-hand catalog, you are required to explicitly add the DBS catalog number to your "searchEngine" query using the following syntax: "(AND DBS:00000)". This will limit the results of your search to second-hand items only.

Conversely, if you prefer to exclude our second-hand catalog from your search, you can do so using the following syntax: "(AND NOT DBS:00000)". This will exclude the search results related to second-hand items.

It is important to note that the DBS catalog number must be replaced by the corresponding number provided in our second-hand catalog.

Select

AddtoCart

The Web Service for adding an item to the shopping cart remains the same, except that a "secondHandFictif" field has been added. This field will take as value the EAN of Medialog. To find this EAN, there are two possibilities: either by using the following Web Service “infoSecondHand” with the "eanf" field, or by using the "dbpGroup" of the SearchEngine response.

Cart lines - Add Product

Update | Remove

make sure you have added the dbp parameter in the update and remove see this link

https://titelive.atlassian.net/wiki/spaces/MW/pages/3348660240/Cart+lines+-+Add+Product#Update-product

infoSecondHand

The Web Service provided at this URL allows you to check the real-time stock in the bookstore to verify the availability of a second-hand product. It is recommended to use it in verification of the SearchEngine search, as the data provided by the latter is only generated every 24 hours. By using this Web Service, you can ensure that stock information is accurate and up-to-date. An ordered item is removed when it is processed in the ERP (Medialog)

...