/v3/customers/{customerId}/accounts के अंतर्गत हैं; किसी एक account के operations में /{accountId} जुड़ता है। accountId से customerId का reverse lookup उपलब्ध नहीं है। बाद की requests में account को संबोधित करने के लिए हर accountId के साथ customerId सहेजें।
एक account चुनें
issued का मतलब है कि Swipelux resource बनाता और प्रबंधित करता है। external customer के स्वामित्व वाले endpoint को record करता है। एक third-party endpoint recipient और destination के अंतर्गत आता है, customer account list के अंतर्गत नहीं।
Cards या Apple Pay के लिए merchant panel का First pay-in walkthrough शुरू करने से पहले उस customer के अंतर्गत Polygon wallet बनाएँ। Walkthrough केवल वही Polygon wallet उपलब्ध कराता है और उसके बिना आगे नहीं बढ़ सकता। यह prerequisite merchant panel walkthrough पर लागू होता है; direct API integrations को केवल वही currencies, networks, methods और account types उपयोग करने चाहिए जो वर्तमान customer और capability के लिए लौटाए गए हों।
Account बनाएँ
POST /v3/customers/{customerId}/accounts का उपयोग करें। नीचे दिए गए request bodies में से एक के साथ ये headers भेजें:
- Issued wallet
- Issued bank account
- External wallet
- External bank account
Account के उपयोग योग्य होने की प्रतीक्षा करें
Create response सेdata.id, data.status, और data.openTaskIds संग्रहीत करें। Transfer को quote करने या bank details दिखाने से पहले नवीनतम account को GET /v3/customers/{customerId}/accounts/{accountId} के साथ पढ़ें।
Account का उपयोग केवल तब करें जब इसकी वर्तमान status अगले operation की अनुमति देती हो। यदि task IDs open हैं, तो उन्हें Capabilities और tasks के माध्यम से पूरा करें।
एक issued bank account provisioning के दौरान details: null लौटा सकता है। Bank details केवल तभी प्रस्तुत करें जब वर्तमान read पूर्ण set लौटाए। यदि details.referenceRequired true है, तो सटीक details.reference को bank coordinates के साथ दिखाएँ।
Account roles को स्पष्ट रखें
Payout के लिए, issued walletin.accountId में source है। एक customer-owned bank account destinationId है। एक issued bank account के लिए, settlement.accountId वह issued wallet है जो matched deposits प्राप्त करता है।
आगे, Receive funds, Send funds, या Issue a bank account में एक ready account का उपयोग करें।