Products
GET
https://funnels.qreq.com/api/products
curl --request GET \
--url 'https://funnels.qreq.com/api/products' \
--header 'Authorization: Bearer {api_key}'
{
"data": [
{
"id": 1,
"name": "Wireless Headphones",
"category": "Electronics",
"price": 59.99,
"currency": "USD",
"thumbnail": "https://funnels.qreq.com/uploads/products/1.png",
"description": "High-quality wireless headphones with noise cancellation.",
"status": "active",
"created_at": "2025-01-20 14:00:00"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 5
}
}
GET
https://funnels.qreq.com/api/products/{product_id}
curl --request GET \ --url 'https://funnels.qreq.com/api/products/{product_id}' \ --header 'Authorization: Bearer {api_key}'
{
"data": {
"id": 1,
"name": "Wireless Headphones",
"category": "Electronics",
"price": 59.99,
"currency": "USD",
"thumbnail": "https://funnels.qreq.com/uploads/products/1.png",
"description": "High-quality wireless headphones with noise cancellation.",
"status": "active",
"created_at": "2025-01-20 14:00:00"
}
}
POST
https://funnels.qreq.com/api/products
| Parameters | Details | Description |
|---|---|---|
| name | RequiredString | Product name |
| category_id | Requiredmissing_translation: api_documentation.integer | Category reference ID |
| price | RequiredFloat | Product price |
| currency | OptionalString | Default USD |
| description | OptionalString | Product description |
| thumbnail | OptionalFile | Product image file |
| status | OptionalString | active / inactive |
curl --request POST \
--url 'https://funnels.qreq.com/api/products' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Wireless Headphones' \
--form 'category_id=1' \
--form 'price=59.99' \
--form 'currency=USD' \
--form 'description=High-quality wireless headphones' \
--form 'status=active' \
--form 'thumbnail=@/path/to/file.png'
DELETE
https://funnels.qreq.com/api/products/{product_id}
curl --request DELETE \ --url 'https://funnels.qreq.com/api/products/{product_id}' \ --header 'Authorization: Bearer {api_key}'