packages (variants). Pagination counts products, not packages. Use the sku of a package whencountries lists every country the package covers, even if you filtered by just one.curl --location --globoff '/api/v1/packages?page=1&per_page=15&filter[country]=ES&filter[type]=local' \
--header 'Authorization: Bearer <token>'{
"data": [
{
"product_id": 118,
"name": "Spain",
"type": "local",
"packages": [
{
"sku": "ESIM-ES-1GB-7D",
"package_name": "Spain 1GB 7 Days",
"price": "4.50",
"currency": "EUR",
"is_unlimited": false,
"speed": "4G/5G",
"duration": 7,
"durationUnit": "DAY",
"volume": "1 GB",
"countries": [
"ES"
]
}
]
}
],
"links": {
"first": "https://api.example/api/v1/packages?page=1",
"last": "https://api.example/api/v1/packages?page=4",
"prev": null,
"next": "https://api.example/api/v1/packages?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"to": 1,
"last_page": 4,
"per_page": 1,
"total": 4,
"path": "https://api.example/api/v1/packages"
}
}