(payment_methods)
- 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.
- 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.
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.
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)
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. |
operations.ListPaymentMethodsResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.APIError | 4XX, 5XX | */* |
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.
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)
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. |
operations.GetPaymentMethodResponse
Error Type | Status Code | Content Type |
---|---|---|
errors.APIError | 4XX, 5XX | */* |