get https://{accountName}.{environment}.com.br/api/catalog_system/pvt/products/GetProductAndSkuIds
Retrieves the IDs of all products and SKUs from a specific category by its category ID.
Query params:
Attribute | Type | Description |
---|---|---|
categoryId | integer | Replace this variable with the category ID that you need retrieves Product and SKU |
_from | integer | Insert the number that will start the request result |
_to | integer | Insert the number that will end the request result |
Response object has the following properties:
Attribute | Type | Description |
---|---|---|
data | object | Object compose by Product IDs and SKU IDs, where the parent ID is from Products and the SKU IDs are the Child IDs |
Response body example:
{
"data": {
"3": [
5
],
"8": [
310118453,
310118459,
310118463
],
"2": [
3,
310118450,
310118451,
4,
8
],
"9": [
310118454,
310118455,
310118456,
310118457,
310118458,
310118460,
310118461,
310118462,
310118464
],
"12": [
310118490
],
"6": [],
"7": [
310118452
],
"1": [
1,
123456,
310118449,
310118489,
7,
2
],
"5": [
310118465
],
"4": [
310118448
],
"10": [],
"11": []
},
"range": {
"total": 12,
"from": 1,
"to": 20
}
}