This is a node.js client library for interacting with the Zuora SOAP interface.
You probably want to install this package using npm
npm install zuora-soap
You will need to get your config setup as follows:
- Download your WSDL file by visiting Settings -> Z-Billing settings -> Download WSDL.
- Create an API user account by visiting settings -> Admin settings -> Add single user Disable password expiry for API accounts.
- You may also want to adjust session timeout from the 15 minute default to something longer. Visit Settings -> Administrative Settings -> Security Policies
- Save the username and password of the API user with the path to your WSDL:
{
"user": "zuora_api_user@my_favourite.com",
"password": "password123",
"wsdl": "./etc/zuora.a.64.0.wsdl",
"verboseLog": false
}
var zuora = require('zuora');
var config = require('your_config.json');
zuora.connect(config, function(err, z) {
if (err) return console.log('Error connecting:', err);
var contactDetails = {
FirstName: 'Homer',
LastName: 'Simpson',
WorkEmail: '[email protected]'
};
z.contact.create(contactDetails, function(err, result) {
if (err) return console.log(err.message);
z.query('select accountnumber from account where status = "Active"', function(err, result) {
if (err) return console.log(err.message);
// inspect result
})
})
});
Zuora API documentation for complete information:
Check out the source documentation for docs on the API.
If this isn't your cup of tea when it comes to soap, then perhaps @Sparkida's Nuora, Nuora-MVC or @DeadAlready's Zuora with Rest may fit your tastes.
MIT.