The CDiscount Retailer Integration connects to the CDiscount Marketplace API to import valid orders on CDiscount unto the Order Management System (OMS) for a particular client. The API requires the client to have a active CDiscount Seller account on which items to be sold are listed and orders placed by a buyer are retrieved. The order is generated when a buyer makes a purchase and successfully completes the checkout process.
Authentication & Set Up
The integration only requires a username and password both of which need to be obtained from the Settings page in the seller's Sellershop. Please note the authentication details into the sellershop is different from the authentication details for the API.
Once the username and password are obtained, please enter this on the settings page in OMS for the client. If the client provides a Token ID, please enter this as well into the Token ID field. However if not provided the integration will generate the token ID based on the username and password.
The Last Order Pulled Date Time field also needs to be set to the date the client wants to start retrieving orders from. This only needs to be set once, the integration will update the field based on the date the last order was pulled.
Retrieving Orders
Once the integration is enabled for the client, it is then able to connect to the 'GetOrderList' method in the API and retrieve orders that are created between the date and time in the 'Last Order Pulled DateTime' field in OMS and are on the status 'WaitingForShipmentAcceptation' in the sellersshop.
For the orders to be successfully saved on OMS, there needs to be a mapping set up between the supplier and the retailer. Please see the document CPP/OMS 'Company' Hierarchy for more on how the mapping works.
Updating Shipment Information
Once the orders are dispatched in OMS, the integration updates the status on the order to 'Shipped' and also updates the status on the items in the order to 'ShippedBySeller'. The update however fails if the shipping carrier and the shipping tracking number on the order are not set.