compute
POST /v1/compute/eligibility
Submit an organisation for verification.
စစ်မှန်ကြောင်း အတည်ပြုခြင်း
API သော့တစ်ခုကို bearer token အဖြစ် ပို့ပါ။ သော့တွင် billing.payment.manage ခွင့်ပြုချက် ပါရှိရမည်ဖြစ်ပြီး၊ ၎င်းမပါရှိသော သော့ကို 404 အစား 403 ဖြင့် ငြင်းပယ်ပါမည်။
သင့်အဖွဲ့အစည်း၏ id ထည့်သွင်းရမည့်နေရာ
ဤအစွန်အဖျား (endpoint) သည် org_id ကို မေးမြန်းချက် ကန့်သတ်ဘောင် (query parameter) အဖြစ် လက်ခံပါသည်။ ၎င်းကို ချန်လှပ်ထားပါက ခေါ်ဆိုမှုသည် သင်၏ ငှားရမ်းမှု လက်အောက်ခံသစ်ပင် (tenancy subtree) တစ်ခုလုံးကို လွှမ်းခြုံမည်ဖြစ်ပြီး၊ အဖွဲ့အစည်းတစ်ခုတည်းသို့ ကန့်သတ်ခေါ်ဆိုရန် ၎င်းကို ပေးပို့ပါ။
သင့်အဖွဲ့အစည်း id သည် သင်၏ ဒက်ရှ်ဘုတ်ရှိ API သော့များ မျက်နှာပြင်တွင်၊ သော့၏ ဘေး၌ ရှိပါသည်။ ၎င်းသည် သင်ပြုလုပ်သည့် ခေါ်ဆိုမှုတိုင်းတွင် တူညီသော id ဖြစ်ပါသည်။
စမ်းကြည့်ရန်
ထောင့်ချိတ်များအတွင်းရှိ မည်သည့်အရာကိုမဆို သင်၏ကိုယ်ပိုင်တန်ဖိုးများဖြင့် အစားထိုးပြီး သင့်ဒက်ရှ်ဘုတ်မှ သော့ချက်တစ်ခုဖြင့် key ကို အစားထိုးပါ။
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 ကွန်ဆိုးလ်တွင် သင့်၏ တကယ့်အဖွဲ့အစည်း ID နှင့် သင့်ကိုယ်ပိုင်သော့ချက်တို့ဖြင့် ဖြည့်သွင်းပေးပြီး တကယ့်တုံ့ပြန်ချက်ကို သင်မြင်နိုင်ရန် တိုက်ရိုက် API (live API) ကို အသုံးပြု၍ တောင်းဆိုမှုကို လုပ်ဆောင်ပေးပါသည်။ ဤအဆုံးသတ်အမှတ် (endpoint) ကို 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_name | string | ဟုတ်ကဲ့ | — |
country | string | ဟုတ်ကဲ့ | — |
abuse_contact_email | string | ဟုတ်ကဲ့ | — |
company_number | string | မဟုတ်ပါ | — |
intended_use | string | မဟုတ်ပါ | — |
တုံ့ပြန်ချက်
| နာမည် | အမျိုးအစား | လိုအပ်သည် | ဘာလဲဆိုတာ |
|---|---|---|---|
state | string<not_requested, pending, verified, rejected> | ဟုတ်ကဲ့ | The ID check's own state. ⛔ Four states, not a boolean: not_requested and rejected differ completely — one is "tell us who you are" (only when id_check_required), the other… |
blockers | string<email_unverified, card_required, id_check_required, id_check_pending, id_check_rejected>[] | ဟုတ်ကဲ့ | What stands between the account and a server, in the order it can act on them. Empty exactly when may_order is true. |
email_verified | boolean | ဟုတ်ကဲ့ | Whether an owner of the organisation has a verified email address. |
card_verified | boolean | ဟုတ်ကဲ့ | Whether a card confirmed with the issuer (a succeeded setup) is on the account, in date and chargeable. A PayPal agreement or a crypto balance is not a card. |
id_check_required | boolean | ဟုတ်ကဲ့ | Whether an ID check stands between the account and its next server. False for almost every account — it is raised only by a fraud signal or by staff. |
id_document_uploaded | boolean | ဟုတ်ကဲ့ | Whether an identity document has been registered for the check. |
standing | string<new, established, custom> | ဟုတ်ကဲ့ | Which limits apply. new until the account is 30 days old and has paid for something; custom when staff set this account's limits. |
limits | ComputeLimits | ဟုတ်ကဲ့ | What one account may run at once on our cloud. |
usage | ComputeUsage | ဟုတ်ကဲ့ | What the account runs now, measured the way ComputeLimits bounds it. |
may_order | boolean | ဟုတ်ကဲ့ | True exactly when blockers is empty. Read this rather than re-deriving it. |
legal_name | string | ဟုတ်ကဲ့ | The legal name of whoever is responsible for the machines. |
country | string | ဟုတ်ကဲ့ | ISO-3166-1 alpha-2 country of the person or the incorporation. |
company_number | string | ဟုတ်ကဲ့ | Company registration number, or "" for an individual — a real answer. |
abuse_contact_email | string | ဟုတ်ကဲ့ | 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… |
intended_use | string | ဟုတ်ကဲ့ | What the customer says the machines are for, in their own words. |
rejection_reason | string | ဟုတ်ကဲ့ | Shown to the customer verbatim when state is rejected. |
submitted_at | string | ဟုတ်ကဲ့ | — |
reviewed_at | string | ဟုတ်ကဲ့ | — |
ဤအမှတ်ဆက်မှ ပြန်ပေးနိုင်သော အမှားများ
401 · 403 · 422 · 429