Skip to main content

Check Inventory

Get inventory quantity by product code or product ID

Total Product Stock

Get the quantity of a product in all warehouses

HTTP Request

[GET] /api/v6/products/quantity

Example

HTTP Request

GET api/v6/products/quantity HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

{
"total_quantity": 299
}

Total Product Stock by Warehouse

Get the quantity of a product in each warehouse

HTTP Request

[GET] /api/v6/products/store_quantity

Example

HTTP Request

GET api/v6/products/store_quantity HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

{
"data": [
{
"id": 2,
"store_name": "Pheo Warehouse",
"total_quantity": 299
}
],
"offset": 0,
"limited": false,
"sorted": {
"id": "DESC"
}
}

Inventory by Product

Returns a list of products existing in all warehouses

HTTP Request

[GET] /api/v6/products/inventories

Query Parameters

Fields

FieldsTypeDescription
idintegerIdentifier
product_idintegerProduct identifier
product_codestringProduct code
product_namestringProduct name
cover_pricefloatProduct price
quantityintegerQuantity
cover_imagestringProduct image

Filtering

FieldsSupportTypeDescription
product_ideq,inintegerProduct identifier
product_nameeq,containsstringProduct name
product_codeeqstringProduct code

Sort

Sort (field)Direction
idasc,desc

Limit & Offset

TypeDescription
LimitintegerNumber of records to retrieve
OffsetintegerNumber of records to skip

Example

HTTP Request

GET api/v6/products/inventories HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json

Status

200 OK

Response

{
"data": [
{
"product_id": 21,
"product_code": "SP0021",
"product_name": "facial cleanser",
"cover_price": 800,
"quantity": 1,
"cover_image": "https://xxx.getflycrm.com/assets/images/no-product.jpg"
}
],
"has_more": false,
"offset": 0,
"limited": 1
}