The address book API lets authenticated users save, update, and delete delivery addresses for faster checkout. All five endpoints are scoped to the current session — users can only read and modify their own addresses. Requests without a valid session cookie are rejected withDocumentation 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.
401.
Addresses are not referenced by orders. When a user completes checkout, the delivery details are copied as an immutable snapshot directly onto the order record. This means deleting or editing an address in the address book has no effect on existing orders — the original delivery information is permanently preserved on each order.
List addresses
Returns all delivery addresses saved by the authenticated user.requireSession middleware).
Response
All addresses belonging to the authenticated user.
200 OK
Get a single address
Returns one address by its UUID. Returns404 if the address does not exist or belongs to a different user.
requireSession middleware).
Path parameters
Unique identifier of the address to retrieve. Returns
404 if not found or not owned by the authenticated user.200 OK
Create an address
Saves a new delivery address for the authenticated user. Returns the created address with its assignedid and timestamps.
requireSession middleware).
Request body
Full name of the person who will receive deliveries at this address. Minimum 1 character.
Local Cuban phone number for delivery coordination. Minimum 1 character.
Cuban province for the delivery destination (e.g.,
"La Habana", "Santiago de Cuba"). Minimum 1 character.Municipality within the selected province (e.g.,
"Plaza de la Revolución"). Minimum 1 character.Full street address including street number, street name, and neighborhood (e.g.,
"Calle 23 #456 entre J e I, Vedado"). Minimum 1 character.Optional delivery landmark or hint (e.g.,
"Edificio azul, apartamento 3B"). Helps delivery agents locate the exact destination.201 Created
Update an address
Partially updates an existing address. All fields are optional — only send the fields you want to change. Returns404 if the address does not exist or is not owned by the authenticated user.
requireSession middleware).
Path parameters
Unique identifier of the address to update. Returns
404 if not found or not owned by the authenticated user.Request body
All fields are optional for PATCH. Only provided fields are updated; omitted fields retain their current values.Updated recipient name.
Updated phone number.
Updated province.
Updated municipality.
Updated street address.
Updated delivery landmark or hint.
200 OK
Delete an address
Permanently deletes an address from the user’s address book. Returns204 No Content on success with an empty body. Returns 404 if the address does not exist or is not owned by the authenticated user.
requireSession middleware).
Path parameters
Unique identifier of the address to delete. Returns
404 if not found or not owned by the authenticated user.204 No Content
Empty body. The address has been permanently removed from the address book.
| HTTP | Condition |
|---|---|
204 | Address deleted successfully. |
401 | No valid session cookie. |
404 | Address not found or not owned by the authenticated user. |