OfficeGest
Stocks/Articles/{article}/Lots

List article lots

Returns lots associated with an article. Supports filtering by lot id, description, entry and expiration dates, and warehouse context.

GET
/stocks/articles/{article}/lots
AuthorizationBearer <token>

In: header

Path Parameters

articlestring

Query Parameters

warehouse_id?string

Filter by warehouse id

id?stringDeprecated

Filter by lot id using operators eq/like

description?stringDeprecated

Filter by lot description using operators eq/like

entry_date?stringDeprecated

Filter by lot entry date using operators gte/lte

Formatdate
expiration_date?stringDeprecated

Filter by lot expiration date using operators gte/lte

Formatdate
created_at?stringDeprecated

Filter by creation timestamp using operators gte/lte

Formatdate-time
updated_at?stringDeprecated

Filter by update timestamp using operators gte/lte

Formatdate-time
filter[id][operator]?string

Operators: eq, like. Example: filter[id][eq]=value

filter[description][operator]?string

Operators: eq, like. Example: filter[description][eq]=value

filter[entry_date][operator]?string

Operators: gte, lte. Example: filter[entry_date][gte]=value

Formatdate
filter[expiration_date][operator]?string

Operators: gte, lte. Example: filter[expiration_date][gte]=value

Formatdate
filter[created_at][operator]?string

Operators: gte, lte. Example: filter[created_at][gte]=value

Formatdate-time
filter[updated_at][operator]?string

Operators: gte, lte. Example: filter[updated_at][gte]=value

Formatdate-time
limit?integer

Items per page. Default 50, maximum 250; a larger value is truncated to 250.

Default50
Range1 <= value <= 250
order?string

Sort field

sorder?string

Sort order (ASC or DESC)

page?integer

Page number. Default 1; a value below 1 counts as 1.

Default1
Range1 <= value

Response Body

curl -X GET "https://og-tenant1.test:8003/api/v2/stocks/articles/string/lots?warehouse_id=string&id=string&description=string&entry_date=2019-08-24&expiration_date=2019-08-24&created_at=2019-08-24T14%3A15%3A22Z&updated_at=2019-08-24T14%3A15%3A22Z&filter%5Bid%5D%5Boperator%5D=string&filter%5Bdescription%5D%5Boperator%5D=string&filter%5Bentry_date%5D%5Boperator%5D=2019-08-24&filter%5Bexpiration_date%5D%5Boperator%5D=2019-08-24&filter%5Bcreated_at%5D%5Boperator%5D=2019-08-24T14%3A15%3A22Z&filter%5Bupdated_at%5D%5Boperator%5D=2019-08-24T14%3A15%3A22Z&limit=50&order=string&sorder=string&page=1"
{
  "data": [
    {
      "id": "string",
      "description": "string",
      "entry_date": "2019-08-24",
      "expiration_date": "2019-08-24",
      "warehouse_id": "string",
      "stock": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "meta": {
    "per_page": 50,
    "current_page": 1,
    "has_more": true,
    "total": 120,
    "last_page": 3,
    "from": 1,
    "to": 50
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}