Get Products Count

This REST API is used to get the count of the published (live) products listings on marketplace. This request generally runs after each authentication request to check if the markteplace has some live (PUBLISHED) listings. In case their are no published listings, no further api requests are sent.


It is recommended to check out Notes for the reader. You might find this helpful as it contains Guidelines for using API references and Terminologies used here.


Catalog Flow


Complete integration flow is available on Basic Overview page.

Basic Information

Usage: Mandatory
Endpoint: /productsCount
Request Type: GET
Scheme: HTTPS
Content-Type: application/json
Header (apiKey): accessToken (got from Get Authentication)

Sample URL


Query Parameters

publishedStatus string Posting Status Yes Allowable(Fixed): PUBLISHED

Response Payload

"count": 20

Response Payload (Error)


Response Payload Details

count Number Total number of unique PUBLISHED listings, All “variantId” counts Yes -
message string Error message Eg: Invalid User/Token - -

Error Codes

Refer Response Codes section to know about specific errors codes.


Q1. We(MP) don’t have the concept of PUBLISHED or UNPUBLISHED products, rather, we have LIVE and NON-LIVE for our products. How will it work in UC?
Ans. Even if you have different statuses defined, it can still work in UC as you can do the mapping with PUBLISHED at your end.

Q2. This API is used to get the count of the published and unpublished products on MP but its base URL has one of the parameters passed as “published”. Is it a discrepancy??
Ans. No. The status in params will used only PUBLISHED listings and results can be seen accordingly.

Q3. For a one seller, We(MP) have 10 unique products with multiple variants, How this API used to get the count of the published products?
Ans. Here for such seller, MP must pass the count as total number of all varaiants “variantId” for seller llsitng.

Q4. If MP doesn’t have any variant id and only has product id and respactive SKU code then how is it handled in UC? Ans. As these three fields (id,variantId,sku) are mandatory in UC so MP can simply pass the same product id at variant id value too.
“id”: “ProductId1”,

Unicommerce Website

Copyright © 2024 Unicommerce eSolutions Pvt. Ltd.