β‘Fetch Product
Fetches details of a specific product using the product ID. This is useful for viewing complete product details.
Endpoint
GET
https://api.keepup.store/v2.0/products/{product_id}
Headers
Authorization: Bearer API_KEY
Path Parameters
product_id
number
required
Unique identifier for the product. Example: 12345
Sample Requests
const axios = require('axios');
const product_id = 'YOUR_PRODUCT_ID'; // Replace 'YOUR_PRODUCT_ID' with your actual product ID
const config = {
method: 'get',
url: `https://api.keepup.store/v2.0/products/{product_id}`,
headers: {
'Authorization': 'Bearer API_KEY' // Replace 'API_KEY' with your actual API key
}
};
axios(config).then(function(response) {
console.log(JSON.stringify(response.data));
}).catch(function(error) {
console.error(error);
});
Sample Response
{
"status": 200,
"message": "product ready",
"data": {
"product_info": {
"product_id": 19842,
"product_name": "6:16",
"description": "<p>6:16 description</p>",
"cost_price": "0.00",
"selling_price": "37.00",
"previous_price": "0.00",
"stock_limit": "unlimited",
"stock_status": "out_of_stock",
"quantity": 0,
"images": [],
"restock_level": 1,
"barcode": null,
"SKU": null,
"product_location": null,
"category": null,
"tags": [],
"variants": [],
"show_on_storefront": "yes",
"featured_product": "no",
"expirations": [],
"created_at": "2024-05-11 16:18",
"updated_at": "2024-05-11 17:00"
}
}
}
Last updated