New: Stripe & TossPayments integration guides now available →
curl --request POST \
--url https://api.headlesscommerce.io/v1/storefront/payments/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_key": "<string>",
"order_id": "<string>",
"amount": 123,
"provider": "tosspayments"
}
'{
"success": true,
"order_id": "<string>"
}Server-side final confirmation after client-side payment approval. Validates the payment amount and updates the order status.
curl --request POST \
--url https://api.headlesscommerce.io/v1/storefront/payments/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_key": "<string>",
"order_id": "<string>",
"amount": 123,
"provider": "tosspayments"
}
'{
"success": true,
"order_id": "<string>"
}