compute
POST /v1/compute/eligibility
Submit an organisation for verification.
Аутентификација
Пошаљите API кључ као bearer токен. Кључ мора имати дозволу billing.payment.manage; кључ без ње се одбија уз 403, а не 404.
Где се уноси ID ваше организације
Ова крајња тачка прихвата org_id као параметар упита. Изоставите га и позив ће обухватити цело подстабло вашег закупа; пошаљите га да бисте сузили позив на једну организацију.
Идентификатор ваше организације се налази на екрану са API кључевима на вашој контролној табли, поред самог кључа. То је исти идентификатор у сваком позиву који упутите.
Испробајте
Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.
curl -X POST https://api.zinndigital.com/v1/compute/eligibility \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "legal_name": <string>, "country": <string>, "abuse_contact_email": <string> }'Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли
Детаљи
Moves the organisation to pending for a human to review. 202, because the answer is a decision somebody makes rather than something this call performs. ⛔ An organisation that is already verified, or already pending, is refused 422 rather than silently re-queued: resubmitting would otherwise let a customer suspend their own verification, and let a rejected applicant re-enter the queue for ever. Requires billing.payment.manage — ⛔ not billing.entitlement.manage, a staff key no customer role holds, which is what this said until D10689.
Параметри
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
org_id (query) | Uuid | Не | — |
Тело захтева
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
legal_name | string | Да | — |
country | string | Да | — |
abuse_contact_email | string | Да | — |
company_number | string | Не | — |
intended_use | string | Не | — |
Одговор
| Назив | Тип | Обавезно | Шта је ово |
|---|---|---|---|
state | string<not_requested, pending, verified, rejected> | Да | The ID check's own state. ⛔ Four states, not a boolean: not_requested and rejected differ completely — one is "tell us who you are" (only when id_check_required), the other… |
blockers | string<no_owner, email_unverified, card_required, id_check_required, id_check_pending, id_check_rejected>[] | Да | What stands between the account and a server, in the order it can act on them. Empty exactly when may_order is true. |
email_verified | boolean | Да | Whether an owner of the organisation has a verified email address. |
card_verified | boolean | Да | Whether a card confirmed with the issuer (a succeeded setup) is on the account, in date and chargeable. A PayPal agreement or a crypto balance is not a card. |
has_owner | boolean | Да | Whether the organisation has an owner membership at all. A platform or reseller-created organisation can have none, and the first-server steps are about an owner — so no_owner… |
id_check_required | boolean | Да | Whether an ID check stands between the account and its next server. False for almost every account — it is raised only by a fraud signal or by staff. |
id_document_uploaded | boolean | Да | Whether an identity document has been registered for the check. |
standing | string<new, established, custom> | Да | Which limits apply. new until the account is 30 days old and has paid for something; custom when staff set this account's limits. |
limits | ComputeLimits | Да | What one account may run at once on our cloud. |
usage | ComputeUsage | Да | What the account runs now, measured the way ComputeLimits bounds it. |
may_order | boolean | Да | True exactly when blockers is empty. Read this rather than re-deriving it. |
legal_name | string | Да | The legal name of whoever is responsible for the machines. |
country | string | Да | ISO-3166-1 alpha-2 country of the person or the incorporation. |
company_number | string | Да | Company registration number, or "" for an individual — a real answer. |
abuse_contact_email | string | Да | A monitored address an abuse report can be forwarded to and answered from. We are the account holder of record, so a complaint reaches us first and has to reach the customer… |
intended_use | string | Да | What the customer says the machines are for, in their own words. |
rejection_reason | string | Да | Shown to the customer verbatim when state is rejected. |
submitted_at | string | Да | — |
reviewed_at | string | Да | — |
Грешке које ова крајња тачка може вратити
401 · 403 · 422 · 429