Get All Product Tags
GET/pcm/tags
Retrieves all product tags for a store. A store can view the tags associated with the organization to which the store belongs. However, an organization can only view the tags associated with the organization.
Responses
- 200
- 400
- 404
- 422
- 500
Returns all the product tags.
- application/json
- Schema
- Example (from schema)
- list-tags
Schema
- Array [
- ]
data object[]
An array of tags.
A unique identifier generated when a tag is created.
Possible values: [tag
]
This represents the type of resource object being returned. Always tag
.
attributes object
The text value of the tag.
meta object
A unique request ID is generated when a tag is created.
The date and time a tag is created.
The date and time a tag is updated.
Possible values: [store
, organization
]
The owner of a resource, either organization
or store
.
meta object
results object
Contains the results for the entire collection.
Total number of results for the entire collection.
{
"data": [
{
"id": "string",
"type": "tag",
"attributes": {
"value": "string"
},
"meta": {
"x_request_id": "string",
"created_at": "2020-09-22T09:00:00",
"updated_at": "2020-09-22T09:00:00",
"owner": "store"
}
}
],
"meta": {
"results": {
"total": 2
}
}
}
Get all tags
{
"data": [
{
"type": "tag",
"id": "a88aac35-54de-40c2-bb4b-f1c57624db27",
"attributes": {
"value": "shirts"
},
"meta": {
"created_at": "2024-03-20T15:56:40.014Z",
"owner": "store",
"updated_at": "2024-03-20T15:56:40.014Z"
}
},
{
"type": "tag",
"id": "6782e020-fefd-431e-9dea-b59d249c2c5e",
"attributes": {
"value": "shoes"
},
"meta": {
"created_at": "2024-03-20T15:56:40.014Z",
"owner": "store",
"updated_at": "2024-03-20T15:56:40.014Z"
}
}
],
"meta": {
"results": {
"total": 2
}
}
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- bad-request
Schema
- Array [
- ]
errors undefined[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Bad Request",
"detail": "Could not parse the supplied filter",
"status": "400"
}
]
}
Bad Request. Not Found.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors undefined[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Not Found",
"status": "404"
}
]
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- failed-validation
Schema
- Array [
- ]
errors undefined[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Failed Validation",
"status": "422",
"detail": "<XYZ> can not be empty"
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors undefined[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Internal request ID.
Additional supporting meta data for the error.
{
"errors": [
{
"status": "500",
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"status": "500",
"title": "Internal Server Error",
"detail": "There was an internal server error, you can report with your request id.",
"request_id": "635da56d-75a1-43cd-b696-7ab119756b3a"
}
]
}