Paginate Products
GET
/v1/products
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/products'
Response Response Example
{
"data": {
"meta": {
"page": 1,
"total": 3,
"per_page": 10,
"total_page": 1
},
"data": [
{
"id": "cf0a482d-4575-4a65-a581-e8155c1f249a",
"name": "Smartphone X",
"category": "Electronics",
"is_active": true,
"created_at": "2025-04-15T08:48:38.163Z",
"updated_at": "2025-04-15T08:48:38.163Z"
},
{
"id": "490c6be5-e21b-4f63-a942-0f74e9cc1b9e",
"name": "Laptop Pro",
"category": "Electronics",
"is_active": true,
"created_at": "2025-04-15T08:48:38.163Z",
"updated_at": "2025-04-15T08:48:38.163Z"
},
{
"id": "abbf4518-d33b-4151-b132-c3804249dca0",
"name": "Office Chair",
"category": "Furniture",
"is_active": false,
"created_at": "2025-04-15T08:48:38.163Z",
"updated_at": "2025-04-15T08:48:38.163Z"
}
]
},
"message": "Products retrieved successfully"
}
Request
Query Params
per_page
stringÂ
optional
page
stringÂ
optional
search
stringÂ
optional
sort
stringÂ
optional
order
stringÂ
optional
Responses
Modified at 2025-04-15 08:51:15