reseller
GET /v1/reseller/services/{siteId}
One provisioned service.
Πισtoποίηση
Στείλτε ένα κλειδί API ως διακριτικό φορέα (bearer token). Το κλειδί πρέπει να διαθέτει το δικαίωμα reseller.view· ένα κλειδί που δεν το διαθέτει απορρίπτεται με 403, όχι 404.
Πού μπαίνει το αναγνωριστικό του οργανισμού σας
Αυτό το τελικό σημείο δέχεται την παράμετρο org_id ως παράμετρο ερωτήματος. Παραλείψτε την και η κλήση καλύπτει ολόκληρο το υποδέντρο μίσθωσής σας· στείλτε την για να περιορίσετε την κλήση σε έναν οργανισμό.
Το αναγνωριστικό του οργανισμού σας βρίσκεται στην οθόνη των κλειδιών API στον πίνακα ελέγχου σας, δίπλα στο ίδιο το κλειδί. Είναι το ίδιο αναγνωριστικό σε κάθε κλήση που πραγματοποιείτε.
Δοκιμάστε το
Ατικatastήstε ό,τι βρίskεtai μέσα σe γώniaδeς μe τis δikές sas timές, kai to placeholder klεidioύ μe éna klεidi apó ton pinaka ελέgchou sas.
curl -X GET https://api.zinndigital.com/v1/reseller/services/{siteId} \
-H "Authorization: Bearer zdk_live_…"Συνδεθήκατε; Η κονσόλα API στον πίνακα ελέγχου σας συμπληρώνει το πραγματικό αναγνωριστικό του οργανισμού σας και το δικό σας κλειδί, και εκτελεί το αίτημα στο ζωντανό API, ώστε να μπορείτε να δείτε την πραγματική απόκριση. Ανοίξτε αυτό το τελικό σημείο στην κονσόλα API
Λεπτομέρειες
The same row listResellerServices returns, for one site. A site outside your client subtree is a 404, never a 403 — so this is not an existence oracle. Requires reseller.view.
Παράμετροι
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
siteId (path) | Uuid | Ναι | Site ID (UUIDv7). |
org_id (query) | Uuid | Όχι | Which of your organizations this applies to. Required only when you belong to more than one here. |
Απάντηση
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
site_id | Uuid | Ναι | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
client_org_id | Uuid | Ναι | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
client_org_name | string | Ναι | — |
primary_domain | string | Ναι | — |
name | string | Όχι | — |
status | SiteStatus | Ναι | A site's lifecycle state (docs/04 §3). A newly created site is pending until the provisioning workflow picks it up; deleted is terminal. restricted and quarantined are the… |
product_line | object | Όχι | — |
plan_code | object | Όχι | — |
plan_name | object | Όχι | — |
held_by_reseller | boolean | Όχι | True when the current suspension was placed through this surface, which is the only case unsuspendResellerService will release. A site suspended by the abuse desk reports false… |
pending_deletion_at | object | Όχι | When a scheduled deletion falls due, or null. |
sell_amount_minor | object | Όχι | What YOU charge for this plan, in minor units of sell_currency — your own price-list row if you have authored one, otherwise our list price with your default markup applied.… |
sell_currency | object | Όχι | — |
created_at | string | Ναι | — |
disk_used_bytes | object | Όχι | Null when the hosting platform has no usage to report for this site. |
bandwidth_used_bytes | object | Όχι | Outbound bandwidth this billing period, or null. |
usage_measured_at | object | Όχι | When the reading was taken. Null alongside null usage — so "we have not measured this" is never mistaken for "it used nothing" (§2.44). |
Σφάλματα που μπορεί να επιστρέψει αυτό το τελικό σημείο
401 · 403 · 404 · 429