List orders
GET
client/orders
read
access_orders
Returns a list of orders placed by the client
Query-Parameter
Feld | Datentyp | Beschreibung |
---|---|---|
recent | bool | Only show orders from last days, as specified in recent_days. Example: true |
recent_days | int | Determine how many days mean recent. Defaults to 7. Example: 3 |
curl -X GET \
-G 'https://api.pph.sh/client/orders' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
-G 'https://api.pph.sh/client/orders' \
-H 'Content-Type=application/json' \
-H 'Accept=application/json' \
-H 'Accept-Language=de; *;q=0.5' | jq
{ "data": [ { "id": 74457, "ordernum": 3162573802, "date": "2023-01-31T22:24:53.000000Z", "promocode": "PPH10", "amount": 8.26, "invoiceid": false, "cancelled": false, "active": true, "status_label": "Ausgeliefert", "items_provisioned": true, "hostings": [ { "id": 41986, "product_name": "KVM Root Server", "product_group": "AMD SSD KVM vServer", "label": "", "module": "virtualizor", "package_id": 269, "order_id": 74457, "ipaddress": "45.145.225.180", "active": true, "suspended": false, "domain": "92351-62462.pph-server.de", "status": "Active", "billingcycle": "Monthly", "created_at": "2023-01-30T23:00:00.000000Z", "next_due_date": "2023-03-02T23:00:00.000000Z", "next_due_in": 28, "next_due_human": "in 1 Mon.", "amount": 8.26, "firstpaymentamount": 8.26, "has_invoice": true, "has_unpaid_invoices": false, "cancellation": false, "promotion": { "code": "PPH10", "label": "PPH10 = wiederkehrend 10%", "recurring": true, "recurring_for": true, "value": 10, "type": "Percentage" }, "management_url": "https:\/\/api.pph.sh\/client\/webinterface?hosting=41986&tab=main", "options": [ { "config": { "id": 296, "label": "Betriebssystem", "default": 910 }, "option": { "id": 910, "label": "Linux" } }, { "config": { "id": 293, "label": "Prozessor", "default": 880 }, "option": { "id": 880, "label": "2 Kerne garantiert" } }, { "config": { "id": 294, "label": "RAM", "default": 985 }, "option": { "id": 985, "label": "2GB RAM garantiert" } }, { "config": { "id": 295, "label": "NVMe SSD Speicher", "default": 912 }, "option": { "id": 912, "label": "50GB SSD" } }, { "config": { "id": 297, "label": "Netzwerkgeschwindigkeit", "default": 927 }, "option": { "id": 927, "label": "bis zu 600 MBit\/s" } }, { "config": { "id": 310, "label": "IP-Adressen", "default": 990 }, "option": { "id": 991, "label": "2 IP Adressen" } } ] } ], "domains": [], "upgrades": [] } ], "links": { "first": "https:\/\/fsn-01.api.pph.sh\/client\/orders?page=1", "last": "https:\/\/fsn-01.api.pph.sh\/client\/orders?page=1", "prev": null, "next": null }, "meta": { "current_page": 1, "from": 1, "last_page": 1, "links": [ { "url": null, "label": "« Previous", "active": false }, { "url": "https:\/\/fsn-01.api.pph.sh\/client\/orders?page=1", "label": "1", "active": true }, { "url": null, "label": "Next »", "active": false } ], "path": "https:\/\/fsn-01.api.pph.sh\/client\/orders", "per_page": 15, "to": 1, "total": 1 } }