Skip to main content
GET
/
api
/
v1
/
stock-per-warehouse
Obtener stock por ubicación
curl --request GET \
  --url https://api.lapyme.com.ar/api/v1/stock-per-warehouse \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "product": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "sku": "<string>"
      },
      "warehouse": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "quantity": 123,
      "organizationSlug": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "page": 2,
    "limit": 2,
    "total": 1,
    "totalPages": 2
  }
}

Authorizations

Authorization
string
header
required

Incluí tu API key en el header Authorization con el prefijo Bearer

Query Parameters

page
integer
default:1

Número de página

Required range: x >= 1
Example:

1

limit
integer
default:50

Cantidad de elementos por página

Required range: 1 <= x <= 100
Example:

50

productId
string<uuid>

ID del producto para filtrar

Example:

"prod-123e4567"

warehouseId
string<uuid>

ID de la ubicación para filtrar

Example:

"wh-123e4567"

Response

200 - application/json

Lista de stock por ubicación obtenida exitosamente

success
boolean
required
data
object[]
required
pagination
object
required