GET Get Products Types
Base URLs
Demo URL: https://demoapi.openletterconnect.com/api/v1
Production URL: https://api.openletterconnect.com/api/v1
{{base_url}}/products/types
Description
This endpoint is used to retrieve a list of product types available in the system. The response will include details about each product type, such as its ID, name, and associated sizes. This information is useful for users looking to understand the different types of products offered and their specifications.
AUTHORIZATION
Bearer Token
- Token:
{{jwt_token}}
Example Request
curl --location -g '{{base_url}}/products/types' \
--data ''
Example Response
{
"message": "Success",
"data": [
{
"id": "9",
"productType": "Bi-Fold Self-Mailers",
"size": [
{
"id": "9",
"size": "6x18"
}
]
},
{
"id": "5",
"productType": "Personal Letters",
"size": [
{
"id": "5",
"size": "5.5x8.5"
}
]
},
{
"id": "13",
"productType": "Postcards",
"size": [
{
"id": "13",
"size": "4x6"
},
{
"id": "15",
"size": "6x11"
},
{
"id": "14",
"size": "6x9"
}
]
},
{
"id": "1",
"productType": "Professional Letters",
"size": [
{
"id": "1",
"size": "8.5x11"
}
]
},
{
"id": "16",
"productType": "Real Penned Letter",
"size": [
{
"id": "16",
"size": "5.5x8.5"
}
]
},
{
"id": "11",
"productType": "Tri-Fold Self-Mailers",
"size": [
{
"id": "11",
"size": "9x12"
}
]
}
]
}