compute

POST /v1/compute/eligibility

Submit an organisation for verification.

Všechny koncové body compute

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění billing.payment.manage; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Sem patří ID vaší organizace

Tento koncový bod přijímá org_id jako parametr dotazu. Pokud ho vynecháte, volání pokryje celý podstrom vašeho nájemce; jeho odesláním volání zúžíte na jednu organizaci.

ID vaší organizace najdete na obrazovce API klíčů ve vašem přehledu, hned vedle samotného klíče. Je to stále stejné ID v každém volání, které provedete.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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.

Parametry

NázevTypPožadovánoCo to je
org_id (query)UuidNe

Tělo požadavku

NázevTypPožadovánoCo to je
legal_namestringAno
countrystringAno
abuse_contact_emailstringAno
company_numberstringNe
intended_usestringNe

Odpověď

NázevTypPožadovánoCo to je
statestring<not_requested, pending, verified, rejected>Ano⛔ 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_orderbooleanAnoTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringAnoThe legal name of whoever is responsible for the machines.
countrystringAnoISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringAnoCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringAnoA 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_usestringAnoWhat the customer says the machines are for, in their own words.
rejection_reasonstringAnoShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringAno
reviewed_atstringAno

Chyby, které může tento koncový bod vrátit

401 · 403 · 422 · 429