Learn how to use the Carbon BaaS SDK for seamless integration via npm.
npm install carbon-baas-sdk
live
sandbox
const carbon = require('carbon-baas-sdk'); // Initialize the SDK carbon.initialize('your_api_key_here', 'sandbox'); // Create an account carbon.createAccount('customer_id', 'static') .then(response => console.log(response)) .catch(error => console.error(error)); // Fetch an account carbon.fetchAccount('account_number') .then(response => console.log(response)) .catch(error => console.error(error));