VinylVibes exposes two user-specific endpoints for tracking purchase and browsing activity.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/akibanks/tienda_musica_web/llms.txt
Use this file to discover all available pages before exploring further.
GET /mis-compras returns the full order history for the authenticated user and is used to populate the “Mis Compras” side panel in the storefront. POST /historial records vinyl view events automatically when a user opens an album’s detail modal, and these events are used by the backend to power personalized recommendations via GET /disco/{id}/recomendaciones.
GET /mis-compras
Authentication: Required —Authorization: Bearer <token>
Returns the complete purchase history for the authenticated user, ordered from most to least recent. Each order includes its status, total, city, and a full list of the vinyl records purchased.
cURL Example
Response
Returns an array of order objects.Unique order ID.
Current order status. One of:
pendiente, pagada, enviada, entregada, or cancelada.Order total (e.g.,
59.98).ISO 8601 timestamp of when the order was placed.
Destination city from the shipping address, displayed alongside the order date in the UI.
Array of vinyl records included in this order.
Response Example
POST /historial
Authentication: Required —Authorization: Bearer <token>
Records a vinyl view event for the authenticated user. This endpoint is called automatically by the frontend (_registrarHistorial in script.js) whenever a logged-in user opens the album detail modal. The backend uses the accumulated view history to generate personalized recommendations surfaced through GET /disco/{id}/recomendaciones.
Request Body
The Discogs release ID of the vinyl that was viewed.
Album title.
Artist name.
Primary genre of the album, or
null if not available.Style/subgenre of the album, or
null if not available.Request Body Example
cURL Example
How the Frontend Calls This Endpoint
The following code is taken directly fromscript.js (_registrarHistorial function):