POST
Storage.Get
Return one warehouse by id from the storage table (same visibility as Storage.List). Maps to dashboard storage_list_record_view data.
Permissions
- User must be logged in with a valid bearer token.
- Returned or changed records are limited by the user permissions, team access, folder access, and account settings.
Action
- Returns Storage information as JSON for the UI.
Push Service
No push is sent because this function only reads data or returns helper information.
Automation
No automation is run for this function.
Special Instructions
- Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
- Send parameters as POST body fields exactly as documented.
Required Parameters
| Name | Type | Sample | Explanation |
|---|---|---|---|
storage_idpost | int | 3 | Warehouse id (storage.id). Aliases: id, data_id. |
Optional Parameters
No optional body parameters are defined for this function.
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Storage.Get",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"storage_id": "3"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/Storage.Get",
"url_domain": "https:\/\/{domain}\/app\/Storage.Get"
}Endpoint
POST /app/Storage.Get
POST https://{user}.bull36.com/app/Storage.Get
POST https://{domain}/app/Storage.GetSample Output
{
"success": 1,
"data": {
"id": 3,
"storage_id": 3,
"data_id": 3,
"user_id": 14,
"name": "Main warehouse",
"storage_name": "Main warehouse",
"notes": "Front stock",
"note": "Front stock",
"father": 0,
"father_storage_id": 0,
"team_members": [
"14",
"47"
],
"team_member_ids": [
14,
47
],
"default_storage": 1,
"is_default": true
}
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams({ storage_id: '3' });
const res = await fetch('/app/Storage.Get', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());Error Example
{
"success": 0,
"message": "Storage was not found."
}