Skip to content

Latest commit

 

History

History
110 lines (73 loc) · 11 KB

README.md

File metadata and controls

110 lines (73 loc) · 11 KB

PaymentMethods

(payment_methods)

Overview

Available Operations

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/payment-methods.read scope.

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/payment-methods.read scope.

list

Retrieve a list of payment methods associated with a Moov account. Read our payment methods guide to learn more.

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/payment-methods.read scope.

Example Usage

from moovio_sdk import Moov
from moovio_sdk.models import components


with Moov(
    security=components.Security(
        username="",
        password="",
    ),
) as moov:

    res = moov.payment_methods.list(account_id="c8a232aa-0b11-4b8a-b005-71e9e705d0e6")

    # Handle response
    print(res)

Parameters

Parameter Type Required Description
account_id str ✔️ N/A
source_id Optional[str] Optional parameter to filter the account's payment methods by source ID.

A source ID can be a walletID, cardID,
or bankAccountID.
payment_method_type Optional[components.PaymentMethodType] Optional parameter to filter the account's payment methods by payment method type.
retries Optional[utils.RetryConfig] Configuration to override the default retry behavior of the client.

Response

operations.ListPaymentMethodsResponse

Errors

Error Type Status Code Content Type
errors.APIError 4XX, 5XX */*

get

Get the specified payment method associated with a Moov account. Read our payment methods guide to learn more.

To access this endpoint using an access token you'll need to specify the /accounts/{accountID}/payment-methods.read scope.

Example Usage

from moovio_sdk import Moov
from moovio_sdk.models import components


with Moov(
    security=components.Security(
        username="",
        password="",
    ),
) as moov:

    res = moov.payment_methods.get(account_id="b888f774-3e7c-4135-a18c-6b985523c4bc", payment_method_id="e50f7622-81da-484b-9c66-1c8a99c6b71b")

    # Handle response
    print(res)

Parameters

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

Response

operations.GetPaymentMethodResponse

Errors

Error Type Status Code Content Type
errors.APIError 4XX, 5XX */*