Skip to main content
POST
/
checkout
/
credits
/
confirm
Confirm credit purchase
curl --request POST \
  --url https://billing.platform.arb.inc/checkout/credits/confirm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "paymentIntentId": "pi_3MtwBwLkdIwHu7ix28a3tqPa"
}
'
{
  "success": true,
  "creditsAdded": 50,
  "newBalance": 200.5,
  "transactionId": "9d1e2f3a-4b5c-6d7e-8f9a-0b1c2d3e4f5a"
}

Authorizations

Authorization
string
header
required

access token

Body

application/json
paymentIntentId
string
required

Stripe PaymentIntent ID (pi_xxx format, 1-255 characters)

Example:

"pi_3MtwBwLkdIwHu7ix28a3tqPa"

Response

Credits successfully added to balance

success
boolean
Example:

true

creditsAdded
integer
Example:

50

newBalance
number
Example:

200.5

transactionId
string
Example:

"9d1e2f3a-4b5c-6d7e-8f9a-0b1c2d3e4f5a"