monkey-zuora-soap

1.4.0 • Public • Published

node_zuora

This is a node.js client library for interacting with the Zuora SOAP interface.

Installation

You probably want to install this package using npm

npm install zuora-soap

Configuration

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
    }

Usage

Programmatic Usage

    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: 'Homer@TheSimpsons.tv'
        };
        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
            })
        })
    });

Object list

Zuora API documentation for complete information:

Check out the source documentation for docs on the API.

Alternatives

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.

License

MIT.

Contributions are welcome

See https://github.com/joyent/node_zuora/issues.

Readme

Keywords

Package Sidebar

Install

npm i monkey-zuora-soap

Weekly Downloads

0

Version

1.4.0

License

MIT

Last publish

Collaborators

  • ttravers17