compute

POST /v1/compute/eligibility

Submit an organisation for verification.

Все эндпоинты compute

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

Отправьте ключ API в качестве токена носителя (bearer token). Ключ должен иметь разрешение billing.payment.manage; ключ без него отклоняется с кодом 403, а не 404.

Идентификатор вашей организации

Этот эндпоинт принимает 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 в вашей панели управления автоматически подставляет реальный идентификатор вашей организации и ваш собственный ключ, а также выполняет запрос к работающему 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>Да⛔ 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_orderbooleanДаTrue only in `verified`. Read this rather than re-deriving it from `state`.
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 wit…
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