Skip to main content
GET
/
products
List Products
curl --request GET \
  --url https://api.example.com/products
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "price": "<string>",
  "stock": 123,
  "category_id": 123,
  "created_at": "<string>",
  "updated_at": "<string>"
}
This endpoint returns an array containing all products in the system with their complete information.

Response

Returns an array of product objects. Each product includes all fields from the database.
id
string
Product UUID identifier
name
string
Product name
description
string
Product description
price
string
Product price in decimal format (e.g., “3000.00”)
stock
integer
Available stock quantity
category_id
integer
ID of the category this product belongs to
created_at
string
Timestamp when the product was created (ISO 8601 format)
updated_at
string
Timestamp when the product was last updated (ISO 8601 format)

Response Example

[
  {
    "id": "ad996ed3-14bb-11f1-9fcd-2418c6c96a00",
    "name": "Pitusas",
    "description": "Galletas de chocolate rellenas",
    "price": "1200.00",
    "stock": 90,
    "category_id": 5,
    "created_at": "2026-02-28T15:39:32.000Z",
    "updated_at": "2026-02-28T15:39:32.000Z"
  },
  {
    "id": "b6da7bbc-14b9-11f1-9fcd-2418c6c96a00",
    "name": "Coca cola",
    "description": "Bebida gasificada de 2ltr",
    "price": "3000.00",
    "stock": 40,
    "category_id": 1,
    "created_at": "2026-02-28T15:25:29.000Z",
    "updated_at": "2026-02-28T15:25:29.000Z"
  }
]

Error Responses

409 - Conflict

{
  "error": true,
  "msg": "Error message describing the issue"
}

Build docs developers (and LLMs) love