Retrieve a payment method
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.
curl -X GET "https://api.moov.io/accounts/{accountID}/payment-methods/{paymentMethodID}" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2026.04.00"mc, _ := moov.NewClient()
var accountID string
var paymentMethodID string
mc.GetPaymentMethod(ctx, accountID, paymentMethodID)
import { Moov } from "@moovio/sdk";
const moov = new Moov({
security: {
username: "",
password: "",
},
});
async function run() {
const result = await moov.paymentMethods.get({
accountID: "56878537-30b0-48ee-9c54-07ab3a8b243d",
paymentMethodID: "aa740bf3-4c5f-459b-9370-4f7d4bea382b",
});
console.log(result);
}
run();declare(strict_types=1);
require 'vendor/autoload.php';
use Moov\MoovPhp;
use Moov\MoovPhp\Models\Components;
$sdk = MoovPhp\Moov::builder()
->setSecurity(
new Components\Security(
username: '',
password: '',
)
)
->build();
$response = $sdk->paymentMethods->get(
accountID: '56878537-30b0-48ee-9c54-07ab3a8b243d',
paymentMethodID: 'aa740bf3-4c5f-459b-9370-4f7d4bea382b'
);
if ($response->paymentMethod !== null) {
// handle response
}package hello.world;
import io.moov.sdk.Moov;
import io.moov.sdk.models.components.PaymentMethod;
import io.moov.sdk.models.components.Security;
import io.moov.sdk.models.operations.GetPaymentMethodResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Moov sdk = Moov.builder()
.security(Security.builder()
.username("")
.password("")
.build())
.build();
GetPaymentMethodResponse res = sdk.paymentMethods().get()
.accountID("56878537-30b0-48ee-9c54-07ab3a8b243d")
.paymentMethodID("aa740bf3-4c5f-459b-9370-4f7d4bea382b")
.call();
if (res.paymentMethod().isPresent()) {
PaymentMethod unionValue = res.paymentMethod().get();
switch (unionValue.paymentMethodType()) {
case "moov-wallet":
// Handle moov-wallet discriminator variant
break;
case "ach-debit-fund":
// Handle ach-debit-fund discriminator variant
break;
case "ach-debit-collect":
// Handle ach-debit-collect discriminator variant
break;
case "ach-credit-standard":
// Handle ach-credit-standard discriminator variant
break;
case "ach-credit-same-day":
// Handle ach-credit-same-day discriminator variant
break;
case "rtp-credit":
// Handle rtp-credit discriminator variant
break;
case "card-payment":
// Handle card-payment discriminator variant
break;
case "push-to-card":
// Handle push-to-card discriminator variant
break;
case "pull-from-card":
// Handle pull-from-card discriminator variant
break;
case "apple-pay":
// Handle apple-pay discriminator variant
break;
case "card-present-payment":
// Handle card-present-payment discriminator variant
break;
case "instant-bank-credit":
// Handle instant-bank-credit discriminator variant
break;
case "push-to-apple-pay":
// Handle push-to-apple-pay discriminator variant
break;
case "pull-from-apple-pay":
// Handle pull-from-apple-pay discriminator variant
break;
case "google-pay":
// Handle google-pay discriminator variant
break;
case "push-to-google-pay":
// Handle push-to-google-pay discriminator variant
break;
case "pull-from-google-pay":
// Handle pull-from-google-pay discriminator variant
break;
default:
// Handle unknown discriminator variant
}
}
}
}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="56878537-30b0-48ee-9c54-07ab3a8b243d", payment_method_id="aa740bf3-4c5f-459b-9370-4f7d4bea382b")
# Handle response
print(res)require 'moov_ruby'
Models = ::Moov::Models
s = ::Moov::Client.new(
security: Models::Components::Security.new(
username: '',
password: ''
)
)
res = s.payment_methods.get(account_id: '56878537-30b0-48ee-9c54-07ab3a8b243d', payment_method_id: 'aa740bf3-4c5f-459b-9370-4f7d4bea382b')
unless res.payment_method.nil?
# handle response
endusing Moov.Sdk;
using Moov.Sdk.Models.Components;
var sdk = new MoovClient(security: new Security() {
Username = "",
Password = "",
});
var res = await sdk.PaymentMethods.GetAsync(
accountID: "56878537-30b0-48ee-9c54-07ab3a8b243d",
paymentMethodID: "aa740bf3-4c5f-459b-9370-4f7d4bea382b"
);
// handle response{
"paymentMethodID": "string",
"paymentMethodType": "moov-wallet",
"wallet": {
"walletID": "string",
"partnerAccountID": "string",
"walletType": "default"
}
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Headers
X-Moov-Version
string
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
v2026.04.00
Path parameters
Response
wallet
object
Show child attributes
wallet
walletType
string<enum>
required
Type of a wallet.
default: The system-generated wallet automatically created when an account is granted the wallet capability.general: An additional, user-defined wallet created via API or Dashboard.card-issuing: The system-generated wallet automatically created when an account is granted the card-issuing capability.
default,
general,
card-issuing
bankAccount
object
Show child attributes
bankAccount
bankAccountType
string<enum>
required
checking,
savings,
general-ledger,
loan
fingerprint
string
<=100 characters
required
Once the bank account is linked, we don't reveal the full bank account number.
The fingerprint acts as a way to identify whether two linked bank accounts are the same.
bankAccount
object
Show child attributes
bankAccount
bankAccountType
string<enum>
required
checking,
savings,
general-ledger,
loan
fingerprint
string
<=100 characters
required
Once the bank account is linked, we don't reveal the full bank account number.
The fingerprint acts as a way to identify whether two linked bank accounts are the same.
bankAccount
object
Show child attributes
bankAccount
bankAccountType
string<enum>
required
checking,
savings,
general-ledger,
loan
fingerprint
string
<=100 characters
required
Once the bank account is linked, we don't reveal the full bank account number.
The fingerprint acts as a way to identify whether two linked bank accounts are the same.
bankAccount
object
Show child attributes
bankAccount
bankAccountType
string<enum>
required
checking,
savings,
general-ledger,
loan
fingerprint
string
<=100 characters
required
Once the bank account is linked, we don't reveal the full bank account number.
The fingerprint acts as a way to identify whether two linked bank accounts are the same.
bankAccount
object
Show child attributes
bankAccount
bankAccountType
string<enum>
required
checking,
savings,
general-ledger,
loan
fingerprint
string
<=100 characters
required
Once the bank account is linked, we don't reveal the full bank account number.
The fingerprint acts as a way to identify whether two linked bank accounts are the same.
card
object
Show child attributes
card
billingAddress
object
required
Show child attributes
card.billingAddress
bin
string
[6 to 8] characters
required
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
cardVerification
object
required
Show child attributes
card.cardVerification
addressLine1
string
required
postalCode; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
cvv
string
required
noMatch,
match,
notChecked,
unavailable,
partialMatch
postalCode
string
required
addressLine1; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
accountName
object
Show child attributes
card.cardVerification.accountName
firstName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fullName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fingerprint
string
<=100 characters
required
cardAccountUpdater
object
domesticPullFromCard
string<enum>
not-supported,
supported,
unknown
card
object
Show child attributes
card
billingAddress
object
required
Show child attributes
card.billingAddress
bin
string
[6 to 8] characters
required
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
cardVerification
object
required
Show child attributes
card.cardVerification
addressLine1
string
required
postalCode; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
cvv
string
required
noMatch,
match,
notChecked,
unavailable,
partialMatch
postalCode
string
required
addressLine1; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
accountName
object
Show child attributes
card.cardVerification.accountName
firstName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fullName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fingerprint
string
<=100 characters
required
cardAccountUpdater
object
domesticPullFromCard
string<enum>
not-supported,
supported,
unknown
card
object
Show child attributes
card
billingAddress
object
required
Show child attributes
card.billingAddress
bin
string
[6 to 8] characters
required
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
cardVerification
object
required
Show child attributes
card.cardVerification
addressLine1
string
required
postalCode; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
cvv
string
required
noMatch,
match,
notChecked,
unavailable,
partialMatch
postalCode
string
required
addressLine1; the card network returns a single code covering both address fields.
noMatch,
match,
notChecked,
unavailable,
partialMatch
accountName
object
Show child attributes
card.cardVerification.accountName
firstName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fullName
string
noMatch,
match,
notChecked,
unavailable,
partialMatch
fingerprint
string
<=100 characters
required
cardAccountUpdater
object
domesticPullFromCard
string<enum>
not-supported,
supported,
unknown
applePay
object
Show child attributes
applePay
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Apple.
It usually contains the brand and the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
dynamicLastFour
string
required
fingerprint
string
<=100 characters
required
terminalCard
object
Show child attributes
terminalCard
brand
string<enum>
American Express,
Discover,
Mastercard,
Visa,
Unknown
entryMode
string<enum>
contactless
fingerprint
string
<=100 characters
bankAccount
object
Show child attributes
bankAccount
bankAccountType
string<enum>
required
checking,
savings,
general-ledger,
loan
fingerprint
string
<=100 characters
required
Once the bank account is linked, we don't reveal the full bank account number.
The fingerprint acts as a way to identify whether two linked bank accounts are the same.
applePay
object
Show child attributes
applePay
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Apple.
It usually contains the brand and the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
dynamicLastFour
string
required
fingerprint
string
<=100 characters
required
applePay
object
Show child attributes
applePay
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Apple.
It usually contains the brand and the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
dynamicLastFour
string
required
fingerprint
string
<=100 characters
required
googlePay
object
Show child attributes
googlePay
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Google Pay.
It usually contains the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
dynamicLastFour
string
4 characters
required
fingerprint
string
<=100 characters
required
googlePay
object
Show child attributes
googlePay
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Google Pay.
It usually contains the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
dynamicLastFour
string
4 characters
required
fingerprint
string
<=100 characters
required
googlePay
object
Show child attributes
googlePay
brand
string<enum>
required
American Express,
Discover,
Mastercard,
Visa,
Unknown
cardDisplayName
string
required
User-friendly name of the tokenized card returned by Google Pay.
It usually contains the last four digits of the underlying card. There is no standard format.
cardType
string<enum>
required
debit,
credit,
prepaid,
unknown
dynamicLastFour
string
4 characters
required
fingerprint
string
<=100 characters
required