externalId का उपयोग करें।
Environment variables
Individual customers
एक individual के लिए केवलtype आवश्यक है। जो profile fields आप पहले से जानते हैं उन्हें शामिल करें, और अधिक तब जोड़ें जब वर्तमान capability या task को उनकी आवश्यकता हो।
Customer को POST /v3/customers के साथ बनाएँ:
Create individual customer
data.id को CUSTOMER_ID के रूप में संग्रहीत करें। नीति संदर्भ के लिए Individual onboarding देखें।
Business customers
एक business के लिएbusiness.legalName आवश्यक है। उसी operation के साथ business बनाएँ:
Create business customer
data.id को CUSTOMER_ID के रूप में संग्रहीत करें। नीति और document संदर्भ के लिए Business onboarding देखें।
Business related parties जोड़ें
Directors, owners, और अन्य business participants को तब जोड़ें जब वे ज्ञात हों या अनुरोध किए गए हों। यह उदाहरणPOST /v3/customers/{customerId}/related-parties के साथ एक director बनाता है:
Add related party
data.id को RELATED_PARTY_ID के रूप में संग्रहीत करें।
यदि आपको customer export करना है, तो POST /v3/customers/{customerId}/export का उपयोग करें और उसके request schema का पालन करें। json_basic_data format वर्तमान public v3 customer resource को JSON attachment के रूप में लौटाता है; प्रत्येक call वर्तमान data की फिर से गणना करती है और documents तथा document metadata को शामिल नहीं करती।
Portability-token format के लिए, Swipelux customerId नहीं बल्कि receiving KYC project की client ID को forClientId के रूप में भेजें। लौटाए गए data.token का उपयोग data.expiresAt से पहले करें। वही Idempotency-Key और body दोबारा उपयोग करने पर वही token result replay होता है; दूसरा token जारी करने के लिए नई key का उपयोग करें।
Capabilities से readiness पढ़ें
API में एक customer की verification या readiness status नहीं होती। वर्तमान profile data के लिए customer कोGET /v3/customers/{customerId} के साथ पढ़ें, फिर यह तय करने के लिए कि customer आगे क्या कर सकता है, capabilities और उनके openTaskIds का उपयोग करें।
Get customer
बकाया documents वाले customers खोजें
यह पता लगाने के लिए कि किसी page पर कौन-से customers को अभी भी mandatory documents देने हैं,GET /v3/customers को include=documentRequirements पास करें। आप इसे capability summaries के साथ include=capabilities,documentRequirements के रूप में combine कर सकते हैं। documentRequirements expansion के लिए API keys को accounts:read की आवश्यकता होती है।
इसके बाद हर customer summary में एक documentRequirements object शामिल होता है:
Document requirement summary
countउन mandatory document requirements की संख्या है जोaction_requiredमें हैं और ऐसे tasks पर हैं जो भीaction_requiredमें हैं। यह हर task scope को cover करता है, जिसमें account-wide tasks भी शामिल हैं, और यह capability readiness पर निर्भर नहीं करता।- जब
count0से अधिक होता है, तबrequiredtrueहोता है। - Alternatives का एक set एक बार गिना जाता है, और केवल तभी जब हर alternative के लिए document आवश्यक हो।
required: false यह साबित नहीं करता कि कोई document task लागू नहीं होता। Customers को prioritize करने के लिए इसका उपयोग करें, फिर क्या collect करना है इसकी authoritative list के लिए उनके tasks पढ़ें। Expansion के बिना, response में documentRequirements शामिल नहीं होता।
आगे, आवश्यक product outcome को खोजने और सक्रिय करने के लिए Capabilities और tasks पर जारी रखें।