compute

POST /v1/compute/eligibility

Submit an organisation for verification.

Alle compute-eindpunten

Authenticatie

Stuur een API-sleutel mee als bearer token. De sleutel moet over de permissie billing.payment.manage beschikken; een sleutel zonder deze permissie wordt geweigerd met een 403 in plaats van een 404.

Waar je organisatie-id komt te staan

Dit eindpunt accepteert org_id als queryparameter. Laat deze achterwege en de aanroep destilleert je gehele tenant-substructie; stuur deze mee om de aanroep te beperken tot één organisatie.

Uw organisatie-id staat op het scherm met API-sleutels in uw dashboard, naast de sleutel zelf. Dit is in elke aanroep die u doet dezelfde id.

Probeer het

Vervang alles tussen punthaakjes door uw eigen waarden en de sleutelplaatsvervanger door een sleutel uit uw dashboard.

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

Ingelogd? De API-console in je dashboard vult je echte organisatie-id en je eigen sleutel in, en voert het verzoek uit tegen de live API zodat je de daadwerkelijke respons kunt zien. Open dit eindpunt in de API-console

Details

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.

Parameters

NaamTypeVerplichtWat dit is
org_id (query)UuidNee

Aanvraaglichaam

NaamTypeVerplichtWat dit is
legal_namestringJa
countrystringJa
abuse_contact_emailstringJa
company_numberstringNee
intended_usestringNee

Reactie

NaamTypeVerplichtWat dit is
statestring<not_requested, pending, verified, rejected>Ja⛔ 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_orderbooleanJaTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringJaThe legal name of whoever is responsible for the machines.
countrystringJaISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringJaCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringJaA 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_usestringJaWhat the customer says the machines are for, in their own words.
rejection_reasonstringJaShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringJa
reviewed_atstringJa

Fouten die dit eindpunt kan retourneren

401 · 403 · 422 · 429