Table of Contents |
---|
basePath = /smartfin/api/v1/wh
Warehouses - Post
...
Get company
...
Get warehouse list that is visible to current user
...
Request
URL:
{basePath}/select
Method:
POST
Headers:
Content-Type: application/json
Authorization:
JWT { token }
JSON Body:
{}
...
Response
...
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Base Url: /smartfin/api/v1/wh
Retrieve Warehouse’s Data
...
POST/smartfin/api/v1/whitelist/select
Retrieve all of the warehouse’s data under the current user
Authentication / Authorization
- API Key
Headers
Schema
...
Headers:
Content-Type: application/json
Authorization:
string - JWT <<YOUR_API_KEY_HERE>> (required)
Request
Example:
JSON Body:
|
Response
Example:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Schema
...
Code Block |
---|
whs - |
...
Notes
Returns
...
a list of objects (whs
), each representing a warehouse (in descending order of wh_id
)
...
a list of wh_entity
present in the data
...
array[object] |
An array of object that contains warehouse’s data
Code Block |
---|
update_time, u_name, update_by - string |
Information about last updated time for the data and the user who updating the data.
Code Block |
---|
create_time, c_name, create_by - string |
Information about created time for the data and the user who creating the data.
Code Block |
---|
user_id, wh_id, company_id - integer |
user_id
- User Id ( who the data belongs to)entity_id
- A unique ID assigned to the data. This ID can be used to retrieve warehouse data.company_id
- The main company Id for the data.
Code Block |
---|
wh_name, wh_entity, wh_add - string |
wh_name
- Warehouse namewh_entity
- Warehouse Entitywh_add
- Warehouse address
Info |
---|
|
Code Block |
---|
validation - array[string] |
a list of
validation
that been used to indicate the list that is not able to add a new value (it is empty, all of the lists are able to update and add a new value)
Warehouses - Upsert ( Update/ Insert )
...