ProductTagsResource
This class is used to send requests to Store Product Tag API Routes. All its method
are available in the JS Client under the medusa.productTags
property.
Product tags are string values that can be used to filter products by. Products can have more than one tag, and products can share tags.
Methods
list
Retrieve a list of product tags. The product tags can be filtered by fields such as id
or q
passed in the query
parameter. The product tags can also be sorted or paginated.
Example
To list product tags:
By default, only the first 20
records are retrieved. You can control pagination by specifying the limit
and offset
properties:
Parameters
Filters and pagination configurations to apply on the retrieved product tags.
customHeaders
Record<string, any>RequiredCustom headers to attach to the request.
Default: {}
Returns
ResponsePromise
ResponsePromise<StoreProductTagsListRes>RequiredResolves to the list of product tags with pagination fields.
ResponsePromise
ResponsePromise<StoreProductTagsListRes>RequiredWas this section helpful?