A ALEFBADeveloper Platform
Status Trust

Seller API

Products

Use the authenticated Products endpoint to work with seller-authorized product resources.

Available

Endpoints

GET/api/v1/products
GET/api/v1/products?id=123
POST/api/v1/products
PUT/api/v1/products?id=123

Authentication

http
Authorization: Bearer alefba_live_YOUR_API_KEY

List products

bash
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.

bash
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.

bash
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.