Get All Inventories

The Get All Inventories API retrieves a list of all inventory items.

API Method

GET

Endpoint

https://cebuana-apiuat.veryfyglobal.com/inventories

Headers

Key
Value

Accept

application/json

Authorization

Bearer <YOUR_TOKEN>

Query Parameters

Parameter
Type
Required
Description

name

string

No

Filter inventories by currency name (e.g., "australian dollar").

code

string

No

Filter by currency code (e.g., "AUD").

currency

string

No

Filter by currency ID.

sort_by

string

No

Specify sorting criteria, format: <field>, <direction> (e.g., for_date, asc). asc or desc

Response Sample

{
    "message": "Ok",
    "data": {
        "records": [
            {
                "id": 2106,
                "user_id": 44,
                "user": {
                    "name": "Rod"
                },
                "branch": {
                    "name": "migration test"
                },
                "currency_id": 4,
                "currency": {
                    "id": 4,
                    "order": 0,
                    "name": "Australian Dollar",
                    "code": "AUD",
                    "image": "https://cebuana-apiuat.veryfyglobal.com/storage/uat/currency/4de11a55-4f97-402c-9aad-8df095d5b188.png",
                    "buy_rate": "40.00000",
                    "sell_rate": "39.50000",
                    "is_active": {
                        "value": 1,
                        "description": "Yes"
                    },
                    "is_sell_active": {
                        "value": 1,
                        "description": "Yes"
                    },
                    "updated_at": "2025-07-15T08:56:29.000000Z"
                },
                "type": {
                    "value": 0,
                    "description": "Buy"
                },
                "starting_balance": "0.00",
                "stock": "0.00",
                "for_date": "2025-07-24"
            },
            {
                "id": 2109,
                "user_id": 44,
                "user": {
                    "name": "Rod"
                },
                "branch": {
                    "name": "migration test"
                },
                "currency_id": 5,
                "currency": {
                    "id": 5,
                    "order": 0,
                    "name": "Japanese Yen",
                    "code": "JPY",
                    "image": "https://cebuana-apiuat.veryfyglobal.com/storage/uat/currency/fa5a65b4-5d94-492d-92a6-4bd13d182c37.png",
                    "buy_rate": "0.38600",
                    "sell_rate": "0.39900",
                    "is_active": {
                        "value": 1,
                        "description": "Yes"
                    },
                    "is_sell_active": {
                        "value": 1,
                        "description": "Yes"
                    },
                    "updated_at": "2025-07-15T08:56:30.000000Z"
                },
                "type": {
                    "value": 0,
                    "description": "Buy"
                },
                "starting_balance": "0.00",
                "stock": "0.00",
                "for_date": "2025-07-24"
            },
        ],
        "pagination": {
            "current_page": 1,
            "last_page": 15,
            "total_record": 2,
            "page_size": 20,
            "has_more_page": true
        }
    }
}

Last updated