Tutorial - Inventory Management

Usecase: Example.com is an online retailer who wants to start selling on Flipkart Marketplace. They already have an inventory management system in place to maintain multiple online sales channels. They will be using the Listing Management REST APIs to get and post stocks using their SKU IDs.

To get started, send an e-mail to sellerapi-dev-support@flipkart.com to request access to the Flipkart Marketpalce sandbox and production environments. Ensure that you provide your seller ID. For more details, read the Application Registration section.

Now, use the REST APIs to read the stock count as described in the following examples.

Sample: GET Stock

Request: https://api.flipkart.net/sellers/skus/SKUID/listings

Response:

{
    "listingId": "LISTINGID",
    "skuId": "SKUID",
    "attributeValues": {
        "listing_status": "ACTIVE",
        "procurement_sla": "1",
        "zonal_shipping_charge": "10",
        "national_shipping_charge": "10",
        "selling_price": "80",
        "mrp": "100",
        "stock_count": "1",
        "local_shipping_charge": "10"
    }
}

Sample POST Stock

Request: https://api.flipkart.net/sellers/skus/listings/LISTINGID

Request Body:

{
    "listingId" : "LISTINGID",
    "skuId" : "SKUID",
    "attributeValues" : {
        "mrp": "90",
        "stock_count" : "10",
        "procurement_type": "REGULAR"
    }
}

Response:

{
    "status": "success"
}

Sample GET Stock Verification

Request: https://api.flipkart.net/sellers/skus/SKUID/listings

Response:

{
    "listingId": "LISTINGID",
    "skuId": "SKUID",
    "attributeValues": {
        "listing_status": "ACTIVE",
        "procurement_sla": "1",
        "zonal_shipping_charge": "10",
        "national_shipping_charge": "10",
        "selling_price": "80",
        "mrp": "90",
        "stock_count": "10",
        "local_shipping_charge": "10"
    }
}