Skip to main content

TypeScript SDK - Coming Soon

The Retorna SDK for TypeScript/Node.js is in development and will be available soon.

Planned Features​

  • ✅ Full support for all Retorna operations
  • ✅ Automatic OAuth2 authentication
  • ✅ RSA digital signatures
  • ✅ Robust error handling
  • ✅ Country/platform validation
  • ✅ Strong typing with TypeScript
  • ✅ Async/await support
  • ✅ Compatible with Node.js and browsers

Expected Requirements​

  • Node.js 18 or higher
  • npm or yarn for dependency management
  • TypeScript 4.5+ (optional, but recommended)

Installation (Coming Soon)​

npm install @retorna/sdk
# or
yarn add @retorna/sdk

Basic Usage (Coming Soon)​

import { RetornaClient, Environment, LoggingLevel } from '@retorna/sdk';

// Create client
const client = RetornaClient.create({
environment: Environment.DEVELOP,
loggingLevel: LoggingLevel.INFO,
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
privateKey: 'YOUR_PRIVATE_KEY_PEM'
});

// Get balance
const balance = await client.account.getBalance();
console.log(`Balance: ${balance.totalBalance}`);

Using with TypeScript​

The SDK will include full TypeScript types:

import { RetornaClient, CreateOrderInput, OrderResponse } from '@retorna/sdk';

async function createOrder(): Promise<OrderResponse> {
const input: CreateOrderInput = {
// ... configuration
};

const order = await client.order.createPayoutOrder(input);
return order;
}

Development Status​

The TypeScript SDK is currently in development. Full documentation will be available when the initial version is released.

Notifications​

To receive notifications when the TypeScript SDK is available, subscribe to our updates or visit our GitHub.

In the Meantime​

If you need to use Retorna now, consider using the Java SDK which is fully functional.

Resources
Blog
Find us on social networks
For complaints, please contact via email [email protected]
We belong to the Financial Analysis Unit (UAF).
Supervised by
Registration number is C100000211.
Members of
With the support ofCon el apoyo de
Copyright © Retorna Holding Spa 2024