Stock locations API

List stock locations

GET /stock
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: 61
Content-Type: application/json
[
  {
    "id": 1,
    "name": "Lager Berlin"
  },
  {
    "id": 2,
    "name": "Lager Bern"
  }
]

Search stock locations

POST /stock/search
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
[
  {
    "field": "name",
    "value": "Berlin"
  }
]
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
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 32
Content-Type: application/json
[
  {
    "id": 1,
    "name": "Lager Berlin"
  }
]

Show stock location

GET /stock/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: 30
Content-Type: application/json
{
  "id": 1,
  "name": "Lager Berlin"
}