payment_method_invalid
Payment method invalid. HTTP status 409.
The invoice was to be paid by saved card, but the account has no card on file or the card in savedCardId could not be confirmed. No charge was made.
What to do
Send the id of another saved card from GET /api/v2/billing/cards in savedCardId, or add a card first. You can also pay through a link from POST /api/v2/billing/invoices/{id}/actions/generate-payment-link.
What the message says
- Add a card on file before paying this invoice by saved card.
Example
{ "type": "https://developer.hostup.se/errors/payment_method_invalid", "title": "Payment method invalid", "status": 409, "detail": "Add a card on file before paying this invoice by saved card.", "code": "payment_method_invalid", "requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"}Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.