Skip to main content
POST
Authorize the active attempt

Authorizations

Authorization
string
header
required

Your secret key, e.g. sk_live_... or sk_sandbox_....

Headers

X-Idempotency-Key
string

Optional key, 8 to 128 characters, that makes this request safe to retry. The first response is stored for 24 hours; a repeat returns it unchanged with X-Idempotent-Replayed: true.

Required string length: 8 - 128

Path Parameters

paymentIntentId
string
required

The payment intent id.

Body

application/json
otp
string

Required when next_action.type is collect_otp.

Maximum string length: 10
Example:

"123456"

confirmation_data
object

Fields requested by the current next action.

Response

The updated payment intent.

message
string
data
object