compute

POST /v1/compute/eligibility

Submit an organisation for verification.

Tüm compute uç noktaları

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar billing.payment.manage iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Kurum kimliğinizin yazılacağı yer

Bu uç nokta, org_id parametresini bir sorgu parametresi olarak alır. Bu parametreyi dışarıda bırakırsanız çağrı tüm kiracı alt ağacınızı kapsar; çağrıyı tek bir kuruluşa daraltmak için gönderin.

Kuruluş kimliğiniz (id), kontrol panelinizdeki API anahtarları ekranında, anahtarın hemen yanında yer alır. Yaptığınız her çağrıda aynı kimlik kullanılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

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> }'

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

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.

Parametreler

AdTürZorunluNe olduğu
org_id (query)UuidHayır

İstek gövdesi

AdTürZorunluNe olduğu
legal_namestringEvet
countrystringEvet
abuse_contact_emailstringEvet
company_numberstringHayır
intended_usestringHayır

Yanıt

AdTürZorunluNe olduğu
statestring<not_requested, pending, verified, rejected>Evet⛔ Four states, not a boolean. `not_requested` and `rejected` both refuse an order and the customer's next action differs completely: one is "tell us who you are", the other is "…
may_orderbooleanEvetTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringEvetThe legal name of whoever is responsible for the machines.
countrystringEvetISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringEvetCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringEvetA 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 wit…
intended_usestringEvetWhat the customer says the machines are for, in their own words.
rejection_reasonstringEvetShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringEvet
reviewed_atstringEvet

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 422 · 429