Produkte

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
Parameter Einzelheiten Beschreibung
name ErforderlichZeichenfolge Product name
category_id Erforderlichmissing_translation: api_documentation.integer Category reference ID
price ErforderlichSchwimmen Product price
currency OptionalZeichenfolge Default USD
description OptionalZeichenfolge Product description
thumbnail OptionalDatei Product image file
status OptionalZeichenfolge 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}'