Customers can retrieve a paginated list of all their past orders, look up an individual order by its unique transaction number, and manage saved shipping addresses. All endpoints require a valid Bearer token and return data scoped to the authenticated user.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JuanSCaicedo/Api-Ecommerce/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/ecommerce/profile_client/orders
Returns a paginated list of all orders placed by the authenticated user, ordered by newest first (10 per page).Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | Page number for pagination. |
Response
Thesales value is wrapped in a data key by the SaleCollection resource.
Object with a
data array of sale (order) objects, 10 records per page.Total number of orders placed by the authenticated user across all pages.
Sale object fields
Internal primary key of the sale record.
ID of the authenticated user who placed the order.
Unique transaction identifier. Used as the lookup key for
GET /api/ecommerce/sale/{id}. For direct checkouts this is the n_transaccion value supplied by the client; for MercadoPago checkouts it is the MercadoPago payment_id.Payment method used, e.g.
"bank_transfer", "mercadopago", "cash".Currency code of the order total, e.g.
"COP".Currency code used for the payment transaction.
Order-level discount amount.
null when not applicable.Order subtotal before additional fees.
Grand total charged for the order.
Dollar exchange rate at the time of purchase, if applicable.
Order notes or delivery instructions provided by the customer at checkout.
Array of
SaleDetail objects — one per cart item at the time of checkout. Each detail preserves the pricing, quantity, discount, variation, and coupon information that was active when the order was placed. Includes a review field if the customer has reviewed that item.Delivery address captured at checkout. See sale_address fields.
Order creation timestamp formatted as
"YYYY-MM-DD hh:mm AM/PM".GET /api/ecommerce/sale/
Returns the full details of a single order identified by itsn_transaccion value.
The
{id} path parameter is the n_transaccion string, not the numeric primary key. This allows customers to look up orders using the transaction reference shown in their confirmation email.Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The n_transaccion unique transaction identifier. |
Response
The full sale resource including all
sale_details items and the associated sale_address delivery record.Array of order line items. Each item mirrors the cart item structure (same fields as
CartEcommerceResource) plus a review field containing any review the customer left for that product.Delivery address captured at checkout.
n_transaccion — Transaction Identifier
n_transaccion is the unique transaction identifier stored on every Sale record.
- Direct checkout: the client supplies
n_transaccionin thePOST /api/ecommerce/checkoutrequest body (e.g. a bank transfer reference number). If omitted it remainsnull. - MercadoPago checkout: the client supplies the MercadoPago
payment_idasn_transaccionin thePOST /api/ecommerce/checkout-mercadopagorequest body.
n_transaccion as the lookup key when retrieving a specific order via GET /api/ecommerce/sale/{id}. It is also included in the SaleMail confirmation email sent to the customer.
Saved Shipping Addresses — /api/ecommerce/user_address
Customers can save multiple reusable shipping addresses to their account. All four CRUD operations are available. All endpoints require a valid Bearer token.GET /api/ecommerce/user_address
Returns all saved addresses for the authenticated user, ordered by newest first.POST /api/ecommerce/user_address
Creates a new saved address. Theuser_id is set server-side from the Bearer token.
Recipient’s first name.
Recipient’s last name.
Optional company name.
Country or region, e.g.
"Colombia".Primary street address, e.g.
"Calle 123 # 45-67".Additional address line / apartment.
City, e.g.
"Bogotá".Postal or ZIP code.
Contact phone number.
Contact email address for the delivery.
PUT /api/ecommerce/user_address/
Updates an existing saved address by its numeric ID.| Parameter | Type | Description |
|---|---|---|
id | integer | The saved address ID to update. |
DELETE /api/ecommerce/user_address/
Soft-deletes a saved address by its numeric ID.| Parameter | Type | Description |
|---|---|---|
id | integer | The saved address ID to delete. |
The
UserAddres model uses soft deletes (SoftDeletes trait). Deleted addresses are not permanently removed from the database and will not be returned by the GET endpoint.