Create a product
POST /api/v1/shops/{shop_id}/products/
Creates a new product in the specified shop. Only name and price are required — all other fields have sensible defaults.
Request body
The product’s barcode (EAN, UPC, or custom). Used for POS scanning and barcode lookup.
The purchase or production cost of the product. Used for profit margin calculations.
A URL pointing to the product’s primary image. To upload binary files directly, use the Upload product image endpoint after creation.
201 Created with a ProductOut object.
List products
GET /api/v1/shops/{shop_id}/products/
Returns a paginated list of products in the shop. Use the query parameters below to filter by category, search term, or active status.
Query parameters
200 OK with an array of ProductOut objects.
Search products
GET /api/v1/shops/{shop_id}/products/search/
Performs a full-text search across product names and descriptions within the shop. This endpoint is optimized for quick lookups from POS or inventory management screens.
Query parameters
200 OK with an array of matching ProductOut objects.
Get a product
GET /api/v1/shops/{shop_id}/products/{product_id}/
Retrieves a single product by its ID.
200 OK with a ProductOut object, or 404 Not Found if the product does not exist in this shop.
Update a product
PATCH /api/v1/shops/{shop_id}/products/{product_id}/
Partially updates one or more fields on a product. Only the fields you include are changed.
200 OK with the updated ProductOut object.
Deactivate a product
DELETE /api/v1/shops/{shop_id}/products/{product_id}/
Soft-deletes a product by setting is_active to false. The product is hidden from POS and storefront views but remains in the database and can be reactivated via the Update product endpoint.
204 No Content on success.
This endpoint performs a soft delete. To permanently remove a product, contact Mutasib support. To reactivate a deactivated product, send
PATCH /api/v1/shops/{shop_id}/products/{product_id}/ with { "is_active": true }.Upload a product image
POST /api/v1/shops/{shop_id}/products/{product_id}/images/
Uploads a binary image file and attaches it to the product. The request must use multipart/form-data encoding. A product can have multiple images; use sort_order to control display order.
Form fields
201 Created with the uploaded image object containing id, image, alt_text, and sort_order.
Delete a product image
DELETE /api/v1/shops/{shop_id}/products/{product_id}/images/{image_id}/
Removes a specific image from the product. The image file is deleted from storage.
204 No Content on success.