Product Templates
List all product templates
A GET request to this endpoint lists all product templates, with pagination support.
get/api/v2/product_templates
Request
- Base URL: http://localhost:5100
- URL: http://localhost:5100/api/v2/product_templates
- Auth: API key in header Authorization
Query parameters
pageinteger
Page number for pagination
per_pageinteger
Number of records per page
Response
Product templates returned successfully
Example response
{
"success": true,
"product_templates": [
{
"id": 101,
"objectID": 101,
"name": "Sample Template",
"online_product_name": "Online Template Name",
"description": "This is a sample product template.",
"manufacturer": "Sample Manufacturer",
"men_women": "Men",
"summary": "Short summary of product",
"tech_specs": "Technical specifications details",
"supplier_name": "Sample Supplier",
"keywords": "[\"bike\",\"cycle\"]",
"buy_price": "100.00",
"recommended_retail_price": "150.00",
"product_margin_percentage": "15.5",
"product_tags_ids": [
1,
2,
3
],
"image_cdn_url": "https://cdn.example.com/images/123.jpg",
"subcategories_name": "Sample Subcategory",
"categories_name": "Sample Category",
"department_name": "Sample Department",
"product_url": "https://test.host/sample-template/1"
}
],
"pagination": {
"current_page": 1,
"per_page": 2,
"total_pages": 3,
"total_count": 5
}
}Changes
No recorded changes to this operation across all 1 revision of this API.