compute

POST /v1/compute/eligibility

Submit an organisation for verification.

Све compute крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите 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_namestringДа—
countrystringДа—
abuse_contact_emailstringДа—
company_numberstringНе—
intended_usestringНе—

Одговор

НазивТипОбавезноШта је ово
statestring<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…
blockersstring<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_verifiedbooleanДаWhether an owner of the organisation has a verified email address.
card_verifiedbooleanДа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_ownerbooleanДа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_requiredbooleanДа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_uploadedbooleanДаWhether an identity document has been registered for the check.
standingstring<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.
limitsComputeLimitsДаWhat one account may run at once on our cloud.
usageComputeUsageДаWhat the account runs now, measured the way ComputeLimits bounds it.
may_orderbooleanДаTrue exactly when blockers is empty. Read this rather than re-deriving it.
legal_namestringДаThe legal name of whoever is responsible for the machines.
countrystringДаISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringДаCompany registration number, or "" for an individual — a real answer.
abuse_contact_emailstringДа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_usestringДаWhat the customer says the machines are for, in their own words.
rejection_reasonstringДаShown to the customer verbatim when state is rejected.
submitted_atstringДа—
reviewed_atstringДа—

Грешке које ова крајња тачка може вратити

401 · 403 · 422 · 429