Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ItsJhonAlex/Ecommerce/llms.txt

Use this file to discover all available pages before exploring further.

The public products endpoints expose only products with active status. Products in draft or archived state are never returned from these routes — the storefront always sees a clean, curated catalog. No authentication is required for either endpoint.

List all products

Returns every active product, ordered alphabetically by name. Each product includes its full set of prices (one per currency) and images sorted by position, with position 0 being the primary image.
curl https://api.avanzarintimeshop.com/api/v1/products

Response

products
Product[]
required
Array of active products ordered by name.
Example response — 200 OK
{
  "products": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "slug": "classic-white-watch",
      "name": "Classic White Watch",
      "description": "A timeless white dial watch with a leather strap.",
      "status": "active",
      "stockQuantity": 14,
      "createdAt": "2024-09-01T10:00:00.000Z",
      "updatedAt": "2024-11-15T08:30:00.000Z",
      "prices": [
        {
          "id": "p1a2b3c4-0000-0000-0000-000000000001",
          "productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "currency": "USD",
          "amountMinor": 4999
        },
        {
          "id": "p1a2b3c4-0000-0000-0000-000000000002",
          "productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "currency": "CUP",
          "amountMinor": 140000
        }
      ],
      "images": [
        {
          "id": "img-0001-0000-0000-0000-000000000001",
          "productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "url": "https://cdn.avanzarintimeshop.com/products/classic-white-watch-front.jpg",
          "alt": "Classic White Watch — front view",
          "position": 0
        },
        {
          "id": "img-0001-0000-0000-0000-000000000002",
          "productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
          "url": "https://cdn.avanzarintimeshop.com/products/classic-white-watch-side.jpg",
          "alt": "Classic White Watch — side view",
          "position": 1
        }
      ]
    }
  ]
}

Get a product by slug

Returns a single active product identified by its URL slug. The response includes prices, images, and category memberships with the full category object for each membership. Returns 404 if the product does not exist or if its status is not active — draft and archived products behave as if they do not exist.
curl https://api.avanzarintimeshop.com/api/v1/products/classic-white-watch

Path parameters

slug
string
required
The URL-friendly identifier for the product (e.g., classic-white-watch). Slugs are unique across the catalog.

Response

product
Product
required
The matching active product, including nested relations.
Example response — 200 OK
{
  "product": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "slug": "classic-white-watch",
    "name": "Classic White Watch",
    "description": "A timeless white dial watch with a leather strap.",
    "status": "active",
    "stockQuantity": 14,
    "createdAt": "2024-09-01T10:00:00.000Z",
    "updatedAt": "2024-11-15T08:30:00.000Z",
    "prices": [
      {
        "id": "p1a2b3c4-0000-0000-0000-000000000001",
        "productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "currency": "USD",
        "amountMinor": 4999
      }
    ],
    "images": [
      {
        "id": "img-0001-0000-0000-0000-000000000001",
        "productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "url": "https://cdn.avanzarintimeshop.com/products/classic-white-watch-front.jpg",
        "alt": "Classic White Watch — front view",
        "position": 0
      }
    ],
    "categories": [
      {
        "productId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "categoryId": "cat-0001-0000-0000-0000-000000000001",
        "category": {
          "id": "cat-0001-0000-0000-0000-000000000001",
          "slug": "mens-watches",
          "name": "Men's Watches",
          "parentId": "cat-root-0000-0000-0000-000000000001"
        }
      }
    ]
  }
}
Error response — 404 Not Found
{
  "error": "Producto no encontrado"
}

Build docs developers (and LLMs) love