The Sales Store Module (/v1/sales/store) exposes endpoints tailored for Point of Sale (POS) environments, storefront checkouts, and mobile sales rep catalog browsing. It provides fast access to store products, real-time inventory balances, and selling business units.
/v1/sales/store
App\Http\Controllers\V1\Backend\Sales\Store\CatalogProductControllerApp\Http\Controllers\V1\Backend\Sales\Store\StoreCatalogControllerApp\Http\Controllers\V1\Backend\Sales\Store\StoreBusinessUnitControllerroutes/v1/backend/sales/store/store.phproutes/v1/backend/sales/store/products.phproutes/v1/backend/sales/store/catalog.phproutes/v1/backend/sales/store/business-units.php| Header | Type | Description |
|---|---|---|
Authorization |
string |
Bearer <access_token> OAuth2 Bearer token. |
x-app-stage |
string |
Tenant environment (dev, staging, prod). |
x-app-uid |
string |
Authenticated user application UUID. |
Content-Type |
string |
application/json. |
Accept |
string |
application/json. |
All endpoints enforce the company-validator middleware. companyId must be supplied via query parameter ?companyId={id} or request payload.
| Method | Endpoint | Description |
|---|---|---|
GET |
/v1/sales/store/products |
Paginated list of products available for the store |
GET |
/v1/sales/store/products/{id} |
Retrieve specific product details |
GET |
/v1/sales/store/products/{id}/stock |
Query real-time available stock for a product |
GET |
/v1/sales/store/catalog |
List all catalog merchandise lines with pagination |
GET |
/v1/sales/store/business-units |
List active sales business units / selling stores |
GET |
/v1/sales/store/business-units/{id} |
Retrieve details for a specific store business unit |
/v1/sales/store/products)GET /v1/sales/store/products?companyId=1&page=1
companyId (int, required): Tenant company ID.page (int, default: 1): Pagination page number.search (string, optional): Search term matching name, SKU, or description.200 OK{
"success": true,
"message": "Operación exitosa.",
"data": {
"current_page": 1,
"data": [
{
"id": 1050,
"company_id": 1,
"sku": "CERV-CRIS-330",
"name": "CERVEZA CRISTAL 330ML RETORNABLE",
"description": "Caja x 24 botellas",
"stock": 1450,
"price": 48.50,
"created_at": "2026-08-10T12:00:00Z"
}
],
"first_page_url": "http://api.goal.com/v1/sales/store/products?page=1",
"from": 1,
"last_page": 10,
"per_page": 10,
"total": 98
}
}
GET /v1/sales/store/products/{id}/stock?companyId=1
id (int, required): Product ID.200 OK{
"success": true,
"message": "Operación exitosa.",
"data": {
"available_stock": 1450
}
}
/v1/sales/store/catalog)GET /v1/sales/store/catalog?companyId=1&page=1
200 OK{
"success": true,
"message": "Operación exitosa.",
"data": {
"current_page": 1,
"data": [
{
"id": 1050,
"company_id": 1,
"name": "CERVEZA CRISTAL 330ML RETORNABLE",
"sku": "CERV-CRIS-330"
}
],
"per_page": 10,
"total": 98
}
}
/v1/sales/store/business-units)Exposes active sales teams acting as commercial selling units.
GET /v1/sales/store/business-units?companyId=1
200 OK{
"success": true,
"message": "Operación exitosa.",
"data": [
{
"id": 3,
"name": "TIENDA PRINCIPAL CENTRAL",
"description": "TIENDA PRINCIPAL CENTRAL",
"address": "Av. Nicolás de Piérola 1024",
"is_active": true,
"can_sell": true
},
{
"id": 7,
"name": "PUNTO DE VENTA NORTE",
"description": "PUNTO DE VENTA NORTE",
"address": "Av. Alfredo Mendiola 3600",
"is_active": true,
"can_sell": true
}
]
}
GET /v1/sales/store/business-units/{id}?companyId=1
200 OK{
"success": true,
"message": "Operación exitosa.",
"data": {
"id": 3,
"company_id": 1,
"code": "EQ-TIENDA-01",
"name": "TIENDA PRINCIPAL CENTRAL",
"status": "A"
}
}