### Install method-python Source: https://github.com/methodfi/method-python/blob/master/README.md Installs the method-python library using pip. This is the first step to using the library in your Python project. ```bash pip install method-python ``` -------------------------------- ### Simulate Payment Status Update Source: https://github.com/methodfi/method-python/blob/master/README.md Simulates an update to a payment's status, for example, changing it to 'processing'. This is useful for testing application logic in development environments. ```Python payment = method .simulate .payments .update("pmt_rPrDPEwyCVUcm", { "status": "processing" }); ``` -------------------------------- ### Retrieve Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific entity verification session by its ID. This is used to get the status or details of a phone or identity verification process. ```python response = method .entities("ent_au22b1fbFJbp8") .verification_sessions .retrieve("evf_qTNNzCQ63zHJ9"); ``` -------------------------------- ### Initialize Method Client Source: https://github.com/methodfi/method-python/blob/master/README.md Demonstrates how to initialize the Method client for interacting with the Method API. It shows two ways to provide environment and API key: as separate arguments or as a dictionary. ```python from method import Method method = Method(env="production", api_key="{API_KEY}") # or method = Method({"env": "production", "api_key": "{API_KEY}"}) ``` -------------------------------- ### List all Entity Products Source: https://github.com/methodfi/method-python/blob/master/README.md Lists all available products that an entity has access to. This provides an overview of the entity's capabilities and product statuses. ```Python response = method .entities("ent_TYHMaRJUUeJ7U") .products .list(); ``` -------------------------------- ### Create Account Subscription Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a subscription for an account, enabling continuous updates via webhooks for specific products like transactions. Requires the product type to subscribe to. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .subscriptions .create("update"); ``` -------------------------------- ### List Account Products Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of all products (capabilities) associated with an account. This shows which features the account has access to. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .products .list(); ``` -------------------------------- ### Create Account Update Source: https://github.com/methodfi/method-python/blob/master/README.md Initiates the creation of an update for a specific account. This is used to fetch real-time data from the financial institution. ```Python response = method .accounts("acc_aEBDiLxiR8bqc") .updates .create(); ``` -------------------------------- ### Retrieve Account Product Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves details for a specific product associated with an account using both the account ID and product ID. Provides information on a single capability. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .products .retrieve("prd_FQFHqVNiCRb7J"); ``` -------------------------------- ### Create Entity Subscription Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a subscription for a specific product for an entity. Subscriptions enable continuous updates via webhooks, such as for credit score changes. ```Python response = method .entities("ent_TYHMaRJUUeJ7U") .subscriptions .create("credit_score"); ``` -------------------------------- ### Create Account Balance Source: https://github.com/methodfi/method-python/blob/master/README.md Creates or requests a real-time balance update for an account. This fetches the current balance from the financial institution. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .balances .create(); ``` -------------------------------- ### Create Liability Account Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a new liability account with specified holder ID and liability details. This is a core operation for setting up accounts within the Method platform. ```Python account = method.accounts.create({ "holder_id": "ent_au22b1fbFJbp8", "liability": { "mch_id": "mch_2", "account_number": "1122334455", } }); ``` -------------------------------- ### Simulate Transaction Creation Source: https://github.com/methodfi/method-python/blob/master/README.md Simulates the creation of a transaction for a given account. This feature is exclusive to the development environment and aids in testing transaction flows. ```Python transaction = method .simulate .accounts("acc_r6JUYN67HhCEM") .transactions .create(); ``` -------------------------------- ### List all Entity Subscriptions Source: https://github.com/methodfi/method-python/blob/master/README.md Lists all active subscriptions for an entity, providing an overview of the services providing continuous updates. ```Python response = method .entities("ent_TYHMaRJUUeJ7U") .subscriptions .list(); ``` -------------------------------- ### Create KBA Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a Knowledge-Based Authentication (KBA) verification session for an entity. This method is used for identity verification through questions. ```python response = method .entities("ent_hy3xhPDfWDVxi") .verification_sessions .create({ "type": "identity", "method": "kba", "kba": {}, }); ``` -------------------------------- ### Create Account Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a new account verification session for a given account. The type of verification session needs to be specified. ```Python verification = method .accounts("acc_b9q2XVAnNFbp3") .verification_sessions .create({ "type": "" }); ``` -------------------------------- ### Retrieve a Product Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves details for a specific product associated with an entity, identified by its unique product ID. ```Python response = method .entities("ent_TYHMaRJUUeJ7U") .products .retrieve("prd_jPRDcQPMk43Ek"); ``` -------------------------------- ### Create BYO KYC Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a Bring Your Own (BYO) Know Your Customer (KYC) verification session for an entity. This method is used when you manage your own KYC process. ```python response = method .entities("ent_XgYkTdiHyaz3e") .verification_sessions .create({ "type": "identity", "method": "byo_kyc", "byo_kyc": {}, }); ``` -------------------------------- ### Create Payment Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a payment to transfer funds between accounts. Requires amount, source account ID, destination account ID, and an optional description. ```Python payment = method.payments.create({ "amount": 5000, "source": "acc_JMJZT6r7iHi8e", "destination": "acc_AXthnzpBnxxWP", "description": "Loan Pmt", }); ``` -------------------------------- ### Create Report Source: https://github.com/methodfi/method-python/blob/master/README.md Generates a new report based on specified criteria, such as a snapshot of created payments. Reports provide filtered views of resources. ```Python report = method.reports.create({ "type": "payments.created.current" }); ``` -------------------------------- ### Create Connect Source: https://github.com/methodfi/method-python/blob/master/README.md Initiates the process of connecting an entity's liability accounts. This is part of the Connect endpoint functionality, used to link financial accounts. ```python entity = method .entities("ent_qKNBB68bfHGNA") .connect .create(); ``` -------------------------------- ### Create SNA Verification Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a "Something Not Available" (SNA) verification session for an entity. This is a placeholder for verification methods that are not applicable. ```Python response = method .entities("ent_au22b1fbFJbp8") .verification_sessions .create({ "type": "phone", "method": "sna", "sna": {}, }); ``` -------------------------------- ### Create Individual Entity Source: https://github.com/methodfi/method-python/blob/master/README.md Creates an individual entity with provided personal details and address information. This is used to represent end-users who are individuals in the Method ecosystem. ```python entity = method.entities.create({ "type": "individual", "individual": { "first_name": "Kevin", "last_name": "Doyle", "phone": "+16505555555", "email": "kevin.doyle@gmail.com", "dob": "1997-03-18", }, "address": { "line1": "3300 N Interstate 35", "line2": None, "city": "Austin", "state": "TX", "zip": "78705", }, }); ``` -------------------------------- ### Create Individual Credit Scores Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a new credit score record for an entity. This action initiates the process of fetching credit score information. ```Python entity = method .entities("ent_au22b1fbFJbp8") .credit_scores .create(); ``` -------------------------------- ### Create Webhook Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a new webhook to receive notifications from the Method API for specific events, such as payment updates. Requires a URL, event type, and authentication tokens. ```Python webhook = method.webhooks.create({ "type": "payment.update", "url": "https://api.example.app/webhook", "auth_token": "md7UqcTSmvXCBzPORDwOkE", "hmac_secret": "bd7UscLSmvEXazTOQDwOKW", }); ``` -------------------------------- ### List Merchants Source: https://github.com/methodfi/method-python/blob/master/README.md Lists all merchants supported by the Method API. ```Python merchants = method.merchants.list(); ``` -------------------------------- ### List Account Balances Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of all balance records for a given account. This can be used to view historical balance information. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .balances .list(); ``` -------------------------------- ### Create Account Sensitive Information Source: https://github.com/methodfi/method-python/blob/master/README.md Creates or requests access to sensitive account information, such as PAN, CVV, and account numbers. Requires specific permissions and PCI compliance. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .sensitive .create({ "expand": [ "credit_card.number", "credit_card.exp_month", "credit_card.exp_year", "credit_card.cvv" ], }); ``` -------------------------------- ### List Webhooks Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of all configured webhooks within the Method API. This can be used to manage or audit active webhook subscriptions. ```Python webhooks = method.webhooks.list(); ``` -------------------------------- ### List Subscriptions Source: https://github.com/methodfi/method-python/blob/master/README.md Lists all subscriptions associated with a given account. Requires an account ID. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .subscriptions .list(); ``` -------------------------------- ### Create Account Card Brand Source: https://github.com/methodfi/method-python/blob/master/README.md Creates or associates a card brand with an account. This operation likely links credit card metadata to an account. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .card_brands .create(); ``` -------------------------------- ### List Account Updates Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of all updates for a given account. This allows tracking historical data changes or fetching the latest information. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .updates .list(); ``` -------------------------------- ### Update Micro Deposits Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an existing account verification session with micro-deposit amounts. Requires the verification session ID and account ID. ```Python verification = method .accounts("acc_yVf3mkzbhz9tj") .verification_sessions .update("avf_yBQQNKmjRBTqF", { "micro_deposits": { "amounts": [10, 34] } }); ``` -------------------------------- ### Update Plaid Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an account verification session using Plaid data, including balances and transactions. Requires the verification session ID and account ID. ```Python verification = method .accounts("acc_yVf3mkzbhz9tj") .verification_sessions .update("avf_DjkdemgTQfqRD", { "plaid": { "balances": { "available": 100, "current": 110, "iso_currency_code": "USD", "limit": None, "unofficial_currency_code": None }, "transactions": [ ... ] } }); ``` -------------------------------- ### List Accounts Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of all accounts associated with the Method account. This is useful for overview and batch processing. ```Python accounts = method.accounts.list(); ``` -------------------------------- ### Retrieve Account Balance Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific balance record for an account using both the account ID and the balance ID. Provides details of a particular balance snapshot. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .balances .retrieve("bal_ebzh8KaR9HCBG"); ``` -------------------------------- ### List Entities Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of all entities associated with your Method account. This is useful for managing and viewing your existing entities. ```python entities = method.entities.list(); ``` -------------------------------- ### Update KBA Verification Source: https://github.com/methodfi/method-python/blob/master/README.md Updates a Knowledge-Based Authentication (KBA) verification session for an entity. This involves providing specific answers to security questions. ```Python response = method .entities("ent_hy3xhPDfWDVxi") .verification_sessions .update("evf_ywizPrR6WDxDG", { "type": "identity", "method": "kba", "kba": { "answers": [ { "question_id": "qtn_xgP6cGhq34fHW", "answer_id": "ans_dbKCwDGwrrBgi" }, { "question_id": "qtn_kmfdEftQ9zc6T", "answer_id": "ans_LXN83xnJAUNFb" }, { "question_id": "qtn_6mWegPLBpAFxb", "answer_id": "ans_EKi47D8wA6YN3" } ] } }); ``` -------------------------------- ### Create Account Payoff Source: https://github.com/methodfi/method-python/blob/master/README.md Requests a payoff quote for an account, specifically for Auto Loan accounts. This provides the total amount needed to pay off the loan. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .payoffs .create(); ``` -------------------------------- ### Create ACH Account Source: https://github.com/methodfi/method-python/blob/master/README.md Creates an ACH account record for an entity, representing a checking or savings account. Requires holder ID and ACH details like routing and account number. ```Python account = method.accounts.create({ "holder_id": "ent_y1a9e1fbnJ1f3", "ach": { "routing": "367537407", "number": "57838927", "type": "checking", }, }); ``` -------------------------------- ### Download Report Source: https://github.com/methodfi/method-python/blob/master/README.md Downloads a generated report, typically in CSV format, using its unique identifier. This enables local analysis of the report data. ```Python reportCSV = method.reports.download("rpt_cj2mkA3hFyHT5"); ``` -------------------------------- ### Retrieve Connect Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves details of a specific Connect instance using its unique identifier. This allows you to check the status or information related to a connect. ```python entity = method .entities("ent_qKNBB68bfHGNA") .connect .retrieve("cxn_4ewMmBbjYDMR4"); ``` -------------------------------- ### Retrieve Account Card Brand Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves the card brand metadata for a specific account using the account ID and card brand ID. Provides details about the card's product and branding. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .card_brands .retrieve("cbrd_eVMDNUPfrFk3e"); ``` -------------------------------- ### Retrieve Webhook Source: https://github.com/methodfi/method-python/blob/master/README.md Fetches details of a specific webhook using its unique identifier. This is useful for checking the configuration or status of an existing webhook. ```Python webhook = method.webhooks.retrieve("whk_cSGjA6d9N8y8R"); ``` -------------------------------- ### Retrieve Payment Reversal Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific reversal for a given payment using both payment and reversal IDs. ```Python reversal = method.payments("pmt_rPrDPEwyCVUcm").reversals.retrieve("rvs_eaBAUJtetgMdR"); ``` -------------------------------- ### List Payments Source: https://github.com/methodfi/method-python/blob/master/README.md Lists all payments processed through the Method API. ```Python payments = method.payments.list(); ``` -------------------------------- ### Retrieve Account Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific account using its unique account ID. This allows access to detailed information about an existing account. ```Python account = method.accounts.retrieve("acc_Zc4F2aTLt8CBt"); ``` -------------------------------- ### Create SMS Verification Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a standard SMS verification session for an entity. This is used for verifying a phone number via SMS. ```Python response = method .entities("ent_au22b1fbFJbp8") .verification_sessions .create({ "type": "phone", "method": "sms", "sms": {}, }); ``` -------------------------------- ### Retrieve Entity Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves an existing entity using its unique identifier. This allows you to fetch the details of a previously created entity. ```python entity = method.entities.retrieve("ent_au22b1fbFJbp8"); ``` -------------------------------- ### Update Payment Reversal Source: https://github.com/methodfi/method-python/blob/master/README.md Updates the status of a payment reversal. Requires payment ID, reversal ID, and the new status. ```Python reversal = method .payments("pmt_rPrDPEwyCVUcm") .reversals .update("rvs_eaBAUJtetgMdR", { "status": "pending" }); ``` -------------------------------- ### Create Identities Source: https://github.com/methodfi/method-python/blob/master/README.md Creates an identity record for an entity. This is used to associate personal identifiable information (PII) with an entity, requiring at least a name and phone number. ```Python entity = method .entities("ent_au22b1fbFJbp8") .identities .create(); ``` -------------------------------- ### List Account Transactions Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of transactions for a specific account within a date range. Requires account ID and date parameters. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .transactions .list({ "from_date": "2024-03-13", "to_date": "2024-03-15", }); ``` -------------------------------- ### Create BYO SMS Verification Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a Bring Your Own SMS (BYO SMS) verification session for an entity. This method is used for custom SMS verification flows. ```Python response = method .entities("ent_XgYkTdiHyaz3e") .verification_sessions .create({ "type": "phone", "method": "byo_sms", "byo_sms": { "timestamp": "2023-12-28T14:35:15.816Z", }, }); ``` -------------------------------- ### List Account Payoffs Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of payoff quotes for a given account. Useful for tracking multiple payoff requests or historical quotes. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .payoffs .list(); ``` -------------------------------- ### Create Corporation Entity Source: https://github.com/methodfi/method-python/blob/master/README.md Creates a corporation entity, including details about the corporation and its owners. This is used to represent end-users who are businesses or organizations. ```python entity = method.entities.create({ "type": "corporation", "corporation": { "name": "Alphabet Inc.", "dba": "Google", "ein": "641234567", "owners": [ { "first_name": "Sergey", "last_name": "Brin", "phone": "+16505555555", "email": "sergey@google.com", "dob": "1973-08-21", "address": { "line1": "600 Amphitheatre Parkway", "line2": None, "city": "Mountain View", "state": "CA", "zip": "94043", }, }, ], }, "address": { "line1": "1600 Amphitheatre Parkway", "line2": None, "city": "Mountain View", "state": "CA", "zip": "94043", }, }); ``` -------------------------------- ### Retrieve Account Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific account verification session using its ID and the associated account ID. ```Python verification = method .accounts("acc_b9q2XVAnNFbp3") .verification_sessions .retrieve("avf_DjkdemgTQfqRD"); ``` -------------------------------- ### Update Pre-auth Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an account verification session with pre-authorization data, such as a CVV. Requires the verification session ID and account ID. ```Python verification = method .accounts("acc_yVf3mkzbhz9tj") .verification_sessions .update("avf_DjkdemgTQfqRD", { "pre_auth": { "cvv": "031" } }); ``` -------------------------------- ### Update MX Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an account verification session with MX data, including account details and transactions. Requires the verification session ID and account ID. ```Python verification = method .accounts("acc_yVf3mkzbhz9tj") .verification_sessions .update("avf_DjkdemgTQfqRD", { "mx": { "account": { "institution_code": "chase", "guid": "ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1", "account_number": None, "apr": None, "apy": None, "available_balance": 1000.23, "available_credit": None, "balance": 1000.23, "cash_balance": 1000.32, "cash_surrender_value": 1000.23, "created_at": "2016-10-13T17:57:37+00:00", ... }, "transactions": [ ... ] } }); ``` -------------------------------- ### Update Standard Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an account verification session with standard verification data, such as an account number. Requires the verification session ID and account ID. ```Python verification = method .accounts("acc_yVf3mkzbhz9tj") .verification_sessions .update("avf_DjkdemgTQfqRD", { "standard": { "number": "4111111111111111", } }); ``` -------------------------------- ### Retrieve Report Source: https://github.com/methodfi/method-python/blob/master/README.md Fetches a specific report using its unique identifier. This allows access to the data snapshot generated by the Method API. ```Python report = method.reports.retrieve("rpt_cj2mkA3hFyHT5"); ``` -------------------------------- ### Retrieve Subscription Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific subscription using its ID and the associated account ID. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .subscriptions .retrieve("sub_P8c4bjj6xajxF"); ``` -------------------------------- ### Retrieve Merchant Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific merchant using its ID. ```Python merchant = method.merchants.retrieve("mch_1"); ``` -------------------------------- ### Retrieve Account Update Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific update for an account using both the account ID and the update ID. Useful for examining a particular data refresh. ```Python response = method .accounts("acc_aEBDiLxiR8bqc") .updates .retrieve("upt_NYV5kfjskTTCJ"); ``` -------------------------------- ### Retrieve Account Sensitive Information Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves specific sensitive account information using the account ID and the sensitive data ID. This is a restricted endpoint for PCI-compliant access. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .sensitive .retrieve("astv_9WBBA6TH7n7iX"); ``` -------------------------------- ### Retrieve Payment Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific payment using its ID. ```Python payment = method.payments.retrieve("pmt_rPrDPEwyCVUcm"); ``` -------------------------------- ### Update Teller Verification Session Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an account verification session with Teller data, including account balances and transaction information. Requires the verification session ID and account ID. ```Python verification = method .accounts("acc_yVf3mkzbhz9tj") .verification_sessions .update("avf_DjkdemgTQfqRD", { "teller": { "balances": { "account_id": "acc_ns9gkibeia6ad0rr6s00q", "available": "93011.13", "ledger": "93011.13", "links": { "account": "https://reference.teller.io/accounts/acc_ns9gkibeia6ad0rr6s00q", "self": "https://reference.teller.io/accounts/acc_ns9gkibeia6ad0rr6s00q/balances" } }, "transactions": [ ... ] } }); ``` -------------------------------- ### Retrieve Identities Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves the identity (PII) associated with an entity. This endpoint may return a single identity if PII is sufficient for disambiguation, or multiple identities if not. ```Python entity = method .entities("ent_au22b1fbFJbp8") .identities .retrieve("idn_NhTRUVEknYaFM"); ``` -------------------------------- ### Retrieve Account Payoff Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific payoff quote for an account using both the account ID and the payoff quote ID. Provides details of a single payoff calculation. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .payoffs .retrieve("pyf_ELGT4hfikTTCJ"); ``` -------------------------------- ### List Reversals for Payment Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a list of reversals associated with a specific payment ID. This function is part of the payments module in the Method SDK. ```Python reversals = method.payments("pmt_rPrDPEwyCVUcm").reversals.list(); ``` -------------------------------- ### Retrieve Entity Subscription Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves details for a specific subscription associated with an entity, identified by its unique subscription ID. ```Python response = method .entities("ent_TYHMaRJUUeJ7U") .subscriptions .retrieve("sub_6f7XtMLymQx3f"); ``` -------------------------------- ### Retrieve Individual Credit Scores Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific credit score record for an entity using its unique identifier. This allows access to the latest credit score and associated factors. ```Python entity = method .entities("ent_au22b1fbFJbp8") .credit_scores .retrieve("crs_pn4ca33GXFaCE"); ``` -------------------------------- ### Retrieve Account Transaction Source: https://github.com/methodfi/method-python/blob/master/README.md Retrieves a specific transaction for an account using both the account ID and the transaction ID. Provides details of a single transaction. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .transactions .retrieve("txn_aRrDMAmEAtHti"); ``` -------------------------------- ### Update SNA Verification Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an existing "Something Not Available" (SNA) verification session for an entity. This is typically used when no specific update is needed for this verification type. ```Python response = method .entities("ent_BYdNCVApmp7Gx") .verification_sessions .update("evf_qTNNzCQ63zHJ9", { "type": "phone", "method": "sna", "sna": {}, }); ``` -------------------------------- ### Withdraw Account Consent Source: https://github.com/methodfi/method-python/blob/master/README.md Withdraws a user's consent for a specific account, typically revoking access to data or functionality. Requires the account ID. ```Python account = method.accounts.withdraw_consent("acc_yVf3mkzbhz9tj"); ``` -------------------------------- ### Update SMS Verification Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an existing SMS verification session for an entity, typically by providing the SMS code received. ```Python response = method .entities("ent_au22b1fbFJbp8") .verification_sessions .update("evf_3VT3bHTCnPbrm", { "type": "phone", "method": "sms", "sms": { "sms_code": "884134" }, }); ``` -------------------------------- ### Update Entity Source: https://github.com/methodfi/method-python/blob/master/README.md Updates an existing entity with new information. You can modify fields such as name, contact details, or address for a given entity. ```python entity = method.entities.update("ent_au22b1fbFJbp8", { "individual": { "first_name": "Kevin", "last_name": "Doyle", "email": "kevin.doyle@gmail.com", "dob": "1997-03-18", }, }); ``` -------------------------------- ### Delete Payment Source: https://github.com/methodfi/method-python/blob/master/README.md Deletes a specific payment using its ID. ```Python payment = method.payments.delete("pmt_rPrDPEwyCVUcm"); ``` -------------------------------- ### Delete Subscription Source: https://github.com/methodfi/method-python/blob/master/README.md Deletes a specific subscription using its ID and the associated account ID. ```Python response = method .accounts("acc_yVf3mkzbhz9tj") .subscriptions .delete("sub_xM4VcfRWcJP8D"); ``` -------------------------------- ### Delete Entity Subscription Source: https://github.com/methodfi/method-python/blob/master/README.md Deletes a specific subscription for an entity, identified by its unique subscription ID. This stops the continuous updates for that service. ```Python response = method .entities("ent_TYHMaRJUUeJ7U") .subscriptions .delete("sub_6f7XtMLymQx3f"); ``` -------------------------------- ### Withdraw Entity Consent Source: https://github.com/methodfi/method-python/blob/master/README.md Withdraws an entity's consent, which may affect their ability to perform certain actions within the Method ecosystem. This operation is performed using the entity's ID. ```python entity = method.entities.withdraw_consent("ent_au22b1fbFJbp8"); ``` -------------------------------- ### Delete Webhook Source: https://github.com/methodfi/method-python/blob/master/README.md Removes a webhook from the Method API using its unique identifier. This action stops notifications from being sent to the registered URL. ```Python webhook = method.webhooks.delete("whk_cSGjA6d9N8y8R"); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.