Overview
Endpoint that is presented in this article is used for getting list of product types.
In order to consume the endpoint you must:
- Be authenticated user
For information on how you can authenticate, see: Authentication
As soon as you do authentication and receive a valid token, it needs to be passed to the call.
Endpoint
Example for such endpoint for TT server is: https://tt.api.sellercloud.com/rest/api/Catalog/ProductTypes
For your server endpoint will be:
https://{your_server_id}.api.sellercloud.com/rest/api/Catalog/ProductTypes
Request
Method Type: HttpGet
Authorization: Use Bearer Token + token received from token authentication
Header info: Content-Type: application/json
Parameter | Data Type | Description |
productTypeIds | Array(integer) | List of integers used for filtering on product type ids |
typeNames | Array(string) | List of product type names used for filtering on product type name |
pageNumber | integer | Page Number |
pageSize | integer | Number of records per page |
Response
- If user is authenticated and the request is successful, then response will be Status Code 200 => OK and list of product types will be returned along with the TotalResults property
- If user is not authenticated, then response will be Status Code 401 => Not Valid Token
- In case of error, response will be Status Code 500 => Internal Server Error
{ "Items": [ { "CompanyID": 0, "CompanyName": "string", "IsDefault": true, "ProductTypeName": "string", "BuyDotComCategoryID": "string", "NewEggCategory": "string", "PriceLevel": 0, "ID": 0 } ], "TotalResults": 0 }