Skip to main content
POST
/
checkout
/
capture-payment-intent
Capture Payment Intent
curl --request POST \
  --url https://api.nuwebgroup.com/v1/checkout/capture-payment-intent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "basketId": 1,
  "paymentIntentId": "pi_1IBfxIEox0pmxcHlhriYbhhi"
}
'
{
  "message": "Unauthenticated."
}

Authorizations

Authorization
string
header
required

The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.

Body

application/json

Request body capturing a payment intent.

basketId
integer
paymentIntentId
string

Response

Successfully captured payment intent.