Zuora Client Libraries

Java library

We provide a Java library, which you can use by adding the following dependency to the pom file of your project:

Copy
Copied
<dependency>
    <groupId>com.zuora.sdk</groupId>
    <artifactId>zuora-sdk-java</artifactId>
    <version>${version}</version>
</dependency>

Make sure to replace ${version} with the latest version of the library.

Node.js library

We provide a Node.js library. Install it by running:

Copy
Copied
npm i @zuora-sdk/node-js

Once installed, you can use the library and your client id and client secret to run the following:

Copy
Copied
 (async () => {
  try {
    const zuoraClient = new ZuoraClient({
      clientId:'11c6f2c0-d17a-44c5-96c4-37df3bec96f7',
      clientSecret:'RLhzFy+Hn+BrNltqlBzgs1C11nGGIZDH53Xfr4Y',
      env:'SBX',
    });

    await zuoraClient.initialize();

    const productRequest = {
      name: 'Beverage Delivery Service',
      sku: '1234',
      description: 'Beverage Delivery Service',
      start_date: '2024-01-01',
      end_date: '2025-02-01',
    };

    const newProduct = await zuoraClient.products.createProduct(productRequest);
    console.log(newProduct);
    
  } catch (error) {
    console.log(error);
  }
})();