get https://app.ecwid.com/api/v3//products/sort?parentCategory=
Get order of products inside a specific category. Use parentCategory=0
to get products inside the "Store front page" category.
Access scopes
Requires the following access scope: read_catalog
Response
A JSON object with the following fields:
Product
Field | Type | Description |
---|---|---|
sortedIds | array<number> | An array of products in their consecutive order |
Errors
In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description
HTTP codes
HTTP Status | Meaning | Code (optional) |
---|---|---|
400 | Wrong request | |
500 | Cannot get product order because of an error on the server |
Error response body (optional)
Field | Type | Description |
---|---|---|
errorMessage | string | Error message |