This guide walks you through the full happy path: create an account, log in to get a JWT, search the vinyl catalog, inspect a record’s details, and place your first order. By the end you’ll have a working token and a confirmed sale ID.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/akibanks/api-tienda-vinilos/llms.txt
Use this file to discover all available pages before exploring further.
Register
Create a new account by sending your desired username and password. Usernames must be unique; passwords must be at least 6 characters.Response The new account is assigned the
201 Createdcliente role automatically. No email verification is required.Log in and get your token
Exchange your credentials for a JWT. Store the Response
On all subsequent requests to protected endpoints, include:Save the token to a shell variable for convenience:
token value — you’ll pass it as a Bearer header on every protected request.200 OK| Field | Description |
|---|---|
token | Signed JWT — valid for 7 days |
nombre | Your username as stored in the database |
es_admin | true only for the admin role |
es_demo | true only for the demo read-only role |
Search the catalog
Search the full Discogs catalog by any keyword — artist, album title, label, or genre. No authentication is required for this endpoint.Response
Add
200 OK| Field | Description |
|---|---|
discogs_id | Discogs release ID — use this to fetch full details |
titulo | Album or release title |
artista | Primary artist name (disambiguator suffixes like (2) are stripped) |
anio | Release year, or null if unknown |
genero | Primary genre from Discogs |
estilo | Primary style from Discogs |
imagen_url | Cover art URL |
precio | Server-calculated price in USD (based on year + popularity) |
have | Number of Discogs community members who own this release |
want | Number of Discogs community members who want this release |
&pagina=2 to fetch the next page of results (20 results per page).Get a record's details
Fetch the full detail for a specific release by its Response Detail responses are cached in Redis for 7 days. The first request hits Discogs directly; subsequent requests are served from cache.
discogs_id. This includes the tracklist, label, country, and a freshly calculated price.200 OKPlace an order
Submit your cart and shipping address to create a confirmed sale. Authentication is required.Response Required fields in each
201 Createditems entry: discogs_id, titulo, artista, cantidad (positive integer). Required fields in envio: nombre_receptor, calle, numero_ext, colonia, ciudad, estado, codigo_postal. The fields numero_int and referencias are optional.