{"id":21659436,"url":"https://github.com/marqeta/marqeta-python","last_synced_at":"2026-01-11T22:58:55.162Z","repository":{"id":34424123,"uuid":"178072177","full_name":"marqeta/marqeta-python","owner":"marqeta","description":"Marqeta Python SDK","archived":false,"fork":false,"pushed_at":"2023-05-09T17:59:25.000Z","size":643,"stargazers_count":20,"open_issues_count":2,"forks_count":10,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-14T20:23:10.311Z","etag":null,"topics":["marqeta","payments","python-sdk"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marqeta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-27T20:47:07.000Z","updated_at":"2024-04-22T13:59:21.000Z","dependencies_parsed_at":"2022-08-08T03:00:19.639Z","dependency_job_id":null,"html_url":"https://github.com/marqeta/marqeta-python","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marqeta%2Fmarqeta-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marqeta%2Fmarqeta-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marqeta%2Fmarqeta-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marqeta%2Fmarqeta-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marqeta","download_url":"https://codeload.github.com/marqeta/marqeta-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305686,"owners_count":17603860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["marqeta","payments","python-sdk"],"created_at":"2024-11-25T09:31:03.125Z","updated_at":"2026-01-11T22:58:55.156Z","avatar_url":"https://github.com/marqeta.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# marqeta-python\n\nThe Marqeta Python library provides access to the Marqeta platform [Core API](https://www.marqeta.com/api/docs/WYDH6igAAL8FnF21/api-introduction).\n\nThis library is released as a Beta. If you find anything that needs fixing or can be improved, please [create an issue](issues) on GitHub.\n\n## Documentation\n\nFor complete reference documentation, see the [Marqeta Core API Reference](https://www.marqeta.com/api/docs/WYDH6igAAL8FnF21/api-introduction).\n\n## Installation\n\nInstall from PyPi using [pip](https://pip.pypa.io/en/stable/), a package manager for Python.\n\n```\npip install marqeta\n```\n\n### Requirements\n\n* Python 3.7+\n\n### Dependencies\n\n* [Requests](http://docs.python-requests.org/)\n\n## Usage\n\n### Configuring the client\n\nCreate an account on marqeta.com to retrieve your application token and access token for the shared sandbox. For production, you will need to change `base_url` too.\n\nConfigure your client object.\n\n```\nfrom marqeta import Client\n\nbase_url = \"https://shared-sandbox-api.marqeta.com/v3/\"\napplication_token = \"MY_APPLICATION_TOKEN\"\naccess_token = \"MY_ACCESS_TOKEN\"\ntimeout = 60 # seconds\n\nclient = Client(base_url, application_token, access_token, timeout)\n```\n\nWhen specifying your base url, include the `/v3/` version prefix with the trailing slash.\n\n### Accessing resources\n\nAccess resource collections of the Core API as properties of the client object.\n\nFor example, to access the `/users` endpoint:\n\n```\nclient.users\n```\n\nNested resource collection are properties of the parent collection.\n\nFor example, to access the `/chargebacks/{token}/transitions` endpoint:\n\n```\nclient.chargebacks(token).transitions\n```\n\n### Listing objects\n\nThere are multiple ways to retrieve collections of objects, depending on your use case. The library will intelligently handle pagination for you, unless you request a specific page of data.\n\nTo simply retrieve every object in a collection, call `list(limit=None)` on the resource.\n\n```\nusers = client.users.list(limit=None)\n```\n\nIf an integer is specified for 'limit', the library will return up to maximum of `limit` objects. The default value of `limit` is typically `None`, however for `client.users.list()` and `client.card_products.list()` the default limits are 1000 and 25 respectively.\n\nThe `stream()` method returns a generator that efficiently downloads subsequent pages as needed, as opposed to downloading all objects into memory at once.\n\n```\nfor user in client.users.stream():\n    pass\n```\n\nTo retrieve a single page, call the `page()` method specifying `start_index` and `count`.\n\n```\npage = client.users.page(start_index=0, count=5)\nusers = page.data\n```\n\nYou can specify by which field the results should be sorted by passing a `params` dictionary:\n\n```\nclient.users.list(params={'sort_by': '-lastModifiedTime'})\n```\n\nSee [Sorting \u0026 Pagination](https://www.marqeta.com/api/docs/Vh2cbhwAAMsAF3db/sorting--pagination) for further details.\n\n### Specifying additional query parameters\n\nMost methods support specifying additional query parameters as a `params` dictionary. The keys and values are the same as the HTTP API.\n\n```\nclient.cards.find_show_pan(card_token, params={'show_cvv_number': True})\n```\n\n### Finding a specific objects\n\nCall the `find()` method on a resource collection, passing in the object's token.\n\n```\nuser = client.users.find(token)\n```\n\n### Creating objects\n\nCall the `create()` method of a resource collection, passing in `data` as a Python dict.\n\n```\ndata = {\n    'first_name': 'Sarah'\n}\ncreated_user = client.users.create(data)\n```\n\n### Updating objects\n\nCall the `save()` method of a resource collection, passing in the object's token and a Python dictionary containing the fields you wish to update.\n\n```\nfields_to_update = {\n    'first_name': 'Updated Value'\n}\nupdated_user = client.users.save(user_token, fields_to_update)\n```\n\n### Handling errors\n\nThe SDK will raise a `MarqetaError` exception for unsuccessful requests.\n\n```\nfrom marqeta import Client\nfrom marqeta.errors import MarqetaError\nfrom requests.exceptions import RequestException\n\ntry:\n    user = client.users.find(token)\nexcept MarqetaError as error:\n    print(error.code)\nexcept RequestException as error:\n    print(error)\n```\n\nThe exception's `code` card_products contains the value returned by the API in the JSON response. See [Error codes and messages](https://www.marqeta.com/api/docs/Vh2cTBwAAB8AF3aI/errors#error_codes_and_messages).\n\n## Resources\n\nThe library supports the following endpoints:\n\n| Endpoint | Python code |\n| -------- | ----------- |\n| [/acceptedcountries](#accepted-countries-acceptedcountries) | `client.accepted_countries` |\n| [/accountholdergroups](#account-holder-groups-accountholdergroups) | `client.account_holder_groups` |\n| [/authcontrols](#auth-controls-authcontrols) | `client.auth_controls` |\n| [/authcontrols/exemptmids](#exempt-mids-authcontrolsexemptmids) | `client.auth_controls.exempt_mids` |\n| [/autoreloads](#autoreloads-autoreloads) | `client.auto_reloads` |\n| [/balances](#balances-balances) | `client.balances` |\n| [/bulkissuances](#bulk-issuances-bulkissuances) | `client.bulk_issuances` |\n| [/businesses](#businesses-businesses) | `client.businesses` |\n| [/businesstransitions](#business-transitions-businesstransitions) | `client.businesses(business_token).transitions` |\n| [/businesses/{token}/notes](#business-notes-businessestokennotes) | `client.businesses(token).notes` |\n| [/cardproducts](#card-products-cardproducts) | `client.card_products` |\n| [/cards](#cards-cards) | `client.cards` |\n| [/cardtransitions](#card-transitions-cardtransitions) | `client.cards(token).transitions` |\n| [/chargebacks](#chargebacks-chargebacks) | `client.chargebacks` |\n| [/chargebacks/transitions](#chargeback-transitions-chargebackstransitions) | `client.chargebacks(token).transitions` |\n| [/commandomodes](#commando-modes-commandomodes) | `client.commando_modes` |\n| [/commandomodes/transitions](#commando-mode-transitions-commandomodestransitions) | `client.commando_modes(token).transitions` |\n| [/digitalwallettokens](#digital-wallet-tokens-digitalwallettokens) | `client.digital_wallet_tokens` |\n| [/digitalwallettokentransitions](#digital-wallet-token-transitions-digitalwallettokentransitions) | `client.digital_wallet_tokens(token).transitions` |\n| [/directdeposits](#direct-deposits-directdeposits) | `client.direct_deposits` |\n| [/directdeposits/transitions](#direct-deposit-transitions-directdepositstransitions) | `client.direct_deposits(token).transitions` |\n| [/directdeposits/accounts](#direct-deposit-accounts-directdepositsaccounts) | `client.direct_deposits.accounts` |\n| [/fees](#fees-fees) | `client.fees` |\n| [/feetransfers](#fee-transfers-feetransfers) | `client.fee_transfers` |\n| [/fundingsources](#funding-sources-fundingsources) | `client.funding_sources` |\n| [/fundingsources/addresses](#funding-source-addresses-fundingsourcesaddresses) | `client.funding_sources.addresses` |\n| [/fundingsources/ach](#ach-funding-sources-fundingsourcesach) | `client.funding_sources.ach` |\n| [/fundingsources/paymentcard](#payment-card-funding-sources-fundingsourcespaymentcard) | `client.funding_sources.payment_card` |\n| [/fundingsources/programgateway](#program-gateway-funding-sources-fundingsourcesprogramgateway) | `client.funding_sources.program_gateway` |\n| [/fundingsources/program](#program-funding-sources-fundingsourcesprogram) | `client.funding_sources.program` |\n| [/gpaorders](#gpa-orders-gpaorders) | `client.gpa_orders` |\n| [/gpaorders/unloads](#gpa-returns-gpaordersunloads) | `client.gpa_orders.unloads` |\n| [/kyc](#kyc-kyc) | `client.kyc` |\n| [/mccgroups](#mcc-groups-mccgroups) | `client.mcc_groups` |\n| [/merchants](#merchants-merchants) | `client.merchants` |\n| [/merchants/{token}/stores](#merchant-stores-merchantstokenstores) | `client.merchants(token).stores` |\n| [/msaorders](#msa-orders-msaorders) | `client.msa_orders` |\n| [/msaorders/unloads](#msa-order-unloads-msaordersunloads) | `client.msa_orders.unloads` |\n| [/offerorders](#offer-orders-offerorders) | `client.offer_orders` |\n| [/pins](#pin-control-tokens-pins) | `client.pins` |\n| [/programtransfers](#program-transfers-programtransfers) | `client.program_transfers` |\n| [/programtransfers/types](#program-transfer-types-programtransferstypes) | `client.program_transfers.types` |\n| [/pushtocards](#push-to-cards-pushtocards) | `client.push_to_cards` |\n| [/pushtocards/disburse](#push-to-card-disbursements-pushtocardsdisburse) | `client.push_to_cards.disburse` |\n| [/pushtocards/paymentcard](#push-to-card-payment-cards-pushtocardspaymentcard) | `client.push_to_cards.payment_card` |\n| [/realtimefeegroups](#realtime-fee-groups-realtimefeegroups) | `client.real_time_fee_groups` |\n| [/transactions](#transactions-transactions) | `client.transactions` |\n| [/transactions/{token}/related](#related-transations-transactionstokenrelated) | `client.transactions(token).related` |\n| [/users](#users-users) | `client.users` |\n| [/usertransitions](#user-transitions-usertransitions) | `client.users(token).transitions` |\n| [/users/{token}/notes](#user-notes-userstokennotes) | `client.users(token).notes` |\n| [/velocitycontrols](#velocity-controls-velocitycontrols) | `client.velocity_controls` |\n| [/webhooks](#webhooks-webhooks) | `client.webhooks` |\n\n### Examples\n\n\n#### Accepted Countries (`/acceptedcountries`)\n\n```\n# List all accepted countries\naccepted_countries = client.accepted_countries.list()\nfor accepted_country in client.accepted_countries.stream():\n    pass\naccepted_countries_page = client.accepted_countries.page(start_index=0)\n\n# Retrieve a specific accepted country\naccepted_country = client.accepted_countries.find(token)\n\n# Create an accepted country\naccepted_country = client.accepted_countries.create({...})\n\n# Update an accepted country\naccepted_country = client.accepted_countries.save(token, {...})\n```\n\n#### Account Holder Groups (`/accountholdergroups`)\n\n```\n# List all account holder groups\naccount_holder_groups = client.account_holder_groups.list()\nfor account_holder_group in client.account_holder_groups.stream():\n    pass\naccount_holder_groups_page = client.account_holder_groups.page(start_index=0)\n\n# Retrieve a specific account holder group\naccount_holder_group = client.account_holder_groups.find(token)\n\n# Create an account holder group\naccount_holder_group = client.account_holder_groups.create({...})\n\n# Update an account holder group\naccount_holder_group = client.account_holder_groups.save(token, {...})\n```\n\n#### Auth Controls (`/authcontrols`)\n\n```\n# List all auth controls\nauth_controls = client.auth_controls.list()\nfor auth_control in client.auth_controls.stream():\n    pass\nauth_controls_page = client.auth_controls.page(start_index=0)\n\n# Retrieve a specific auth control\nauth_control = client.auth_controls.find(token)\n\n# Create an auth control\nauth_control = client.auth_controls.create({...})\n\n# Update an auth control\nauth_control = client.auth_controls.save(token, {...})\n```\n\n#### Exempt MIDs (`/authcontrols/exemptmids`)\n\n```\n# List all exempt mids\nexempt_mi_ds = client.auth_controls.exempt_mids.list()\nfor exempt_mid in client.auth_controls.exempt_mids.stream():\n    pass\nexempt_mi_ds_page = client.auth_controls.exempt_mids.page(start_index=0)\n\n# Retrieve a specific exempt mid\nexempt_mid = client.auth_controls.exempt_mids.find(token)\n\n# Create an exempt mid\nexempt_mid = client.auth_controls.exempt_mids.create({...})\n\n# Update an exempt mid\nexempt_mid = client.auth_controls.exempt_mids.save(token, {...})\n```\n\n#### Autoreloads (`/autoreloads`)\n\n```\n# List all autoreloads\nautoreloads = client.auto_reloads.list()\nfor autoreload in client.auto_reloads.stream():\n    pass\nautoreloads_page = client.auto_reloads.page(start_index=0)\n\n# Retrieve a specific autoreload\nautoreload = client.auto_reloads.find(token)\n\n# Create an autoreload\nautoreload = client.auto_reloads.create({...})\n\n# Update an autoreload\nautoreload = client.auto_reloads.save(token, {...})\n```\n\n#### Balances (`/balances`)\n\n```\n# List all MSA balances\nbalances = client.balances.list_msas_for_user_or_business(token)\nfor balance in client.balances.stream_msas_for_user_or_business(token):\n    pass\n\n# Retrieve a specific balance\nbalance = client.balances.find_for_user_or_business(token)\n```\n\n#### Bulk Issuances (`/bulkissuances`)\n\n```\n# List all bulk issuances\nbulk_issuances = client.bulk_issuances.list()\nfor bulk_issuance in client.bulk_issuances.stream():\n    pass\nbulk_issuances_page = client.bulk_issuances.page(start_index=0)\n\n# Retrieve a specific bulk issuance\nbulk_issuance = client.bulk_issuances.find(token)\n\n# Create a bulk issuance\nbulk_issuance = client.bulk_issuances.create({...})\n```\n\n#### Businesses (`/businesses`)\n\n```\n# List all businesses\nbusinesses = client.businesses.list()\nfor business in client.businesses.stream():\n    pass\nbusinesses_page = client.businesses.page(start_index=0)\n\n# Retrieve a specific business\nbusiness = client.businesses.find(token)\n\n# Create a business\nbusiness = client.businesses.create({...})\n\n# Update a business\nbusiness = client.businesses.save(token, {...})\n\n# Retrieve a specific business SSN\nssn = client.businesses(token).ssn()\n\n# Retrieve a specific business Full SSN\nssn = client.businesses(token).ssn(full_ssn = True)\n\n# List all children of parent business\nchild_cardholders = client.businesses(token).children.list()\nfor child_cardholder in client.businesses(token).children.stream():\n    pass\nchild_cardholders_page = client.businesses(token).children.page(start_index=0)\n\n# Search for businesses\nbusinesss = client.businesses.look_up({...})\n```\n\n#### Business Transitions (`/businesstransitions`)\n\n```\n# Create a business transition\ntransition = client.businesses(business_token).transitions.create(...)\n\n# Retrieve a specific business transition\ntransition = client.businesses(business_token).transitions.find(token)\n\n# List transitions for a specific business\ntransitions = client.businesses(business_token).transitions.list()\nfor transition in client.businesses(business_token).transitions.stream():\n    pass\ntransitions_page = client.businesses(business_token).transitions.page(start_index=0)\n```\n\n#### Business Notes (`/businesses/{token}/notes`)\n\n```\n# List all business notes\nbusiness_notes = client.businesses(token).notes.list()\nfor business_note in client.businesses(token).notes.stream():\n    pass\nbusiness_notes_page = client.businesses(token).notes.page(start_index=0)\n\n# Create a business note\nbusiness_note = client.businesses(token).notes.create({...})\n\n# Update a business note\nbusiness_note = client.businesses(token).notes.save(token, {...})\n```\n\n#### Card Products (`/cardproducts`)\n\n```\n# List all card products. Default limit is 25.\ncard_products = client.card_products.list()\nfor card_product in client.card_products.stream():\n    pass\ncard_products_page = client.card_products.page(start_index=0)\n\n# Retrieve a specific card product\ncard_product = client.card_products.find(token)\n\n# Create a card product\ncard_product = client.card_products.create({...})\n\n# Update a card product\ncard_product = client.card_products.save(token, {...})\n```\n\n#### Cards (`/cards`)\n\n```\n# List cards by last 4\ncards = client.cards.list(last_four='6789')\nfor card in client.cards.stream():\n    pass\ncards_page = client.cards.page()\n\n# Lists all cards for one user\ncards = client.cards.list_for_user(token)\nfor card in client.cards.stream_for_user(token):\n    pass\n\n# Returns a specific card\ncard = client.cards.find(token)\n\n# Returns a specific card - PAN visible\ncard = client.cards.find_show_pan(token)\n\n# Retrieve a card by its barcode\ncard = client.cards.find_by_barcode(barcode)\n\n# Creates a card\ndata = {...}\ncard = client.cards.create(data)\n\n# Returns the user and card tokens for specified PAN\ntokens = client.cards.tokens_for_pan(pan)\n\n# Updates a card\ndata = {...}\ncard = client.cards.save(data)\n\n# Returns a merchant onboarding card\ncard = client.cards.find_for_merchant(token)\n\n# Returns a specific card - PAN visible\ncard = client.cards.find_for_merchant_show_pan(token)\n\n# Creates a merchant onboarding card\ndata = {...}\ncard = client.cards.create_for_merchant(token, data)\n```\n\n#### Card Transitions (`/cardtransitions`)\n\n```\n# Create a card transition\ntransition = client.cards(token).transitions.create(...)\n\n# Retrieve a specific card transition\ntransition = client.cards(token).transitions.find(token)\n\n# List transitions for a specific card\ntransitions = client.cards(token).transitions.list()\nfor transition in client.cards(token).transitions.stream():\n    pass\ntransitions_page = client.cards(token).transitions.page(start_index=0)\n```\n\n#### Chargebacks (`/chargebacks`)\n\n```\n# List all chargebacks\nchargebacks = client.chargebacks.list()\nfor chargeback in client.chargebacks.stream():\n    pass\nchargebacks_page = client.chargebacks.page(start_index=0)\n\n# Retrieve a specific chargeback\nchargeback = client.chargebacks.find(token)\n\n# Create a chargeback\nchargeback = client.chargebacks.create({...})\n\n# Grant provisional credit\nclient.chargebacks(token).grant_provisional_credit()\n\n# Reverse provisional credit\nclient.chargebacks(token).reverse_provisional_credit()\n```\n\n#### Chargeback Transitions (`/chargebacks/transitions`)\n\n```\n# Create a chargeback transition\ntransition = client.chargebacks(token).transitions.create(...)\n\n# Retrieve a specific chargeback transition\ntransition = client.chargebacks(token).transitions.find(token)\n\n# List transitions for a specific chargeback\ntransitions = client.chargebacks(token).transitions.list()\nfor transition in client.chargebacks(token).transitions.stream():\n    pass\ntransitions_page = client.chargebacks(token).transitions.page(start_index=0)\n```\n\n#### Commando Modes (`/commandomodes`)\n\n```\n# List all commando modes\ncommando_modes = client.commando_modes.list()\nfor commando_mode in client.commando_modes.stream():\n    pass\ncommando_modes_page = client.commando_modes.page(start_index=0)\n\n# Retrieve a specific commando mode\ncommando_mode = client.commando_modes.find(token)\n```\n\n#### Commando Mode Transitions (`/commandomodes/transitions`)\n\n```\n# Retrieve a specific commando mode transition\ntransition = client.commando_modes(token).transitions.find(token)\n\n# List transitions for a specific commando mode\ntransitions = client.commando_modes(token).transitions.list()\nfor transition in client.commando_modes(token).transitions.stream():\n    pass\ntransitions_page = client.commando_modes(token).transitions.page(start_index=0)\n```\n\n#### Digital Wallet Tokens (`/digitalwallettokens`)\n\n```\n# List all digital wallet tokens\ndigital_wallet_tokens = client.digital_wallet_tokens.list()\nfor digital_wallet_token in client.digital_wallet_tokens.stream():\n    pass\ndigital_wallet_tokens_page = client.digital_wallet_tokens.page(start_index=0)\n\n# Retrieve a specific digital wallet token\ndigital_wallet_token = client.digital_wallet_tokens.find(token)\n\n# Retrieve a specific digital wallet token with PAN\ndigital_wallet_token = client.digital_wallet_tokens.find_show_pan(token)\n```\n\n#### Digital Wallet Token Transitions (`/digitalwallettokentransitions`)\n\n```\n# Create a digital wallet token transition\ntransition = client.digital_wallet_tokens(token).transitions.create(...)\n\n# Retrieve a specific digital wallet token transition\ntransition = client.digital_wallet_tokens(token).transitions.find(token)\n\n# List transitions for a specific digital wallet token\ntransitions = client.digital_wallet_tokens(token).transitions.list()\nfor transition in client.digital_wallet_tokens(token).transitions.stream():\n    pass\ntransitions_page = client.digital_wallet_tokens(token).transitions.page(start_index=0)\n```\n\n#### Direct Deposits (`/directdeposits`)\n\n```\n# List all direct deposits\ndirect_deposits = client.direct_deposits.list()\nfor direct_deposit in client.direct_deposits.stream():\n    pass\ndirect_deposits_page = client.direct_deposits.page(start_index=0)\n\n# Retrieve a specific direct deposit\ndirect_deposit = client.direct_deposits.find(token)\n```\n\n#### Direct Deposit Transitions (`/directdeposits/transitions`)\n\n```\n# Create a direct deposit transition\ntransition = client.direct_deposits(token).transitions.create(...)\n\n# Retrieve a specific direct deposit transition\ntransition = client.direct_deposits(token).transitions.find(token)\n\n# List transitions for a specific direct deposit\ntransitions = client.direct_deposits(token).transitions.list()\nfor transition in client.direct_deposits(token).transitions.stream():\n    pass\ntransitions_page = client.direct_deposits(token).transitions.page(start_index=0)\n```\n\n#### Direct Deposit Accounts (`/directdeposits/accounts`)\n\n```\n\n# Retrieve a specific direct deposit account\ndirect_deposit_account = client.direct_deposits.accounts.find(token)\n\n# Update a direct deposit account\ndirect_deposit_account = client.direct_deposits.accounts.save(token, {...})\n```\n\n#### Fees (`/fees`)\n\n```\n# List all fees\nfees = client.fees.list()\nfor fee in client.fees.stream():\n    pass\nfees_page = client.fees.page(start_index=0)\n\n# Retrieve a specific fee\nfee = client.fees.find(token)\n\n# Create a fee\nfee = client.fees.create({...})\n\n# Update a fee\nfee = client.fees.save(token, {...})\n```\n\n#### Fee Transfers (`/feetransfers`)\n\n```\n\n# Retrieve a specific fee transfer\nfee_transfer = client.fee_transfers.find(token)\n\n# Create a fee transfer\nfee_transfer = client.fee_transfers.create({...})\n```\n\n#### Funding Sources (`/fundingsources`)\n\n```\n# List all funding sources for a specific user\nfunding_sources = client.list_for_user(user_token)\nfor funding_source in client.stream_for_user(user_token):\n    pass\n\n# List all funding sources for a specific business\nfunding_sources = client.list_for_business(business_token)\nfor funding_source in client.stream_for_business(business_token):\n    pass\n```\n\n#### Funding Source Addresses (`/fundingsources/addresses`)\n\n```\n\n# Retrieve a specific funding source address\nfunding_source_address = client.funding_sources.addresses.find(token)\n\n# Create a funding source address\nfunding_source_address = client.funding_sources.addresses.create({...})\n\n# Update a funding source address\nfunding_source_address = client.funding_sources.addresses.save(token, {...})\n\n# list funding source addresses for a specific user\naddresses = client.funding_sources.addresses.list_for_user(user_token)\nfor address in client.funding_sources.addresses.stream_for_user(user_token)\n    pass\n\n# list funding source addresses for a specific business\naddresses = client.funding_sources.addresses.list_for_business(business_token)\nfor address in client.funding_sources.addresses.stream_for_business(business_token)\n    pass\n```\n\n#### ACH Funding Sources (`/fundingsources/ach`)\n\n```\n\n# Retrieve a specific ach funding source\nach_funding_source = client.funding_sources.ach.find(token)\n\n# Create an ach funding source\nach_funding_source = client.funding_sources.ach.create({...})\n\n# Update an ach funding source\nach_funding_source = client.funding_sources.ach.save(token, {...})\n\n# Retrieve the dollar amounts used to verify an ACH funding source\nclient.funding_sources.addresses(token).verification_amounts()\n```\n\n#### Payment Card Funding Sources (`/fundingsources/paymentcard`)\n\n```\n\n# Retrieve a specific payment card funding source\npayment_card_funding_source = client.funding_sources.payment_card.find(token)\n\n# Create a payment card funding source\npayment_card_funding_source = client.funding_sources.payment_card.create({...})\n\n# Update a payment card funding source\npayment_card_funding_source = client.funding_sources.payment_card.save(token, {...})\n```\n\n#### Program Gateway Funding Sources (`/fundingsources/programgateway`)\n\n```\n\n# Retrieve a specific program gateway funding source\nprogram_gateway_funding_source = client.funding_sources.program_gateway.find(token)\n\n# Create a program gateway funding source\nprogram_gateway_funding_source = client.funding_sources.program_gateway.create({...})\n\n# Update a program gateway funding source\nprogram_gateway_funding_source = client.funding_sources.program_gateway.save(token, {...})\n```\n\n#### Program Funding Sources (`/fundingsources/program`)\n\n```\n\n# Retrieve a specific program funding source\nprogram_funding_source = client.funding_sources.program.find(token)\n\n# Create a program funding source\nprogram_funding_source = client.funding_sources.program.create({...})\n\n# Update a program funding source\nprogram_funding_source = client.funding_sources.program.save(token, {...})\n```\n\n#### GPA Orders (`/gpaorders`)\n\n```\n\n# Retrieve a specific gpa order\ngpa_order = client.gpa_orders.find(token)\n\n# Create a gpa order\ngpa_order = client.gpa_orders.create({...})\n```\n\n#### GPA Returns (`/gpaorders/unloads`)\n\n```\n# List all gpa returns\ngpa_returns = client.gpa_orders.unloads.list()\nfor gpa_return in client.gpa_orders.unloads.stream():\n    pass\ngpa_returns_page = client.gpa_orders.unloads.page(start_index=0)\n\n# Retrieve a specific gpa return\ngpa_return = client.gpa_orders.unloads.find(token)\n\n# Create a gpa return\ngpa_return = client.gpa_orders.unloads.create({...})\n```\n\n#### KYC (`/kyc`)\n\n```\n# List KYC results for a specific user\nkyc_results = client.kyc.list_for_user(user_token)\nfor kyc_result in client.kyc.stream_for_user(user_token):\n    pass\n\n# List KYC results for a specific business\nkyc_results = client.kyc.list_for_business(business_token)\nfor kyc_result in client.kyc.stream_for_business(business_token):\n    pass\n\n# Retrieve a specific KYC result\nkyc = client.kyc.find(token)\n\n# Update KYC answers\nclient.kyc.save(token, {...})\n\n# Perform a KYC operation\nclient.kyc.create({...})\n```\n\n#### MCC Groups (`/mccgroups`)\n\n```\n# List all mcc groups\nmcc_groups = client.mcc_groups.list()\nfor mcc_group in client.mcc_groups.stream():\n    pass\nmcc_groups_page = client.mcc_groups.page(start_index=0)\n\n# Retrieve a specific mcc group\nmcc_group = client.mcc_groups.find(token)\n\n# Create a mcc group\nmcc_group = client.mcc_groups.create({...})\n\n# Update a mcc group\nmcc_group = client.mcc_groups.save(token, {...})\n```\n\n#### Merchants (`/merchants`)\n\n```\n# List all merchants\nmerchants = client.merchants.list()\nfor merchant in client.merchants.stream():\n    pass\nmerchants_page = client.merchants.page(start_index=0)\n\n# Retrieve a specific merchant\nmerchant = client.merchants.find(token)\n\n# Create a merchant\nmerchant = client.merchants.create({...})\n\n# Update a merchant\nmerchant = client.merchants.save(token, {...})\n```\n\n#### Merchant Stores (`/merchants/{token}/stores`)\n\n```\n# List all merchant stores\nmerchant_stores = client.merchants(token).stores.list()\nfor merchant_store in client.merchants(token).stores.stream():\n    pass\nmerchant_stores_page = client.merchants(token).stores.page(start_index=0)\n```\n\n#### MSA Orders (`/msaorders`)\n\n```\n# Retrieve a specific msa order\nmsa_order = client.msa_orders.find(token)\n\n# Create a msa order\nmsa_order = client.msa_orders.create({...})\n\n# Update a msa order\nmsa_order = client.msa_orders.save(token, {...})\n```\n\n#### MSA Order Unloads (`/msaorders/unloads`)\n\n```\n# List all msa order unloads\nmsa_order_unloads = client.msa_orders.unloads.list()\nfor msa_order_unload in client.msa_orders.unloads.stream():\n    pass\nmsa_order_unloads_page = client.msa_orders.unloads.page(start_index=0)\n\n# Retrieve a specific msa order unload\nmsa_order_unload = client.msa_orders.unloads.find(token)\n\n# Create a msa order unload\nmsa_order_unload = client.msa_orders.unloads.create({...})\n```\n\n#### Offer Orders (`/offerorders`)\n\n```\n# Retrieve a specific offer order\noffer_order = client.offer_orders.find(token)\n\n# Create an offer order\noffer_order = client.offer_orders.create({...})\n```\n\n#### Pin Control Tokens (`/pins`)\n\n```\n# Create a pin control token\npin_control_token = client.pins.create({...})\n\n# Update a pin control token\npin_control_token = client.pins.save(token, {...})\n```\n\n#### Program Transfers (`/programtransfers`)\n\n```\n# List all program transfers\nprogram_transfers = client.program_transfers.list()\nfor program_transfer in client.program_transfers.stream():\n    pass\nprogram_transfers_page = client.program_transfers.page(start_index=0)\n\n# Retrieve a specific program transfer\nprogram_transfer = client.program_transfers.find(token)\n\n# Create a program transfer\nprogram_transfer = client.program_transfers.create({...})\n```\n\n#### Program Transfer Types (`/programtransfers/types`)\n\n```\n# List all program transfer types\nprogram_transfer_types = client.program_transfers.types.list()\nfor program_transfer_type in client.program_transfers.types.stream():\n    pass\nprogram_transfer_types_page = client.program_transfers.types.page(start_index=0)\n\n# Retrieve a specific program transfer type\nprogram_transfer_type = client.program_transfers.types.find(token)\n\n# Create a program transfer type\nprogram_transfer_type = client.program_transfers.types.create({...})\n\n# Update a program transfer type\nprogram_transfer_type = client.program_transfers.types.save(token, {...})\n```\n\n#### Push-to-Cards (`/pushtocards`)\n\n```\n# List all push-to-cards\npush_to_cards = client.push_to_cards.list()\nfor push_to_card in client.push_to_cards.stream():\n    pass\npush_to_cards_page = client.push_to_cards.page(start_index=0)\n\n# Retrieve a specific push-to-card\npush_to_card = client.push_to_cards.find(token)\n\n# Create a push-to-card\npush_to_card = client.push_to_cards.create({...})\n\n# Update a push-to-card\npush_to_card = client.push_to_cards.save(token, {...})\n```\n\n#### Push-to-Card Disbursements (`/pushtocards/disburse`)\n\n```\n# List all push-to-card disbursements\npush_to_card_disbursements = client.push_to_cards.disburse.list()\nfor push_to_card_disbursement in client.push_to_cards.disburse.stream():\n    pass\npush_to_card_disbursements_page = client.push_to_cards.disburse.page(start_index=0)\n\n# Retrieve a specific push-to-card disbursement\npush_to_card_disbursement = client.push_to_cards.disburse.find(token)\n\n# Create a push-to-card disbursement\npush_to_card_disbursement = client.push_to_cards.disburse.create({...})\n```\n\n#### Push-to-Card Payment Cards (`/pushtocards/paymentcard`)\n\n```\n# List all push-to-card payment cards\npush_to_card_payment_cards = client.push_to_cards.payment_card.list()\nfor push_to_card_payment_card in client.push_to_cards.payment_card.stream():\n    pass\npush_to_card_payment_cards_page = client.push_to_cards.payment_card.page(start_index=0)\n\n# Retrieve a specific push-to-card payment card\npush_to_card_payment_card = client.push_to_cards.payment_card.find(token)\n\n# Create a push-to-card payment card\npush_to_card_payment_card = client.push_to_cards.payment_card.create({...})\n```\n\n#### Realtime Fee Groups (`/realtimefeegroups`)\n\n```\n# List all realtime fee groups\nrealtime_fee_groups = client.real_time_fee_groups.list()\nfor realtime_fee_group in client.real_time_fee_groups.stream():\n    pass\nrealtime_fee_groups_page = client.real_time_fee_groups.page(start_index=0)\n\n# Retrieve a specific realtime fee group\nrealtime_fee_group = client.real_time_fee_groups.find(token)\n\n# Create a realtime fee group\nrealtime_fee_group = client.real_time_fee_groups.create({...})\n\n# Update a realtime fee group\nrealtime_fee_group = client.real_time_fee_groups.save(token, {...})\n```\n\n#### Transactions (`/transactions`)\n\n```\n# List all transactions\ntransactions = client.transactions.list()\nfor transaction in client.transactions.stream():\n    pass\ntransactions_page = client.transactions.page(start_index=0)\n\n# List all transactions for a specific funding source\ntransactions = client.transactions.list_for_funding_source(funding_source_token)\nfor transaction in client.transactions.stream_for_funding_source(funding_source_token):\n    pass\n\n# Retrieve a specific transaction\ntransaction = client.transactions.find(token)\n```\n\n#### Related Transations (`/transactions/{token}/related`)\n\n```\n# List all related transations\nrelated_transations = client.transactions(token).related.list()\nfor related_transation in client.transactions(token).related.stream():\n    pass\nrelated_transations_page = client.transactions(token).related.page(start_index=0)\n```\n\n#### Users (`/users`)\n\n```\n# List all users. Default limit is 1000.\nusers = client.users.list()\nfor user in client.users.stream():\n    pass\nusers_page = client.users.page(start_index=0)\n\n# Retrieve a specific user\nuser = client.users.find(token)\n\n# Create a user\nuser = client.users.create({...})\n\n# Update a user\nuser = client.users.save(token, {...})\n\n# Retrieve a specific user SSN\nssn = client.users(token).ssn()\n\n# Retrieve a specific user Full SSN\nssn = client.users(token).ssn(full_ssn = True)\n\n# List all children of parent user\nchild_cardholders = client.users(token).children.list()\nfor child_cardholder in client.users(token).children.stream():\n    pass\nchild_cardholders_page = client.users(token).children.page(start_index=0)\n\n# Search for users, if look_up data is not specified by default lists 1000 users \nusers = client.users.look_up({...})\n```\n\n#### User Transitions (`/usertransitions`)\n\n```\n# Create a user transition\ntransition = client.users(token).transitions.create(...)\n\n# Retrieve a specific user transition\ntransition = client.users(token).transitions.find(token)\n\n# List transitions for a specific user\ntransitions = client.users(token).transitions.list()\nfor transition in client.users(token).transitions.stream():\n    pass\ntransitions_page = client.users(token).transitions.page(start_index=0)\n```\n\n#### User Notes (`/users/{token}/notes`)\n\n```\n# List all user notes\nuser_notes = client.users(token).notes.list()\nfor user_note in client.users(token).notes.stream():\n    pass\nuser_notes_page = client.users(token).notes.page(start_index=0)\n\n# Create a user note\nuser_note = client.users(token).notes.create({...})\n\n# Update a user note\nuser_note = client.users(token).notes.save(token, {...})\n```\n\n#### Velocity Controls (`/velocitycontrols`)\n\n```\n# List all velocity controls\nvelocity_controls = client.velocity_controls.list()\nfor velocity_control in client.velocity_controls.stream():\n    pass\nvelocity_controls_page = client.velocity_controls.page(start_index=0)\n\n# Retrieve a specific velocity control\nvelocity_control = client.velocity_controls.find(token)\n\n# Create a velocity control\nvelocity_control = client.velocity_controls.create({...})\n\n# Update a velocity control\nvelocity_control = client.velocity_controls.save(token, {...})\n\n# List velocity controls available for a specific user\nvelocity_controls = list_available_for_user(user_token)\nfor velocity_control in stream_available_for_user(user_token):\n    pass\n```\n\n#### Webhooks (`/webhooks`)\n\n```\n# List all webhooks\nwebhooks = client.webhooks.list()\nfor webhook in client.webhooks.stream():\n    pass\nwebhooks_page = client.webhooks.page(start_index=0)\n\n# Retrieve a specific webhook\nwebhook = client.webhooks.find(token)\n\n# Create a webhook\nwebhook = client.webhooks.create({...})\n\n# Update a webhook\nwebhook = client.webhooks.save(token, {...})\n\n# Ping a webhook\nclient.webhooks(token).ping()\n\n# Resend a webhook\nclient.webhooks(token).resent(event_type, event_token)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarqeta%2Fmarqeta-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarqeta%2Fmarqeta-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarqeta%2Fmarqeta-python/lists"}