Stock areas API

List stock areas

GET /stock_place
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • name
  • id
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 109
Content-Type: application/json
[
  {
    "id": 1,
    "stock_id": 1,
    "name": "A-06"
  },
  {
    "id": 2,
    "stock_id": 1,
    "name": "C-08"
  },
  {
    "id": 3,
    "stock_id": 2,
    "name": "D-12"
  }
]

Search stock areas

POST /stock_place/search
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
[
  {
    "field": "stock_id",
    "value": 1
  }
]
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • id
  • name
Name Required Type Description
name optional string
stock_id optional string
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 73
Content-Type: application/json
[
  {
    "id": 1,
    "stock_id": 1,
    "name": "A-06"
  },
  {
    "id": 2,
    "stock_id": 1,
    "name": "C-08"
  }
]

Show stock area

GET /stock_place/1
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
callback optional string Javascript callback
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 35
Content-Type: application/json
{
  "id": 1,
  "stock_id": 1,
  "name": "A-06"
}