API integration

Contract preview. This interface is not available for public use yet. Keep all secret keys server-side.

# Local development API · public access remains gated
# Set KHPAYMENT_API_KEY privately; use a test key for simulations.
curl --fail-with-body --silent --show-error 'https://khpayment-dev.161-118-223-128.sslip.io/api/v1/payments' \
  -H "Authorization: Bearer $KHPAYMENT_API_KEY" \
  -H 'Idempotency-Key: example-order-001' \
  -H 'Content-Type: application/json' \
  --data '{"amount":"12.50","currency":"USD"}'
Authentication guide