Products

GET https://leads.qreq.com/api/products
curl --request GET \
--url 'https://leads.qreq.com/api/products' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Products retrieved successfully.", "data": { "current_page": 1, "data": [ { "id": 1, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:50:26.000000Z", "updated_at": "2025-11-06T05:50:26.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "category": { "id": 3, "name": "Home Appliances", "slug": "home-appliances", "description": "Appliances and electronic devices used for household purposes.", "status": "active", "created_by": 9, "created_at": "2025-11-06T05:33:26.000000Z", "updated_at": "2025-11-06T05:33:26.000000Z" }, "brand": { "id": 2, "name": "NovaTech Electronics", "description": "Leading manufacturer of consumer electronics and smart devices.", "website": "https://www.novatechelectronics.com", "status": "active", "created_by": 9, "created_at": "2025-11-06T05:02:00.000000Z", "updated_at": "2025-11-06T05:02:00.000000Z" }, "tax": { "id": 2, "name": "test tax", "rate": "15.0000", "type": "percentage", "description": "test tax description", "status": "active", "created_by": 9, "assigned_to": null, "created_at": "2025-11-06T04:53:14.000000Z", "updated_at": "2025-11-06T04:53:14.000000Z" }, "assigned_user": { "id": 30, "name": "farhan", "email": "[email protected]", "email_verified_at": null, "lang": "en", "avatar": null, "type": "staff", "plan_id": null, "plan_expire_date": null, "requested_plan": 0, "created_by": 9, "mode": "light", "plan_is_active": 1, "storage_limit": 0, "is_enable_login": 1, "google2fa_enable": 0, "status": "inactive", "is_trial": null, "trial_day": 0, "trial_expire_date": null, "active_module": null, "referral_code": 0, "used_referral_code": 0, "commission_amount": 0, "created_at": "2025-11-01T10:26:20.000000Z", "updated_at": "2025-11-01T10:34:00.000000Z" }, "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } ], "first_page_url": "https://leads.qreq.com/api/products?page=1", "from": 1, "last_page": 1, "last_page_url": "https://leads.qreq.com/api/products?page=1", "links": [ { "url": null, "label": "« Previous", "page": null, "active": false }, { "url": "https://leads.qreq.com/api/products?page=1", "label": "1", "page": 1, "active": true }, { "url": null, "label": "Next »", "page": null, "active": false } ], "next_page_url": null, "path": "https://leads.qreq.com/api/products", "per_page": 10, "prev_page_url": null, "to": 1, "total": 1 } }
POST https://leads.qreq.com/api/products
Parameters Details Description
name RequiredString Product name
sku RequiredString Product SKU
description OptionalString Product description
price RequiredNumeric Product price
stock_quantity OptionalInteger Stock quantity
category_id OptionalInteger Category ID
brand_id OptionalInteger Brand ID
tax_id OptionalInteger Tax ID
status OptionalString Active or inactive
assigned_to OptionalInteger Assigned user ID
curl --request POST \
--url 'https://leads.qreq.com/api/products' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Laptop", "sku": "LP1001", "description": "High-end gaming laptop", "price": 1500, "stock_quantity": 10, "category_id": 1, "brand_id": 1, "tax_id": 1, "status": "active", "assigned_to": 33 }'
{ "status": "success", "message": "Product created successfully.", "data": { "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "assigned_to": 30, "created_by": 9, "updated_at": "2025-11-06T05:50:26.000000Z", "created_at": "2025-11-06T05:50:26.000000Z", "id": 1, "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } }
PUT https://leads.qreq.com/api/products/{product_id}
curl --request PUT \
--url 'https://leads.qreq.com/api/products/{product_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "name": "Laptop Updated", "sku": "LP1001", "description": "Updated description", "price": 1600, "stock_quantity": 8, "category_id": 1, "brand_id": 1, "tax_id": 1, "status": "active", "assigned_to": 33 }'
{ "status": "success", "message": "Product updated successfully.", "data": { "id": 1, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "active", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:50:26.000000Z", "updated_at": "2025-11-06T05:50:26.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=", "additional_image_urls": [], "media": [], "has_valid_image": false, "display_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMDAgMTYwTDYwIDE0MFY4MEwxMDAgNjBaIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0iI0U1RTdFQiIvPgo8Y2lyY2xlIGN4PSI4NSIgY3k9Ijk1IiByPSI4IiBmaWxsPSIjOUNBM0FGIi8+CjxwYXRoIGQ9Ik03MCAxMzBMODUgMTE1TDEwMCAxMzBMMTMwIDEwMEwxMzAgMTMwSDcwWiIgZmlsbD0iIzlDQTNBRiIvPgo8L3N2Zz4=" } }
DELETE https://leads.qreq.com/api/products/{product_id}
curl --request DELETE \
--url 'https://leads.qreq.com/api/products/{product_id}' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Product deleted successfully." }
PATCH https://leads.qreq.com/api/products/{product_id}/toggle-status
curl --request PATCH \
--url 'https://leads.qreq.com/api/products/{product_id}/toggle-status' \
--header 'Authorization: Bearer {api_key}'
{ "status": "success", "message": "Product status updated successfully.", "data": { "id": 1, "name": "Wireless Bluetooth Headphones", "sku": "WBH-2025", "description": "Over-ear noise-cancelling Bluetooth headphones with 40-hour battery life.", "price": "129.99", "stock_quantity": 150, "main_image_id": null, "additional_image_ids": null, "category_id": 3, "brand_id": 2, "tax_id": 2, "status": "inactive", "created_by": 9, "assigned_to": 30, "created_at": "2025-11-06T05:50:26.000000Z", "updated_at": "2025-11-06T05:56:01.000000Z", "main_image_url": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSIjRjNGNEY2Ii8+CjxwYXRoIGQ9Ik0xMDAgNjBMMTQwIDgwVjE0MEwxMD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