Set default payment method for payer
Set a specific payment method as the default for a payer.
Authentication
x-api-keystring
RootPay API key sent in the x-api-key header. Keys are environment-scoped: live_* for production, test_* for sandbox.
OR
AuthorizationBearer
Short-lived session JWT from the Session Tokens API. Send as Authorization: Bearer <token>. Accepted on payment-method endpoints for a specific payee or payer; mint tokens with an API key.
Path parameters
payer_id
payment_method_id
Response
Payment method set as default successfully
data
Shared response model for bank payment methods (both payee and payer).
warning
Errors
404
Not Found Error