Information about next bonus event
GET
public/bonus
Response-Params
Feld | Datentyp | Beschreibung |
---|---|---|
bonus.name | string | The bonus event name |
bonus.start | string | The bonus event start date |
bonus.end | string | The bonus event end date |
bonus.active | boolean | Is the bonus event active |
bonus.handler | string | The bonus event handler class |
bonus.description | string | The bonus event description |
bonus.banner | string | The bonus event banner |
curl -X GET \
-G 'https://api.pph.sh/public/bonus' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/bonus' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{ "bonus": { "name": "Black Friday 2022", "start": "2022-11-25 00:00", "end": "2022-11-27 23:59:59", "active": false, "start_in": "vor 2 Monaten", "description": "Ab 15\u20ac Aufladung erh\u00e4ltst Du bis 27.11.2022 23:59 Extra-Guthaben!", "banner": "https:\/\/uploads.prepaid-hoster.de\/wb44v3WBfq.png", "resources": { "vionity": "https:\/\/uploads.prepaid-hoster.de\/wb44v3WBfq.png", "faq": "https:\/\/uploads.prepaid-hoster.de\/xToLwSN4UK.png", "web": "https:\/\/uploads.prepaid-hoster.de\/VF6QAMTd1O.png" } } }
Calculate bonus amount
GET
public/bonus/credit
Body-Parameter
Feld | Datentyp | Beschreibung |
---|---|---|
amount | float | The amount to calculate the bonus for. Example: 15 required |
Response-Params
Feld | Datentyp | Beschreibung |
---|---|---|
extra | float | The bonus amount |
curl -X GET \
-G 'https://api.pph.sh/public/bonus/credit' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/public/bonus/credit' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{ "bonus": false }