Developer
API Reference
OpenAPI spec tersedia di repo. Endpoint utama: payments, payouts, webhooks.
# Create payment (test key)
curl -X POST "$API/v1/payments" \
-H "Authorization: Bearer sk_test_..." \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"amount":"10000","currency":"IDR","description":"Order #1"}'
# Get payment
curl "$API/v1/payments/{id}" -H "Authorization: Bearer sk_test_..."
# Refund
curl -X POST "$API/v1/refunds" \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{"payment_id":"..."}'
# Interactive OpenAPI: $API/docs