{
"amount": 100000,
"currency": "IDR",
"customerId": "customer_test_123",
"description": "Test payment",
"metadata": {
"order_id": "order_456"
}
}curl --location --request POST '/v1/payment-intents' \
--header 'X-Secret-Key: sk_**************************' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 100000,
"currency": "IDR",
"customerId": "customer_test_123",
"description": "Test payment",
"metadata": {
"order_id": "order_456"
}
}'{
"amount": 75000,
"clientSecret": "pi_2e718067-a60d-4969-808c-f93458b65b47_secret_llySD6QRbjygi6nfaWiZyQx78467oOMYw_Fcna2dxd0",
"createdAt": "2026-02-02T04:25:07.617558Z",
"currency": "IDR",
"id": "726f2fec-2431-40cf-b21c-304835e92715",
"metadata": {
"orderId": "order_1"
},
"status": "created"
}