List Option Templates
GET
/products/options/templatesThis endpoint allows you to list all option templates related to the product.
Request
Use with=details
to fetch list of product option templates with details
object.
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique identifier of the options template.
Option name.
Type of product option.
The manner in which product choices or attributes are presented.
Options presented in different languages based on the store's enabled locales.
For a better response behavior as well as maintain the best security level, All retrieving API endpoints use a mechanism to retrieve data in chunks called pagination. Pagination working by return only a specific number of records in each response, and through passing the page number you can navigate the different pages.
Number of returned results.
Number of all results.
Number of results per page.
Number of current page.
Number of total pages.
Array of linkes to next and previous pages.
{
"status": 200,
"success": true,
"data": [
{
"id": 1473353380,
"name": "اللون",
"type": "radio",
"display_type": "color",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "color"
}
}
}
],
"pagination": {
"count": 1,
"total": 15,
"perPage": 1,
"currentPage": 1,
"totalPages": 15,
"links": {
"next": "https://s.salla.test/admin/v2/options-template?page=2"
}
}
}