compute

POST /v1/compute/eligibility

Submit an organisation for verification.

Todos os endpoints de compute

Autenticação

Envie uma chave de API como um token de portador. A chave deve ter a permissão billing.payment.manage; uma chave sem ela é recusada com 403, e não 404.

Onde vai o ID da sua organização

Este endpoint aceita org_id como parâmetro de consulta. Omita-o e a chamada abrangerá toda a sua subárvore de locatários; envie-o para restringir a chamada a uma única organização.

O ID da sua organização está na tela de chaves de API no seu painel, ao lado da própria chave. É o mesmo ID em todas as chamadas que você fizer.

Experimente

Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.

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

Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API

Detalhes

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.

Parâmetros

NomeTipoObrigatórioO que é
org_id (query)UuidNão

Corpo da requisição

NomeTipoObrigatórioO que é
legal_namestringSim
countrystringSim
abuse_contact_emailstringSim
company_numberstringNão
intended_usestringNão

Resposta

NomeTipoObrigatórioO que é
statestring<not_requested, pending, verified, rejected>Sim⛔ 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_orderbooleanSimTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringSimThe legal name of whoever is responsible for the machines.
countrystringSimISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringSimCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringSimA 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_usestringSimWhat the customer says the machines are for, in their own words.
rejection_reasonstringSimShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringSim
reviewed_atstringSim

Erros que este endpoint pode retornar

401 · 403 · 422 · 429