Skip to main content
POST
Confirm a payment with your bank

Authorizations

Authorization
string
header
required

An API key from Settings → API keys, sent as Authorization: Bearer kb_live_…. A workspace key starts kb_; a personal key starts kbp_ and acts as its owner.

Headers

Idempotency-Key
string
required

A unique key (a UUID works) for this request. Retrying with the same key returns the first answer instead of running twice.

Maximum string length: 255
Kallabot-Version
enum<string>

The API version to answer as, a date (YYYY-MM-DD). Leave it out for the current version (2026-11-07). An unknown version is refused with 400 unsupported_api_version.

Available options:
2026-11-07
Example:

"2026-11-07"

Path Parameters

payment_intent_id
string
required
Pattern: ^pi_[A-Za-z0-9]{1,250}$

Response

Successful Response

payment_intent_id
string
required
status
enum<string>
required
Available options:
succeeded,
authorized,
requires_action,
requires_payment_method,
processing,
failed,
canceled
amount
integer
required
currency
string
required
client_secret
string | null

When the bank must confirm it, or a new card is needed.

kind
string | null

topup, number, auto_topup, addon …

needs_confirmation
boolean
default:false

A charge made while you were away that the bank wants you to confirm (requires_payment_method only because of that): call POST …/confirm, then Stripe.js handleNextAction. False on a real decline: pay with another card.

error
string | null

Why the card was declined, in the bank's words.