Get Inventory Info for Single Product

Overview

In order to retrieve metadata of an existing inventory, you must:

  • Be authenticated user

Information on how you can authenticate: Authentication

As soon as you do authentication and receive a valid token, it needs to be passed on the call for receiving a single inventory.

  • Have valid ID of an existing inventory

Endpoint

NOTE: Endpoint "GET /api/Inventory/{id}" is obsolete as it does not support special characters in the productID. Use the new endpoint presented in this article.

Example for such endpoint is https://tt.api.sellercloud.com/rest/api/Inventory/Details

Request

  • Method Type: HttpGet
  • Authorization: Use Bearer Token + token received from token authentication
  • Header info: Content-Type: application/json
  • Parameters:

Parameter

Data Type

Description

Is Required

productID

string

ID of existing Product

true

Response

  • If user is authenticated and provides a valid ID of an inventory, then response will be Status Code 200 => OK and inventory metadata in JSON format
  • If user is not authenticated, then response will be Status Code 401 => Not Valid Token
  • On server response => Status Code 500 => Internal Server Error

Attachments


How did we do?