Payment Methods
Get the default payment method for a customer
Changed onReturns the customer's default card for the authenticated provider. Sourced from stored payment-method records (no Stripe round-trip). Returns { kind: 'none' } when no card is on file.
get/v1/sdk/payment-method
Request
- Base URLhttps://api.solvapay.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
customerRefstring required
Customer reference (e.g. customer_...).
Response
The customer's default card, or { kind: 'none' } when no card is on file.
Example response
{
"brand": "visa",
"expMonth": 12,
"expYear": 2030,
"last4": "4242",
"reusable": true
}Changes
- info
added the required property
/to the response with the status
- info
- info
the endpoint scheme security
SecretKeywas added to the API - info
the endpoint scheme security
bearerwas removed from the API
- info