The Product Details API enables access to information regarding a specific product. By inputting the product ID, the API can retrieve all details about the product, including its affiliate status.
http://api.shopper.com/v1/products/{product-id}
Sample output
{
"status": 200,
"message": "OK",
"id": "605844cfcae4f600189c5dd4",
"name": "Nike Glider",
"image": "https://cdn.shopper.com/shopper-v2/demo/assets/user_products/503d62c4-386b-42fd-a515-b48cf0763151.png",
"featured": false,
"create_date": "2021-11-15T04:45:57.259Z",
"product_url": "https://www.nike.com/glider",
"url": "https://www.shopper.com/p/sjEq",
"collection": {
"name": "My Product Collections",
"id": "605844cfcae4f600189c5dd4"
},
"store": {
"name": "Nike",
"url": "https://www.shopper.com/aff_redirect?source=web&store_id=nike-com&type=store"
},
"store_active": true,
"affiliate_url": "https://www.shopper.com/p/sjEq/r",
"description": "Nike Glider is one of the best sneakers I ever had"
}
Response body
id: Unique product ID.
name: Name of the product
image: Product image link
featured: This response flag serves as an indicator for a featured product
create_date: Date of creation of the product in ISO 8601 format
product_url: URL of the original product page
url: The affiliate link for the store's homepage
collection: Details of the collection to which the product has been added
store: Details of the store associated with the product
store_active: This response flag allows you to check affiliate status of a store. The affiliate status denotes whether the store maintains an active affiliate connection. Stores may be removed from the affiliate network due to various reasons, including switching between networks or non-payment of dues. Utilizing the true and false flags enables you to discern whether the store is actively participating in an affiliate program.
affiliate_url: Affiliate URL of the product
description: Product description
Response status
Status | Reason |
---|---|
500 | Internal server error |
200 | Success |
400 | Invalid request parameters |
405 | API method is not allowed, contact admin to get access |
401 | Invalid authentication parameters |