marketplace

POST /v1/marketplace/vendor/profile

Become a Zinner®.

همه نقاط پایانی marketplace

احراز هویت

یک کلید API را به عنوان یک توکن برbearer ارسال کنید. این نقطه پایانی مجوز خاصی را در مشخصات خود ذکر نمی‌کند، بنابراین به جای فرض کردن، حداقل نیازهای کلید خود را بدهید و پاسخ را بررسی کنید.

این نقطه پایانی هیچ شناسه سازمانی را دریافت نمی‌کند. کلید شما در حال حاضر سازمان مربوطه را مشخص می‌کند و پاسخ در همان محدوده ارائه می‌شود.

امتحان کنید

هر چیزی را که داخل براکت‌های زاویه‌دار قرار دارد با مقادیر خودتان جایگزین کنید، و نگهدارنده کلید را با کلیدی از داشبورد خود جایگزین نمایید.

curl -X POST https://api.zinndigital.com/v1/marketplace/vendor/profile \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "display_name": <string> }'

وارد شده‌اید؟ کنسول API در داشبورد شما شناسه سازمان واقعی و کلید خودتان را پر می‌کند و درخواست را روی API زنده اجرا می‌کند تا بتوانید پاسخ واقعی را ببینید. این نقطه پایانی را در کنسول API باز کنید

جزئیات

docs/82 §7a. Self-service registration — until M1 a vendor row could only be created by staff in admin, which is a marketplace whose seller half is reachable only by asking us. ⭐ **Idempotent.** An org that is already registered gets `200` and its existing row, never a `409`: two members of one org pressing the button is an ordinary event. ⛔ The organization comes from the caller's own scope, never from the body — a caller-supplied org id would let a member of one tenant enrol another. ⛔ The row is always created `registered` and never first-party: registering is not approval, and approval is not verification.

بدنه درخواست

نامنوعالزامیچیست
display_namestringبلهThe name buyers see. Required.
contact_emailstringخیر
countrystringخیرISO-3166-1 alpha-2.

پاسخ

نامنوعالزامیچیست
registeredbooleanبله`false` is a normal answer — most customers are not sellers — and the other two fields are then `null`.
vendorMarketplaceVendorSelfبله
verificationMarketplaceVerificationبله

خطاهایی که این نقطه پایانی می‌تواند برگرداند

401 · 422