Quick Start
// Install the TOWN SDK
npm install @town-platform/sdk
// Initialize the client
import { TownClient } from '@town-platform/sdk';
const client = new TownClient({
apiKey: process.env.TOWN_API_KEY,
environment: 'production'
});
// Create a transaction
const transaction = await client.transactions.create({
amount: 100.00,
currency: 'USD',
customerId: 'cust_123456',
description: 'Deposit to wallet'
});
console.log('Transaction ID:', transaction.id);Popular API Endpoints
View All →POST
/v1/transactionsCreate a new transactionGET
/v1/customers/:idRetrieve customer informationPOST
/v1/webhooksRegister webhook endpointGET
/v1/reports/analyticsGet analytics dataRecent Updates
View Changelog →New
New Webhook Events for Affiliate Module
Jan 20, 2025Added support for commission events and referral tracking
Update
SDK v2.4.1 Released
Jan 15, 2025Performance improvements and bug fixes across all SDKs
Improvement
Enhanced Rate Limiting
Jan 10, 2025Improved rate limit headers and error messages
Need Help?
Our developer support team is here to help you succeed
TOWN Platform provides a RESTful API, official SDKs for JavaScript, Python, and PHP, webhooks for real-time event notifications, and an interactive playground for testing integrations — designed for developers building on top of TOWN's financial, customer, security, and ecosystem modules.