.. _ftp-tut-label:

Tutorial - Seller FTP
=====================

.. sidebar:: Reading Reference

    For a complete overview of the FTP solution, read the :ref:`ftpoverview-label` section.

This tutorial describes a scenario where a fictitious online retailer, Example.com, wants to start selling books in the Flipkart Marketplace. They are looking for a convenient solutions to exchange data between their domestic system and the Flipkart Marketplace.

Usecase: List Product and Post Stock and Price
----------------------------------------------

Example.com has an inventory management system where they maintain the inventory for multiple online sales channels such as their Website, the Flipkart Marketplace, and so on. They intend to:

* List books using ISBN
* Post stock and price using the SKU ID

They have received their credentials for the Flipkart Marketplace FTP account from their account manager, which includes the following details:

* **Username**: This is the seller ID. For this tutorial, we will be using ``ftplistingexample``
* **Password**: System generated password
* **Account Address**: The FTP account address. For this tutorial, we will be using ftplistingexample@cms.flipkart.com

They authenticate using the above credentials and set up the system scheduler to prepare the ``csv`` format bulk feed as:

+-------------+-------------+---+-------+-------------+-------------+-------------+-----+-----------+-------+------------+--------------+--------------+
|Flipkart     |Seller SKU ID|MRP|Your   |Local        |Zonal        |National     |Your |Procurement|Listing|Selling     |Procurement   |Processing    |
|Serial Number|             |   |Selling|Shipping     |Shipping     |Shipping     |Stock|SLA        |Status |Region      |Type          |Errors        |
|             |             |   |Price  |Charge       |Charge       |Charge       |Count|           |       |Restriction |              |              |
|             |             |   |       |(``per qty``)|(``per qty``)|(``per qty``)|     |           |       |            |              |              |
+=============+=============+===+=======+=============+=============+=============+=====+===========+=======+============+==============+==============+
|9780060007362|9780060007362|150|115    |40           |70           |70           |25   |5          |Active |none        |REGULAR       |Listing Status|
|             |             |   |       |             |             |             |     |           |       |            |              |is not Allowed|
|             |             |   |       |             |             |             |     |           |       |            |              |to be updated.|
+-------------+-------------+---+-------+-------------+-------------+-------------+-----+-----------+-------+------------+--------------+--------------+
 
They upload the bulk feed to the **input** folder of their FTP account.

The Flipkart scheduler picks up the input file every 1 hour from each of these accounts and releases 2 outputs, one with the passed listings and one with the failed listings, in **output** folder. The following screenshot shows an FTP browser displaying the relevant files and folders, including the **input** and **output** folders and the **input** folder contents.

.. image:: https://img1a.flixcart.com/fk-api-docs/_static/images/ftpSample.png
    :scale: 60%
    :align: center