HepsiBurada completed flow
HepsiBurada’s process flow is actually different from the standard one. This is due to the fact that HepsiBurada’s business model is set for HepsiBurada to take care of everything around the delivery. So when an order is placed HepsiBurada would be expecting the retailer to prepare that order(pick and pack) and then HepsiBurada will request the label from the shipping vendor when the retailer marks the order as packed. This is done over API using the call: Create Package. After that there is a step when the retailer can obtain the tracking number for the shipment provided by the shipping vendor. This can be done over API using the call: List Shipping information and Cresco should be looking for orders with status: InTransit
From here on a test is needed to determine which is the correct process, is it:
A in case where as soon as package has been created tracking number can be obtained:
- Order is being placed on the Marketplace
- Cresco creates a package and stores the packageID
- Cresco uses that packageID to retrieve the trackingNumber from HepsiBurada
- Cresco then creates an order in Hemisphere directly with status dispatched
OR
B in case where when package has been created the tracking number is not available:
- Order is being placed on the Marketplace
- Cresco creates a package and stores the packageID
- Cresco then creates an order in Hemisphere
- Cresco uses that packageID to retrieve the trackingNumber from HepsiBurada by querying at specific intervals for status InTransit
- Cresco updates the order in Hemisphere with status dispatched.
In both cases Cresco needs to populate not only the field that it’s currently populating in Hemisphere but additionally populate the following information:
a. “packageNumber”: "**” within field “packageNumber“
b. "trackingInfoCode": "****" within field “trackNum”
c. "trackingInfoUrl": "some URL" within field “trackingUrl”
d. “barcode”: “****” within field “barcode“
That would all mean that in Hemisphere’s Cresco API we need to additionally add access to the fields “mercado_shipping_id“ as “packageNumber” and “return_id“ as “barcode”.