Item Index
Get all items.
Query Parameters
- Type: stringpagemin length:1
page offset to display a range of records from
- Type: stringper
_page min length:1maximum number of records to return in the search
- Type: stringsearch
_text search for records containing the text
- Type: stringenumsort
_by order the returned records by a specified field
values- id
- name
- number
- created
_at
- Type: stringenumorder
sort the records in either ascending (asc) or descending (desc) order
values- asc
- desc
Headers
- Type: stringContent
- Type application/json
Responses
- application/json
- 401
Unauthorized
- 500
Internal Server Error
Request Example for get/items
curl '/items?page=1&per_page=5000&search_text=&sort_by=id&order=asc' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: YOUR_SECRET_TOKEN'
{
"page": 1,
"per_page": 1,
"total_entries": 1,
"total_pages": 1,
"items": [
{
"Item": {
"name": "string",
"code": "string",
"merchant_id": null,
"manufacturer_id": null,
"item_type": "item"
},
"errors": {}
}
]
}