Seller API
Products
Use the authenticated Products endpoint to work with seller-authorized product resources.
Available
Endpoints
GET
/api/v1/productsGET
/api/v1/products?id=123POST
/api/v1/productsPUT
/api/v1/products?id=123Authentication
Authorization: Bearer alefba_live_YOUR_API_KEYList products
curl --request GET \
--url "https://alefba.eu/api/v1/products" \
--header "Accept: application/json" \
--header "Authorization: Bearer alefba_live_YOUR_API_KEY"Retrieve one product
Pass the product identifier using the current id query parameter.
curl --request GET \
--url "https://alefba.eu/api/v1/products?id=123" \
--header "Accept: application/json" \
--header "Authorization: Bearer alefba_live_YOUR_API_KEY"Create or update
Use JSON and include only fields accepted by the live endpoint. The production Products implementation was not included in the supplied source package, so this portal does not claim a strict field schema.
curl --request PUT \
--url "https://alefba.eu/api/v1/products?id=123" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer alefba_live_YOUR_API_KEY" \
--data '{
"name": "Updated product"
}'Seller isolation
An API key must only access resources authorized for its linked seller. Treat HTTP 404 as either an unknown identifier or a resource that is not available to the authenticated seller.
Schema note: Publish required fields, validation limits and full response examples only after confirming them against the production products.php implementation.