Storage Type - GET
Storage Type - GET API EndpointList of Storage Types API
The list of storage types configured for the account. Storage types represent different categories or configurations of storage units available, such as "Box" or "Container."
GET
/v1/common/storage/type
Request Content Type
application/json
Response Content Type
application/json
Request Header
-
Authorization: X-API-Key string required
X-API-Key is a string of letters and numbers used to authenticate and control access to the API. It can be generated in the StoRegister management application.
Response Payload:
-
succeeded boolean
Indicates whether the request to retrieve storage type information was successful. -
status string
Describes the status of the request to retrieve storage type information. -
data object
Array containing storage type information. -
pagination object
Details about pagination, including current page number, total number of pages, and overall count of items. -
errors array
Holds any error information if applicable.
Storage Type Option Details
Details about the storage type option.
array data
-
id unique-identifier
Unique identifier for the storage type. -
name string
Name of the storage type (e.g., "Box", "Container").
Request Header
Authorization: X-API-Key --api-key--
API Response
{
"data": [
{
"id": "47fa29c4-738a-42dc-bcb3-6dba1ee7e38e",
"name": "Box"
},
{
"id": "4c23b5e3-dff1-4846-9046-d221181d5c2a",
"name": "Container"
}
],
"pagination": {
"pageNumber": 1,
"pageCount": 2,
"totalCount": 2
},
"succeeded": true,
"status": "SUCCESS",
"errors": null
}
Error Codes
-
NO_RECORDS_FOUND
NO_RECORDS_FOUND means there is no relevant information found. -
FAILED
FAILED refers to an unsuccessful API call. -
SOMETHING_WENT_WRONG
SOMETHING_WENT_WRONG refers to technical glitch. Please contact administrator.