get http://staging-apigateway.snapdeal.com/seller-api/categories
Get parent categories for given search key .if search key is not provided it will give all perent categories
Note :
Default pageNumber = 1
Default pageSize = 10
Request
| ParameterName | DataType | ParameterType | Requirement | Description |
|---|---|---|---|---|
| searchKey | String | Query | Mandatory | Text input for searching list of primary categories |
| pageNumber | int | Query | Optional | pageNumber used for pagination |
| pageSize | int | Query | Optional | pageSize used for pagination |
Response
metadata :
| FieldName | DataType | Description |
|---|---|---|
| requestId | String | Unique ID for the request |
| clientId | String | PartnerI Id |
| responseTime | Long | Response Time |
| requestedURI | String | Requested URI |
| message | String | Error message |
payload :
| FieldName | DataType | Description |
|---|---|---|
| results | List | List of CategoryDTOs |
| pageNumber | int | pageNumber |
| pageSize | int | pageSize |
CategoryDTO :
| FieldName | DataType | Description |
|---|---|---|
| id | Integer | Category Id |
| name | String | Category Name |
| productType | boolean | value false means category contains child categories. |
| categoryUrl | String | categoryUrl |
| parentCategory | CategoryDTO | parentCategory |
