GET /user/paymethods/{paymethod_id}
Retrieve one of the authenticated client's stored payment methods.
Request
- Base URLhttps://developers.whmcs.com/api/v2
- Authnone declared
Path parameters
paymethod_idinteger required
Example:12
A stored payment method ID from the GET /user/paymethods endpoint. This is the same value that the POST /cart/{cart_id}/checkout endpoint accepts as the payment.paymethod_id value.
The minimum possible value is 1.
Response
The stored payment method.
Example response
{
"data": {
"id": 12,
"type": "RemoteCreditCard",
"kind": "card",
"description": "Weekend Card",
"gateway": "stripe_dynamic",
"gateway_is_active": true,
"is_default": true,
"label": "Visa-4242",
"card_type": "Visa",
"card_last_four": "4242",
"expiry_date": "06/30",
"bank_name": "STRIPE TEST BANK"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.