Skip to content

payment_failed

Payment failed. HTTP status 400.

The card charge for this invoice did not go through. The detail and paymentFailure.kind say why, for example a declined card, insufficient funds or an expired card.

What to do

Do not retry the same card unchanged. Pay with another saved card in savedCardId, or get a payment link with POST /api/v2/billing/invoices/{id}/actions/generate-payment-link.

What the message says

  • Your card has insufficient funds.

Example

Response 400
{
"type": "https://developer.hostup.se/errors/payment_failed",
"title": "Payment failed",
"status": 400,
"detail": "Your card has insufficient funds.",
"code": "payment_failed",
"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.

Endpoints that return it