GET
/store/{product_group} Retrieve product group details and products
Returns detailed information about a specific product group and its associated products.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
product_group* | string | path | The URL identifier of the product group to retrieve |
Response
200
404
groupobjectidintegernamestringurlstringcartstringtaglinestringlowest_periodstringmonthlyquarterlysemiannuallyannuallybienniallytrienniallyquarterlystringsemiannuallystringannuallystringbienniallystringtrienniallystringqsetupfeestringssetupfeestringasetupfeestringbsetupfeestringtsetupfeestringcreated_atstringupdated_atstringproductsarrayRequest
curl -X GET "https://api.royalehosting.net/store/{product_group}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/store/{product_group}", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/store/{product_group}",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"group": {
"id": 0,
"name": "string",
"url": "string",
"cart": "string",
"tagline": "string",
"lowest_period": "monthly",
"quarterly": "string",
"semiannually": "string",
"annually": "string",
"biennially": "string",
"triennially": "string",
"qsetupfee": "string",
"ssetupfee": "string",
"asetupfee": "string",
"bsetupfee": "string",
"tsetupfee": "string",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
"products": [
{
"id": 0,
"name": "string",
"description": "string",
"price": "string",
"setupfee": "string",
"featured": true,
"order": 0,
"cycle": "monthly",
"instock": true,
"field1": "string",
"field2": "string",
"field3": "string",
"field4": "string",
"field5": "string",
"field6": "string",
"field7": "string",
"field8": "string"
}
]
}