Skip to main content

Integration Guide with Kukuruku

System Overview​

Kukuruku is a platform that connects users with merchants through a unified wallet and authentication system.

Components​

ComponentDescriptionURL
KukurukuAggregator website — displays merchants, enables balance top-up and gameplaykukuruku.win
KukuPayUnified wallet for deposits, withdrawals and balance managementwallet.kukuruku.win
KukurukuIDOAuth 2.0 authentication server based on OpenID Connectauth.kukuruku.win

API Base URL​

https://api.kukuruku.win

All API endpoints use this base URL. For local development: https://api.kukuruku.local.

Getting Started​

Register your project with the Kukuruku team through the merchant dashboard or contact your account manager. The credentials you receive depend on the integration scenario you choose.

Integration Scenarios​

Kukuruku supports three integration scenarios. Choose the one that fits your needs, or combine them for full functionality.

1. Payment Integration​

Accept deposits from Kukuruku users and process withdrawals back to their KukuPay wallets.

Credentials required:

CredentialDescriptionWhere to find
merchant_idYour unique merchant identifierMerchant dashboard → Profile (header)
secret_keySecret key for signing API requestsMerchant dashboard → Profile → "Api secret"

What you get:

  • Create payin orders (user deposits to your platform)
  • Create payout orders (withdraw from your platform to KukuPay)
  • Receive real-time callbacks on order status changes
  • Query order status at any time

Authentication: HMAC-SHA512 request signature — no OAuth required.

Payment Integration Guide


2. KukurukuID (OAuth 2.0)​

Add "Login with KukurukuID" to your website. Users authenticate through Kukuruku's OAuth 2.0 server and you receive their profile data.

Credentials required:

CredentialDescriptionWhere to find
client_idOAuth 2.0 client identifierRequest from support team via chat
client_secretOAuth 2.0 client secret (for server-side apps)Request from support team via chat
redirect_uriApproved callback URL(s) for your applicationAgreed with support team

What you get:

  • Single Sign-On for Kukuruku users
  • Access to user profile (name, email, currency)
  • Authorization Code flow (server-side) or PKCE (client-side)

Authentication: OAuth 2.0 access tokens — no merchant_id or secret_key required.

KukurukuID Integration Guide


3. Auto-Login (Play Button)​

When a user clicks "Play" on a merchant card in Kukuruku, they are automatically redirected to your platform with authentication and a pre-paid order. This combines Payment Integration and KukurukuID.

Credentials required: All credentials from both scenarios above:

CredentialUsed forWhere to find
merchant_idOrder creationMerchant dashboard → Profile
secret_keyRequest signatureMerchant dashboard → Profile → "Api secret"
client_idOAuth 2.0 authenticationRequest from support team via chat
client_secretToken exchangeRequest from support team via chat
redirect_uriCallback after authenticationAgreed with support team

What you get:

  • Seamless user experience — one click from Kukuruku to your platform
  • Automatic order creation and payment
  • User auto-login via KukurukuID

Requirements: Both Payment Integration and KukurukuID must be configured.

Auto-Login Integration Guide


Authentication Methods​

Kukuruku API uses two authentication methods depending on the context:

MethodWhen to useDetails
Request SignatureServer-to-server API calls (orders, callbacks)HMAC-SHA512 signature in signature HTTP header. Details
OAuth 2.0 TokenUser context API calls (/api/v1/me)Bearer token in Authorization header. Details

Amount Format​

All monetary amounts in the API are specified in the smallest currency unit (kopecks for RUB, cents for USD):

Display amountAPI valueCurrency
500 RUB50000RUB
10.50 USD1050USD
100 USDT10000USDT

Order Statuses​

StatusDescription
createdOrder created, awaiting payment
processingPayment is being processed
paidPayment completed successfully
cancelledOrder cancelled
expiredOrder expired (not paid in time)
failedPayment failed

Support​

For integration questions, contact the Kukuruku team through your merchant dashboard or reach out to your account manager.