Skip to content

List payment methods

List the cards and PayPal accounts saved on your account. Pass an id from this list as payment_method when you confirm a booking.

GET /api/v5/members/payment-methods

Requires your API key in the api-key header.

Cards and PayPal accounts are added in the members area, not through the API: sign in at members.transdirect.com.au, go to Settings > Payment Methods, and choose Add a card or Add PayPal. See payments.

Terminal window
curl https://api.transdirect.com.au/api/v5/members/payment-methods \
-H "api-key: $TD_API_KEY"
import { client, getApiV5MembersPaymentMethods, postApiV5BookingsByIdConfirm } from '@transdirect/api-sdk';
client.setConfig({ headers: { 'api-key': process.env.TD_API_KEY! } });
const { data: methods } = await getApiV5MembersPaymentMethods();
const card = methods?.find((method) => method.type === 'credit_card' && method.is_default) ?? methods?.[0];
if (!card) throw new Error('Add a card or PayPal in the members area first');
await postApiV5BookingsByIdConfirm({
path: { id: '623630' },
body: { courier: 'couriers_please', pickup_date: '2026-10-19', payment_method: card.id },
});

200 OK with an array. Cards come first, then PayPal accounts, each in the order they were added. An account with nothing saved returns [].

[
{
"id": "nab_4821",
"type": "credit_card",
"masked_label": "Visa ending 4242",
"is_default": true
},
{
"id": "paypal_377",
"type": "paypal",
"masked_label": "PayPal (accounts@example.com)",
"is_default": false
}
]
FieldTypeDescription
idstringPass this as payment_method at confirm: nab_<id> for a card, paypal_<id> for PayPal.
typestringcredit_card or paypal.
masked_labelstringA label to show your user, such as Visa ending 4242 or PayPal (accounts@example.com). Display it as is; do not parse it.
is_defaultbooleanWhether this is marked as the default card, or the default PayPal account. A card and a PayPal account can both be true.

Only active methods are listed. Card expiry is not checked, so an expired card still appears and is declined at confirm with a 402. A credit account is not a saved method and does not appear here; check credit_limit on get your account.

StatusBodyCause
401{"error":"missing_api_key"} or {"error":"invalid_api_key"}No key, or a key that is not active.
429{"error":"rate_limited"}More than 600 requests a minute on this key. Wait for the retry-after seconds.

Open the API Explorer, add your key, and find List saved payment methods for the authenticated member.