Available products
GET
public/products
Gets all available products.
Query-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| gid | int | Filter by group id. |
curl -X GET \
-G 'https://api.pph.sh/public/products' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/products' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{
"data": [
{
"id": 269,
"name": "KVM Root Server",
"group": "AMD SSD KVM vServer",
"group_id": 64,
"general_promocode": "GANZSCHOENEPYC20",
"promocode_info": {
"code": "GANZSCHOENEPYC20",
"label": "GANZSCHOENEPYC20 = wiederkehrend 20%",
"recurring": true,
"recurring_for": true,
"value": 20,
"type": "Percentage"
},
"promotion": false,
"price_range": {
"min": 6.25,
"max": 59.55,
"same": false
},
"availability": {
"status": "available",
"wait": false,
"meta": {
"queue": null,
"debug": 260
}
},
"orderquantity": {
"count": 405,
"from": "2022-10-20",
"to": "2022-11-20",
"type": "last_30_days",
"group": "AMD SSD KVM vServer"
},
"has-options": true,
"child_products": {
"plesk": [
{
"id": 237,
"name": "Plesk Web Admin",
"group": "Plesk",
"group_id": 57,
"promotion": false,
"price_range": {
"min": 8,
"max": 8,
"same": true
},
"availability": {
"status": "undefined",
"wait": false,
"meta": {
"queue": null,
"debug": null
}
},
"orderquantity": {
"count": 15,
"from": "2022-10-20",
"to": "2022-11-20",
"type": "last_30_days",
"group": "Plesk"
},
"has-options": false,
"benefits": [
{
"heading": "10 Domains",
"description": null
}
],
"description": [],
"verification_required": false
},
{
"id": 231,
"name": "Plesk Web Pro",
"group": "Plesk",
"group_id": 57,
"promotion": false,
"price_range": {
"min": 13.5,
"max": 13.5,
"same": true
},
"availability": {
"status": "undefined",
"wait": false,
"meta": {
"queue": null,
"debug": null
}
},
"orderquantity": {
"count": 15,
"from": "2022-10-20",
"to": "2022-11-20",
"type": "last_30_days",
"group": "Plesk"
},
"has-options": false,
"benefits": [
{
"heading": "30 Domains",
"description": null
},
{
"heading": "Abo-Management",
"description": null
}
],
"description": [],
"verification_required": false
},
{
"id": 228,
"name": "Plesk Web Host ",
"group": "Plesk",
"group_id": 57,
"promotion": false,
"price_range": {
"min": 24.9,
"max": 24.9,
"same": true
},
"availability": {
"status": "undefined",
"wait": false,
"meta": {
"queue": null,
"debug": null
}
},
"orderquantity": {
"count": 15,
"from": "2022-10-20",
"to": "2022-11-20",
"type": "last_30_days",
"group": "Plesk"
},
"has-options": false,
"benefits": [
{
"heading": "Unbegrenzt Domains",
"description": null
},
{
"heading": "Abo-Management",
"description": null
},
{
"heading": "Reseller Management",
"description": null
}
],
"description": [],
"verification_required": false
}
]
},
"benefits": [
{
"heading": "KVM Virtualisierung",
"description": "Kernel-based Virtual Machine - Vollvirtualisierung ohne Sharing dank dedizierten Ressourcen"
},
{
"heading": "Kostenloses Backup",
"description": "Du kannst jederzeit ein vollst\u00e4ndiges Backup deines KVM Servers anlegen und wiederherstellen"
},
{
"heading": "Gameserver Manager",
"description": "Wenn Du ein Debian-basiertes Linux installierst, profitierst Du vom kostenlosen Gameserver Manager!"
},
{
"heading": "IPv4 & IPv6",
"description": "Neben einer statischen IPv4 Adresse kannst Du jederzeit ein kostenloses IPv6 Subnetz anfordern."
},
{
"heading": "Windows & Linux",
"description": "Wechseln des Betriebssystems mit wenigen Klicks m\u00f6glich"
},
{
"heading": "VNC Zugriff",
"description": "Zugriff auf VNC via Web Browser per Klick."
},
{
"heading": "App Installer",
"description": "H\u00e4ufig verwendete Programme, wie Apache, PHP, MySQL im handumdrehen automatisch installieren."
},
{
"heading": "SSH Key Manager",
"description": "\u00d6ffentliche Schl\u00fcssel-Verwaltung und bei Neuinstallation direkt ausw\u00e4hlen"
},
{
"heading": "Fair Use Traffic",
"description": "Traffic bis 1,5 TB stellen gar kein Problem dar."
},
{
"heading": "DDoS Schutz & Firewall",
"description": ""
},
{
"heading": "Upgrade & Downgrade",
"description": ""
},
{
"heading": "99.9% Uptime Garantie",
"description": ""
}
],
"description": {
"processor": {
"label": "Prozessor",
"value": "AMD EPYC 7543P"
},
"frequency": {
"label": "Frequenz",
"value": "2.8"
},
"virt": {
"label": "Virtualisierung",
"value": "KVM"
},
"cores": {
"label": "Kerne",
"value": "2 - 12",
"configurable": true
},
"diskspace": {
"label": "NVMe SSD Speicher",
"value": "50 - 400",
"unit": "GB",
"configurable": true
},
"backups": {
"label": "Backup",
"value": "Vollst\u00e4ndige Backups",
"unit": ""
},
"diskspace_vendor": {
"label": "Festplatten Hersteller",
"value": "Samsung",
"unit": ""
},
"memory": {
"label": "Arbeitsspeicher",
"value": "2 - 32",
"unit": "GB",
"configurable": true
},
"memory_vendor": {
"label": "Arbeitsspeicher Hersteller",
"value": "Samsung",
"unit": ""
},
"memory_speed": {
"label": "Arbeitsspeicher-Geschwindigkeit",
"value": "3200",
"unit": "MHz"
},
"memory_type": {
"label": "Arbeitsspeicher-Typ",
"value": "DDR4",
"unit": ""
},
"download_speed": {
"label": "Download-Geschwindigkeit",
"value": "600 - 600",
"unit": "MBit\/s",
"configurable": true
},
"upload_speed": {
"label": "Upload-Geschwindigkeit",
"value": "600 - 600",
"unit": "MBit\/s",
"configurable": true
},
"network_speed": {
"label": "Bandbreite",
"value": 500,
"unit": "MBit\/s"
},
"traffic": {
"label": "Traffic-Begrenzung",
"value": 1500,
"unit": "GB"
},
"webinterface": {
"label": "Webinterface",
"value": "Cloud & Gameserver"
},
"app-installer": {
"label": "App-Installer",
"value": "Web-Utilities, Sinusbot, ..."
},
"support": {
"label": "Profi-Support",
"value": "inklusive"
}
},
"verification_required": false
}
]
}
Single product
GET
public/products/:id
Returns information about a single product.
URL-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| id | The | product id. Example: 269 |
curl -X GET \
-G 'https://api.pph.sh/public/products/<id>' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/products/<id>' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{
"data": {
"id": 269,
"name": "KVM Root Server",
"group": "AMD SSD KVM vServer",
"group_id": 64,
"general_promocode": "PPH10",
"promocode_info": {
"code": "PPH10",
"label": "PPH10 = wiederkehrend 10%",
"recurring": true,
"recurring_for": true,
"value": 10,
"type": "Percentage"
},
"promotion": false,
"historic_min": 0,
"price_range": {
"min": 6.68,
"max": 70.41,
"same": false
},
"availability": {
"status": "available",
"wait": false,
"meta": {
"queue": 0
}
},
"orderquantity": {
"count": 491,
"from": "2023-01-02",
"to": "2023-02-02",
"type": "last_30_days",
"group": "AMD SSD KVM vServer"
},
"has-options": true,
"child_products": {
"plesk": [
{
"id": 237,
"name": "Plesk Web Admin",
"group": "Plesk",
"group_id": 57,
"promotion": false,
"historic_min": 0,
"price_range": {
"min": 9.5,
"max": 9.5,
"same": true
},
"availability": {
"status": "undefined",
"wait": false,
"meta": {
"queue": 0
}
},
"orderquantity": {
"count": 19,
"from": "2023-01-02",
"to": "2023-02-02",
"type": "last_30_days",
"group": "Plesk"
},
"has-options": false,
"benefits": [
{
"heading": "10 Domains",
"description": null
}
],
"description": [],
"verification_required": false
},
{
"id": 231,
"name": "Plesk Web Pro",
"group": "Plesk",
"group_id": 57,
"promotion": false,
"historic_min": 0,
"price_range": {
"min": 16.9,
"max": 16.9,
"same": true
},
"availability": {
"status": "undefined",
"wait": false,
"meta": {
"queue": 0
}
},
"orderquantity": {
"count": 19,
"from": "2023-01-02",
"to": "2023-02-02",
"type": "last_30_days",
"group": "Plesk"
},
"has-options": false,
"benefits": [
{
"heading": "30 Domains",
"description": null
},
{
"heading": "Abo-Management",
"description": null
}
],
"description": [],
"verification_required": false
},
{
"id": 228,
"name": "Plesk Web Host ",
"group": "Plesk",
"group_id": 57,
"promotion": false,
"historic_min": 0,
"price_range": {
"min": 31.9,
"max": 31.9,
"same": true
},
"availability": {
"status": "undefined",
"wait": false,
"meta": {
"queue": 0
}
},
"orderquantity": {
"count": 19,
"from": "2023-01-02",
"to": "2023-02-02",
"type": "last_30_days",
"group": "Plesk"
},
"has-options": false,
"benefits": [
{
"heading": "Unbegrenzt Domains",
"description": null
},
{
"heading": "Abo-Management",
"description": null
},
{
"heading": "Reseller Management",
"description": null
}
],
"description": [],
"verification_required": false
}
]
},
"benefits": [
{
"heading": "KVM Virtualisierung",
"description": "Kernel-based Virtual Machine - Vollvirtualisierung ohne Sharing dank dedizierten Ressourcen"
},
{
"heading": "Kostenloses Backup",
"description": "Du kannst jederzeit ein vollst\u00e4ndiges Backup deines KVM Servers anlegen und wiederherstellen"
},
{
"heading": "Gameserver Manager",
"description": "Wenn Du ein Debian-basiertes Linux installierst, profitierst Du vom kostenlosen Gameserver Manager!"
},
{
"heading": "IPv4 & IPv6",
"description": "Neben einer statischen IPv4 Adresse kannst Du jederzeit ein kostenloses IPv6 Subnetz anfordern."
},
{
"heading": "Windows & Linux",
"description": "Wechseln des Betriebssystems mit wenigen Klicks m\u00f6glich"
},
{
"heading": "VNC Zugriff",
"description": "Zugriff auf VNC via Web Browser per Klick."
},
{
"heading": "App Installer",
"description": "H\u00e4ufig verwendete Programme, wie Apache, PHP, MySQL im handumdrehen automatisch installieren."
},
{
"heading": "SSH Key Manager",
"description": "\u00d6ffentliche Schl\u00fcssel-Verwaltung und bei Neuinstallation direkt ausw\u00e4hlen"
},
{
"heading": "Fair Use Traffic",
"description": "Traffic bis 1,5 TB stellen gar kein Problem dar."
},
{
"heading": "DDoS Schutz & Firewall",
"description": ""
},
{
"heading": "Upgrade & Downgrade",
"description": ""
},
{
"heading": "99.9% Uptime Garantie",
"description": ""
}
],
"description": {
"processor": {
"label": "Prozessor",
"value": "AMD EPYC 7543P"
},
"frequency": {
"label": "Frequenz",
"value": "2.8"
},
"virt": {
"label": "Virtualisierung",
"value": "KVM"
},
"cores": {
"label": "Kerne",
"value": "2 - 12",
"configurable": true
},
"diskspace": {
"label": "NVMe SSD Speicher",
"value": "50 - 500",
"unit": "GB",
"configurable": true
},
"backups": {
"label": "Backup",
"value": "Vollst\u00e4ndige Backups",
"unit": ""
},
"diskspace_vendor": {
"label": "Festplatten Hersteller",
"value": "Samsung",
"unit": ""
},
"memory": {
"label": "Arbeitsspeicher",
"value": "2 - 32",
"unit": "GB",
"configurable": true
},
"memory_vendor": {
"label": "Arbeitsspeicher Hersteller",
"value": "Samsung",
"unit": ""
},
"memory_speed": {
"label": "Arbeitsspeicher-Geschwindigkeit",
"value": "3200",
"unit": "MHz"
},
"memory_type": {
"label": "Arbeitsspeicher-Typ",
"value": "DDR4",
"unit": ""
},
"download_speed": {
"label": "Download-Geschwindigkeit",
"value": "600 - 600",
"unit": "MBit\/s",
"configurable": true
},
"upload_speed": {
"label": "Upload-Geschwindigkeit",
"value": "600 - 600",
"unit": "MBit\/s",
"configurable": true
},
"network_speed": {
"label": "Bandbreite",
"value": 1000,
"unit": "MBit\/s"
},
"traffic": {
"label": "Traffic-Begrenzung",
"value": 2500,
"unit": "GB"
},
"webinterface": {
"label": "Webinterface",
"value": "Cloud & Gameserver"
},
"app-installer": {
"label": "App-Installer",
"value": "Web-Utilities, Sinusbot, ..."
},
"support": {
"label": "Profi-Support",
"value": "inklusive"
}
},
"verification_required": false
}
}
Config Options
GET
public/products/:id/options
Returns all configurable options for a single product.
URL-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| id | The | product id. Example: 269 |
Query-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| pricing | bool | Whether to return options pricing. Example: true |
curl -X GET \
-G 'https://api.pph.sh/public/products/<id>/options' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/products/<id>/options' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{
"data": [
{
"id": 296,
"label": "Betriebssystem",
"default": 910,
"options": [
{
"id": 910,
"label": "Linux",
"pricing": {
"monthly": {
"setup": 0,
"value": 0
},
"quarterly": {
"setup": 0,
"value": 0
},
"semiannually": {
"setup": 0,
"value": 0
},
"annually": {
"setup": 0,
"value": 0
}
}
},
{
"id": 911,
"label": "Windows Server 2019 (Eval. Version)",
"pricing": {
"monthly": {
"setup": 0,
"value": 0
},
"quarterly": {
"setup": 0,
"value": 0
},
"semiannually": {
"setup": 0,
"value": 0
},
"annually": {
"setup": 0,
"value": 0
}
}
}
]
},
{
"id": 293,
"label": "Prozessor",
"default": 880,
"options": [
{
"id": 880,
"label": "2 Kerne garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 3.03
},
"quarterly": {
"setup": 0,
"value": 8.64
},
"semiannually": {
"setup": 0,
"value": 16.36
},
"annually": {
"setup": 0,
"value": 29.09
}
}
},
{
"id": 883,
"label": "4 Kerne garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 6.05
},
"quarterly": {
"setup": 0,
"value": 17.24
},
"semiannually": {
"setup": 0,
"value": 32.67
},
"annually": {
"setup": 0,
"value": 58.08
}
}
},
{
"id": 885,
"label": "6 Kerne garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 9.68
},
"quarterly": {
"setup": 0,
"value": 27.59
},
"semiannually": {
"setup": 0,
"value": 52.27
},
"annually": {
"setup": 0,
"value": 92.93
}
}
},
{
"id": 887,
"label": "8 Kerne garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 13.92
},
"quarterly": {
"setup": 0,
"value": 39.67
},
"semiannually": {
"setup": 0,
"value": 75.17
},
"annually": {
"setup": 0,
"value": 133.63
}
}
},
{
"id": 889,
"label": "10 Kerne garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 17.71
},
"quarterly": {
"setup": 0,
"value": 50.47
},
"semiannually": {
"setup": 0,
"value": 95.63
},
"annually": {
"setup": 0,
"value": 170.02
}
}
},
{
"id": 988,
"label": "12 Kerne garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 21.51
},
"quarterly": {
"setup": 0,
"value": 61.3
},
"semiannually": {
"setup": 0,
"value": 116.15
},
"annually": {
"setup": 0,
"value": 206.5
}
}
}
]
},
{
"id": 294,
"label": "RAM",
"default": 985,
"options": [
{
"id": 985,
"label": "2GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 1.65
},
"quarterly": {
"setup": 0,
"value": 4.7
},
"semiannually": {
"setup": 0,
"value": 8.91
},
"annually": {
"setup": 0,
"value": 15.84
}
}
},
{
"id": 892,
"label": "4GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 3.3
},
"quarterly": {
"setup": 0,
"value": 9.41
},
"semiannually": {
"setup": 0,
"value": 17.82
},
"annually": {
"setup": 0,
"value": 31.68
}
}
},
{
"id": 894,
"label": "6GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 4.95
},
"quarterly": {
"setup": 0,
"value": 14.11
},
"semiannually": {
"setup": 0,
"value": 26.73
},
"annually": {
"setup": 0,
"value": 47.52
}
}
},
{
"id": 895,
"label": "8GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 6.6
},
"quarterly": {
"setup": 0,
"value": 18.81
},
"semiannually": {
"setup": 0,
"value": 35.64
},
"annually": {
"setup": 0,
"value": 63.36
}
}
},
{
"id": 983,
"label": "10GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 8.25
},
"quarterly": {
"setup": 0,
"value": 23.51
},
"semiannually": {
"setup": 0,
"value": 44.55
},
"annually": {
"setup": 0,
"value": 79.2
}
}
},
{
"id": 897,
"label": "12GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 9.9
},
"quarterly": {
"setup": 0,
"value": 28.22
},
"semiannually": {
"setup": 0,
"value": 53.46
},
"annually": {
"setup": 0,
"value": 95.04
}
}
},
{
"id": 899,
"label": "16GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 13.2
},
"quarterly": {
"setup": 0,
"value": 37.62
},
"semiannually": {
"setup": 0,
"value": 71.28
},
"annually": {
"setup": 0,
"value": 126.72
}
}
},
{
"id": 984,
"label": "20GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 16.5
},
"quarterly": {
"setup": 0,
"value": 47.03
},
"semiannually": {
"setup": 0,
"value": 89.1
},
"annually": {
"setup": 0,
"value": 158.4
}
}
},
{
"id": 901,
"label": "24GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 19.8
},
"quarterly": {
"setup": 0,
"value": 56.43
},
"semiannually": {
"setup": 0,
"value": 106.92
},
"annually": {
"setup": 0,
"value": 190.08
}
}
},
{
"id": 989,
"label": "32GB RAM garantiert",
"pricing": {
"monthly": {
"setup": 0,
"value": 26.4
},
"quarterly": {
"setup": 0,
"value": 75.24
},
"semiannually": {
"setup": 0,
"value": 142.56
},
"annually": {
"setup": 0,
"value": 253.44
}
}
}
]
},
{
"id": 295,
"label": "NVMe SSD Speicher",
"default": 912,
"options": [
{
"id": 912,
"label": "50GB SSD",
"pricing": {
"monthly": {
"setup": 0,
"value": 2
},
"quarterly": {
"setup": 0,
"value": 5.7
},
"semiannually": {
"setup": 0,
"value": 10.8
},
"annually": {
"setup": 0,
"value": 19.2
}
}
},
{
"id": 904,
"label": "100GB SSD",
"pricing": {
"monthly": {
"setup": 0,
"value": 4
},
"quarterly": {
"setup": 0,
"value": 11.4
},
"semiannually": {
"setup": 0,
"value": 21.6
},
"annually": {
"setup": 0,
"value": 38.4
}
}
},
{
"id": 905,
"label": "150GB SSD",
"pricing": {
"monthly": {
"setup": 0,
"value": 6
},
"quarterly": {
"setup": 0,
"value": 17.1
},
"semiannually": {
"setup": 0,
"value": 32.4
},
"annually": {
"setup": 0,
"value": 57.6
}
}
},
{
"id": 906,
"label": "200GB SSD",
"pricing": {
"monthly": {
"setup": 0,
"value": 8
},
"quarterly": {
"setup": 0,
"value": 22.8
},
"semiannually": {
"setup": 0,
"value": 43.2
},
"annually": {
"setup": 0,
"value": 76.8
}
}
},
{
"id": 907,
"label": "400GB SSD",
"pricing": {
"monthly": {
"setup": 0,
"value": 16
},
"quarterly": {
"setup": 0,
"value": 45.6
},
"semiannually": {
"setup": 0,
"value": 86.4
},
"annually": {
"setup": 0,
"value": 153.6
}
}
},
{
"id": 916,
"label": "500 GB SSD",
"pricing": {
"monthly": {
"setup": 0,
"value": 20
},
"quarterly": {
"setup": 0,
"value": 57
},
"semiannually": {
"setup": 0,
"value": 108
},
"annually": {
"setup": 0,
"value": 192
}
}
}
]
},
{
"id": 297,
"label": "Netzwerkgeschwindigkeit",
"default": 927,
"options": [
{
"id": 927,
"label": "bis zu 600 MBit\/s",
"pricing": {
"monthly": {
"setup": 0,
"value": 0
},
"quarterly": {
"setup": 0,
"value": 0
},
"semiannually": {
"setup": 0,
"value": 0
},
"annually": {
"setup": 0,
"value": 0
}
}
}
]
},
{
"id": 310,
"label": "IP-Adressen",
"default": 990,
"options": [
{
"id": 990,
"label": "1 IP-Adresse",
"pricing": {
"monthly": {
"setup": 0,
"value": 0
},
"quarterly": {
"setup": 0,
"value": 0
},
"semiannually": {
"setup": 0,
"value": 0
},
"annually": {
"setup": 0,
"value": 0
}
}
},
{
"id": 991,
"label": "2 IP Adressen",
"pricing": {
"monthly": {
"setup": 0,
"value": 2.5
},
"quarterly": {
"setup": 0,
"value": 7.5
},
"semiannually": {
"setup": 0,
"value": 15
},
"annually": {
"setup": 0,
"value": 30
}
}
}
]
}
]
}
Availability
GET
public/products/:id/availability
URL-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| id | The | product id. Example: 269 |
curl -X GET \
-G 'https://api.pph.sh/public/products/<id>/availability' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/products/<id>/availability' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{
"data": {
"status": "available",
"wait": false,
"meta": {
"queue": 0
}
}
}
Order statistic
GET
public/products/:id/order-quantity
Returns the number of orders from a specific product
URL-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| id | The | product id. Example: 269 |
curl -X GET \
-G 'https://api.pph.sh/public/products/<id>/order-quantity' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/products/<id>/order-quantity' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{
"data": {
"count": 491,
"from": "2023-01-02",
"to": "2023-02-02",
"type": "last_30_days",
"group": "AMD SSD KVM vServer"
}
}
Availability per group
GET
public/products/group/:id/availability
Gets the availability of all products in a specific product group
URL-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| id | The | product group. Example: 64 |
curl -X GET \
-G 'https://api.pph.sh/public/products/group/<id>/availability' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/products/group/<id>/availability' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{
"data": {
"status": "available",
"wait": false,
"meta": {
"queue": 0
}
}
}
Order statistics per group
GET
public/products/group/:id/order-quantity
Get the number of orders from a specific product group
URL-Parameter
| Feld | Datentyp | Beschreibung |
|---|---|---|
| id | The | product group. Example: 64 |
curl -X GET \
-G 'https://api.pph.sh/public/products/group/<id>/order-quantity' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/products/group/<id>/order-quantity' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{
"data": {
"count": 491,
"from": "2023-01-02",
"to": "2023-02-02",
"type": "last_30_days",
"group": "AMD SSD KVM vServer"
}
}