Install, initialise, first order
Add the SDK, initialise the client with an API key and place your first cross-border order. Every endpoint follows the same conventions from there.
// Install the SDK npm install tessavor-sdk // Initialize the client const tessavor = require('tessavor-sdk'); const client = new tessavor.Client({ apiKey: process.env.TESSAVOR_API_KEY, environment: 'sandbox' // or 'production' }); // Create an order const order = await client.orders.create({ amount: 129.99, currency: 'USD', description: 'Premium e-commerce order #12345' }); console.log(`Order created: ${order.id}`);
response · node 18+
{
"id": "ord_9f41c7",
"status": "screening",
"amount": 129.99,
"currency": "USD",
"environment": "sandbox"
}