Skip to content

Latest commit

 

History

History
183 lines (121 loc) · 10.6 KB

README.md

File metadata and controls

183 lines (121 loc) · 10.6 KB

Capabilities

(capabilities)

Overview

Capabilities determine what a Moov account can do. Each capability has specific requirements, depending on risk and compliance standards associated with different account activities. For example, there are more information requirements for a business that wants to charge other accounts than for an individual who simply wants to receive funds.

When you request a capability, we list the information requirements for that capability. Once you submit the required information, we need to verify the data. Because of this, a requested capability may not immediately become active. Note, if an account requests and is approved for send-funds or collect-funds, the wallet capability is automatically enabled as well. For more detailed information on capabilities and capability IDs, read our capabilities guide.

Available Operations

get_capability

Retrieve a specific capability that an account has requested. Read our capabilities guide to learn more.

To use this endpoint from the browser, you'll need to specify the /accounts/{accountID}/capabilities.read scope when generating a token.

Example Usage

import moov
from moov import Moov
import os

s = Moov(
    gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)

res = s.capabilities.get_capability(account_id="15fbc94d-721f-44a3-b5fb-77f58657305f", capability_id=moov.CapabilityID.TRANSFERS)

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
account_id str ✔️ ID of the account.
capability_id models.CapabilityID ✔️ The requested capability identifier.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.GetCapabilityResponse

Errors

Error Type Status Code Content Type
models.SDKError 4XX, 5XX */*

disable_capability

Disable a specific capability that an account has requested. Read our capabilities guide to learn more.

To use this endpoint from the browser, you'll need to specify the /accounts/{accountID}/capabilities.write scope when generating a token.

Example Usage

import moov
from moov import Moov
import os

s = Moov(
    gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)

res = s.capabilities.disable_capability(account_id="c57b48d7-4182-4632-a345-eeed5a742b0d", capability_id=moov.CapabilityID.CARD_ISSUING)

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
account_id str ✔️ ID of the account.
capability_id models.CapabilityID ✔️ The requested capability identifier.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.DisableCapabilityResponse

Errors

Error Type Status Code Content Type
models.SDKError 4XX, 5XX */*

list_capabilities

Retrieve all the capabilities an account has requested. Read our capabilities guide to learn more.

To use this endpoint from the browser, you'll need to specify the /accounts/{accountID}/capabilities.read scope when generating a token.

Example Usage

from moov import Moov
import os

s = Moov(
    gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)

res = s.capabilities.list_capabilities(account_id="c236a258-0a99-455d-9fbb-2312bc028cd2")

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
account_id str ✔️ ID of the account.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.ListCapabilitiesResponse

Errors

Error Type Status Code Content Type
models.SDKError 4XX, 5XX */*

add_capabilities

Request capabilities for a specific account. Read our capabilities guide to learn more.

To use this endpoint from the browser, you'll need to specify the /accounts/{accountID}/capabilities.write scope when generating a token.

Example Usage

import moov
from moov import Moov
import os

s = Moov(
    gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)

res = s.capabilities.add_capabilities(account_id="f48b82c3-158f-4a65-9070-bd22afd441ea", add_capability_request={
    "capabilities": [
        moov.CapabilityID.TRANSFERS,
    ],
})

if res is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
account_id str ✔️ ID of the account.
add_capability_request models.AddCapabilityRequest ✔️ N/A
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

models.AddCapabilitiesResponse

Errors

Error Type Status Code Content Type
models.CapabilityRequestError 409 application/json
models.SDKError 4XX, 5XX */*