Core APIs
...
Parameters
Stock

Store Stock

4min

Store Stock Parameters

GET /request

The Store Stock Parameters are applicable when making a request with type=store_stock to retrieve in-store stock information of a single product on Target - the product is specified using either the tcin dpci or url parameter (where the url parameter contains a link to an Target product page). The parameters should be appended as querystring parameters to the Target Product Data API GET HTTP request.

The location to perform the search is specified using the store_stock_zipcode parameter. Up to 20 stores within a 50 mile radius of the specified zipcode will be returned.

store_stock_zipcode vs. customer_zipcode Parameters When making type=store_stock requests the store_stock_zipcode parameter is used. This is a distinct parameter only used for store_stock requests. It is unrelated to the customer_zipcode parameter used for geolocation in other request types.

There is no need to set up zipcodes used in the store_stock store_stock_zipcode parameter in the Zipcodes API prior to use, and they do not count towards your zipcodes quota.

You may use the only_in_stock=true parameter to limit your results to only those stores that have stock of the requested tcin .

Store stock details are retrieved from the store stock check page for a single product on Target.

Store Stock Page
Store Stock Page


For example, to request store stock details a product with tcin=78025470 in stores near to store_stock_zipcode=52404 the request would be:

HTTP
Curl
Node.js
Python
PHP



Store Stock Parameters

The following parameters are available for all requests made when type=store_stock .

Parameter

Required

Description

tcin

optional

The Target TCIN (item ID) to retrieve store stock details for.

dpci

optional

The DPCI code to look up a matching product on Target for to retrieve store stock data. DPCI-based requests work by searching for the DPCI on Target first, then retrieving the store stock details for the first matching tcin .

gtin

optional

The GTIN/ISBN/UPC code to look up a matching product on Target for to retrieve store stock data. If the gtin parameter is supplied then the tcin and dpci parameters are ignored. GTIN-based requests work by searching for the GTIN/ISBN/UPC on Target first, then retrieving the store stock details for the first matching tcin .

url

optional

The Target product-page URL to retrieve store stock details from.

Note : If the url parameter is supplied then the tcin , dpci and gtin parameters are ignored. The url must be a valid Target product page URL.

store_stock_zipcode

required

The zipcode to use to search for nearby store stock results. Up to 20 stores within a 50 mile radius are returned.

Note that store_stock_zipcode is a distinct parameter only used for store_stock requests. It is unrelated to the customer_zipcode parameter used for geolocation in other request types.

There is no need to set up zipcodes used in the store_stock store_stock_zipcode parameter in the Zipcodes API prior to use, and they do not count towards your zipcodes quota.

only_in_stock

optional

Set to true to limit your results to only those stores that have stock of the requested tcin . Defaults to false (to include all stores within a 50 mile radius of the requested store_stock_zipcode , irrespective of whether they have stock of the requested tcin ).



Next Steps      Store Stock Results

Updated 15 Aug 2024
Did this page help you?